Win32 cross-compiling so far...
Anoq of the Sun
Tue, 04 Sep 2001 18:58:46 +0200
This is a multi-part message in MIME format.
Content-Type: text/plain; charset=us-ascii
I have now released the Win32 port of the latest MLton (20010806) -
at least as far as I have come until now:
However, I don't know how to bootstrap the latest version of
the compiler for crosscompilation. You can try following the
description above for what I'm doing until now - but when
trying to compile the actual crosscompilation libraries
You can see the output in the attached file...
Apparently it is trying to execute a file during
compilation which has been crosscompiled for Win32.
I hope that you are interested in having the port in
the official version and that you can modify the Makefiles
appropriately for the various platform installations.
I believe that all my changes are safely contained within
#if defined(_WIN32) macros - so that the same distribution
should work as a native Linux compiler too.
And on behalf of my computer I'm also starting to feel
outdated. I have to activate at least 512MB swapspace
on a machine with 512MB RAM to compile MLton, and then
it's taking a whole night to compile. Sigh...
I need more memory - again :)
Content-Type: text/plain; charset=us-ascii;
Gwaihir:/usr/local/devtools/ML/MLton/MLton_ANOQ20010903_ToWin32/src# gcc -v
Reading specs from
gcc version 2.95.2 19991024 (release)
cd /usr/local/devtools/ML/MLton/MLton_ANOQ20010903_ToWin32/src/mlton && make
make: Entering directory
1 shift/reduce conflict
Number of states = 278
Number of distinct rows = 183
Approx. memory size of trans. table = 188856 bytes
Compiling mlton (takes a while)
time mlton @MLton -- -v -o mlton-compile mlton.cm
Compile SML starting
pre codegen starting
gcc -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE \
-I/usr/local/lib/mlton/include -o /tmp/fileyBqNwh \
/tmp/fileuNCJqx.c -L/usr/local/lib/mlton/lib -lmlton -lm -lgmp
/tmp/fileyBqNwh: /tmp/fileyBqNwh: cannot execute binary file
pre codegen raised in 5.92 + 2.38 (29% GC)
Compile SML raised in 5.92 + 2.38 (29% GC)
MLton raised in 6.02 + 2.38 (28% GC)
mlton: call to system failed: /tmp/fileyBqNwh /tmp/file2N2fgd
Command exited with non-zero status 1
7.03user 1.43system 0:09.26elapsed 91%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (3761major+146665minor)pagefaults 0swaps
make: *** [mlton-compile] Error 1
make: Leaving directory