HelloWorld output...
Anoq of the Sun
anoq@hardcoreprocessing.com
Fri, 01 Feb 2002 21:38:53 +0100
This is a multi-part message in MIME format.
--------------47132409EBC19EE28E0ED7B8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello!
Here is how it currently looks when I try to cross-compile
HelloWorld...
HelloWorld_output.txt is from my Linux-shell, but it's copied
and pasted in two parts into a text editor so some of the
undefined references might be missing or duplicates - but
I think you get the idea about the situation :)
HelloWorld.const is generated on Win32.
I think it may be that the gcc cross-compiler is still
not enabled everywhere that it ought to be by my Makefile
hacks - so maybe some of the libraries I'm linking to
here (-lmlton -lgmp etc.) might still be linux binaries...
Cheers
--
http://www.HardcoreProcessing.com
--------------47132409EBC19EE28E0ED7B8
Content-Type: text/plain; charset=us-ascii;
name="HelloWorld.const"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="HelloWorld.const"
Array_maxLen=1073741823
MLton_safe=true
MLton_isLittleEndian=true
MLton_detectOverflow=true
--------------47132409EBC19EE28E0ED7B8
Content-Type: application/x-unknown-content-type-sml_auto_file;
name="HelloWorld.sml"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="HelloWorld.sml"
dmFsIF8gPSBwcmludCAiSGVsbG8gV29ybGQhIg==
--------------47132409EBC19EE28E0ED7B8
Content-Type: text/plain; charset=us-ascii;
name="HelloWorld_output.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="HelloWorld_output.txt"
Gwaihir:/usr/local/mlton-cross/bin# ./mlton -drop-const-pass -v1 HelloWorld.sml -D_WIN32
MLton starting
Compile SML starting
pre codegen starting
gcc -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE \
-I/usr/local/mlton-cross/lib/mlton/include -o /tmp/fileen8nAj \
/tmp/filewXwtWR.c -D_WIN32 \
-L/usr/local/mlton-cross/lib/mlton/lib -lmlton -lgmp
pre codegen finished in 0.99 + 0.02 (2% GC)
x86 code gen starting
x86 code gen finished in 0.17 + 0.04 (19% GC)
Compile SML finished in 1.16 + 0.06 (5% GC)
Compile C starting
gcc -S -DNODEBUG -DMLton_safe=TRUE -DMLton_detectOverflow=TRUE \
-I/usr/local/mlton-cross/lib/mlton/include -o /tmp/filerCXuL6.s \
/tmp/fileEhapYv.c
Compile C finished in 0.72 + 0.0 (0.0% GC)
Assemble starting
gcc -c -o /tmp/fileTKZmrA.o /tmp/filerCXuL6.s
gcc -c -o /tmp/filerSJW3E.o /tmp/fileMTidOH.0.S
Assemble finished in 0.03 + 0.0 (0.0% GC)
Link starting
gcc -o HelloWorld /tmp/fileTKZmrA.o /tmp/filerSJW3E.o -D_WIN32 \
-L/usr/local/mlton-cross/lib/mlton/lib -lmlton -lgmp
/tmp/fileTKZmrA.o(.text+0x2c7):fileEhapYv.c: undefined reference to
nitGlobals_0'
/tmp/filerSJW3E.o(.text+0x2):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0xe):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x21):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x35):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x3e):fake: undefined reference to lobalpointer'
/tmp/filerSJW3E.o(.text+0x4d):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x5c):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x68):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x7b):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x81):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x87):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x8c):fake: undefined reference to C_gc'
/tmp/filerSJW3E.o(.text+0x95):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x9b):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0xa1):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0xad):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0xb3):fake: undefined reference to
lobalpointerNonRoot'
/tmp/filerSJW3E.o(.text+0xbc):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0xcb):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0xd7):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0xe7):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0xed):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0xf3):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0xf8):fake: undefined reference to C_gc'
/tmp/filerSJW3E.o(.text+0x101):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x107):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x10d):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x119):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x125):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x12b):fake: undefined reference to lobalpointer'
/tmp/filerSJW3E.o(.text+0x130):fake: undefined reference to tdio_print'
/tmp/filerSJW3E.o(.text+0x13c):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x14a):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x150):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x155):fake: undefined reference to
Lton_exit'
/tmp/filerSJW3E.o(.text+0x15e):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x164):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x16a):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x179):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x17f):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x191):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x1ad):fake: more undefined references to cState'
follow
/tmp/filerSJW3E.o(.text+0x227):fake: undefined reference to lobalpointer'
/tmp/filerSJW3E.o(.text+0x23a):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x249):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x255):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x268):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x26e):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x274):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x279):fake: undefined reference to C_gc'
/tmp/filerSJW3E.o(.text+0x282):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x288):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x28e):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x29d):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x2ad):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x2bd):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x2cc):fake: more undefined references to cState'
follow
/tmp/filerSJW3E.o(.text+0x2e7):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x2f9):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x2ff):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x305):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x30a):fake: undefined reference to C_gc'
/tmp/filerSJW3E.o(.text+0x313):fake: undefined reference to _stackP'
/tmp/filerSJW3E.o(.text+0x319):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x31f):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x331):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x345):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x359):fake: undefined reference to cState'
/tmp/filerSJW3E.o(.text+0x35f):fake: more undefined references to cState'
follow
/tmp/filerSJW3E.o(.text+0x37a):fake: undefined reference to _stackP'
/tmp/fileDM7whW.o(.text+0x19a4):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x19aa):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x19b2):fake: undefined reference to lobalpointer'
/tmp/fileDM7whW.o(.text+0x19c1):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x19ca):fake: undefined reference to
lobalpointerNonRoot'
/tmp/fileDM7whW.o(.text+0x19d4):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x19da):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x19e3):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x19ee):fake: undefined reference to
lobalpointerNonRoot'
/tmp/fileDM7whW.o(.text+0x19f8):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x19fe):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1a07):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1a12):fake: undefined reference to _stackP'
/tmp/fileDM7whW.o(.text+0x1a17):fake: undefined reference to
osix_Error_getErrno'
/tmp/fileDM7whW.o(.text+0x1a1d):fake: undefined reference to
osix_Error_strerror'
/tmp/fileDM7whW.o(.text+0x1a29):fake: undefined reference to _stackP'
/tmp/fileDM7whW.o(.text+0x1a3f):fake: undefined reference to _stackP'
/tmp/fileDM7whW.o(.text+0x1a4b):fake: undefined reference to _CS_sub'
/tmp/fileDM7whW.o(.text+0x1a54):fake: undefined reference to _stackP'
/tmp/fileDM7whW.o(.text+0x1a7c):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1a95):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1aac):fake: undefined reference to _stackP'
/tmp/fileDM7whW.o(.text+0x1ab5):fake: undefined reference to _CS_sub'
/tmp/fileDM7whW.o(.text+0x1abe):fake: undefined reference to _stackP'
/tmp/fileDM7whW.o(.text+0x1ae2):fake: undefined reference to
lobalpointerNonRoot'
/tmp/fileDM7whW.o(.text+0x1aec):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1af2):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1afb):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1b13):fake: undefined reference to
lobalpointerNonRoot'
/tmp/fileDM7whW.o(.text+0x1b1d):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1b23):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1b2c):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1b39):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1b56):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1bb5):fake: undefined reference to lobalpointer'
/tmp/fileDM7whW.o(.text+0x1bbf):fake: undefined reference to lobalpointer'
/tmp/fileDM7whW.o(.text+0x1bca):fake: undefined reference to lobalpointer'
/tmp/fileDM7whW.o(.text+0x1bdd):fake: undefined reference to lobalpointer'
/tmp/fileDM7whW.o(.text+0x1bea):fake: undefined reference to lobalpointer'
/tmp/fileDM7whW.o(.text+0x1bf3):fake: more undefined references to
lobalpointer' follow
/tmp/fileDM7whW.o(.text+0x1c3c):fake: undefined reference to _stackP'
/tmp/fileDM7whW.o(.text+0x1c4f):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1c55):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1c5b):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1c60):fake: undefined reference to C_gc'
/tmp/fileDM7whW.o(.text+0x1c69):fake: undefined reference to cState'
/tmp/fileDM7whW.o(.text+0x1c6f):fake: undefined reference to cState'
Link raised in 0.04 + 0.0 (0.0% GC)
MLton raised in 1.98 + 0.05 (2% GC)
mlton: call to system failed: gcc -o HelloWorld /tmp/file9MPe34.o
/tmp/fileDM7whW.o -D_WIN32 -L/usr/local/mlton-cross/lib/mlton/lib -lmlton
-lgmp
--------------47132409EBC19EE28E0ED7B8--