Win32 cross-compiling so far...
Anoq of the Sun
anoq@HardcoreProcessing.com
Tue, 04 Sep 2001 18:58:46 +0200
This is a multi-part message in MIME format.
--------------5D8AFEEA4A3034CB422BB398
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello!
I have now released the Win32 port of the latest MLton (20010806) -
at least as far as I have come until now:
http://www.HardcoreProcessing.com/pro/mltonwin32/index.html
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
it fails.
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 :)
Cheers
--
http://www.HardcoreProcessing.com
--------------5D8AFEEA4A3034CB422BB398
Content-Type: text/plain; charset=us-ascii;
name="error.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="error.txt"
Gwaihir:/usr/local/devtools/ML/MLton/MLton_ANOQ20010903_ToWin32/src# gcc -v
Reading specs from
/usr/local/cross-tools/lib/gcc-lib/i386-mingw32msvc/2.95.2/specs
gcc version 2.95.2 19991024 (release)
Gwaihir:/usr/local/devtools/ML/MLton/MLton_ANOQ20010903_ToWin32/src# make
target=win32
cd /usr/local/devtools/ML/MLton/MLton_ANOQ20010903_ToWin32/src/mlton && make
make[1]: Entering directory
/usr/local/devtools/ML/MLton/MLton_ANOQ20010903_ToWin32/src/mlton'
mlyacc front-end/ml.grm
1 shift/reduce conflict
mllex front-end/ml.lex
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
MLton starting
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/file2N2fgd
/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[1]: *** [mlton-compile] Error 1
make[1]: Leaving directory
/usr/local/devtools/ML/MLton/MLton_ANOQ20010903_ToWin32/src/mlton'
make: ***
[/usr/local/devtools/ML/MLton/MLton_ANOQ20010903_ToWin32/src/mlton/mlton-compile]
Error 2
--------------5D8AFEEA4A3034CB422BB398--