[MLton-user] Which MinGW version is recommended?

Brent Fulgham brent.fulgham@xpsystems.com
Wed, 6 Aug 2003 09:03:03 -0700


> Hello, I've used GCC 3.2.3 with MLton on sparc-solaris. So 
> far I did not
> run into instability. I did not use GCC 3.2.3 to compile MLton itself
> though. One annoyance is that -mno-epilogue is unrecognized. 
> I would have
> used GCC 3.3 but for some weird reason the build failed... Vesa
> 

I believe the problems in the GCC 3.2 series were generally limited to
the PowerPC and x86 architectures.  They were a series of optimizer
bugs that you could usually work around by using -O1 or -O0, but in
some cases you had to deactivate certain optimizations to (such as
not using -fomit-frame-pointer -fno-strict-aliasing).

I have been trying to use the Cygwin build of MLton to build a working
MLton but get errors using GCC 3.2.3 (from the Cygwin site.)  I built
GCC 3.3, but this also fails due to some breakage in the system call
to gcc:

$ make constants
Creating constants file.
./build/bin/mlton -build-constants true >tmp.c
./build/bin/mlton -output tmp tmp.c
call to system failed: gcc -c -I./build/bin/../lib/self/include -O1
-fno-strict-aliasing -fomit-frame-pointer -w -fno-strength-reduce
-fschedule-insns -fschedule-insns2 -malign-functions=5
-malign-jumps=2 -malign-loops=2 -mcpu=pentiumpro -o /tmp/fileJu9OfK.o tmp.c
make: *** [constants] Error 1

I'll see what happens with 2.95.

-Brent