[MLton] Experimental 64Bit

Ray rracine at adelphia.net
Sat Mar 3 15:33:14 PST 2007


I modified the exec in the mlton.debug script.


[raymond at corwin ~]$ mlton.debug
++ dirname /usr/bin/mlton.debug
+ dir=/usr/bin
+ lib=/usr/lib/mlton
++ /usr/lib/mlton/platform
+ eval HOST_OS=linux HOST_ARCH=amd64
++ HOST_OS=linux
++ HOST_ARCH=amd64
+ gcc=gcc
+ case "$HOST_OS" in
+ exe=
+ mlton=/usr/lib/mlton/mlton-compile.debug
+ world=/usr/lib/mlton/world.debug.mlton
+ nj=sml
+ .arch-n-opsys
+ njHeap=/usr/lib/mlton/mlton.amd64-linux
+ declare -a rargs
+ case "$1" in
+ darwinLinkOpts=
+ '[' -d /sw/lib ']'
+ '[' -d /opt/local/lib ']'
+ doit /usr/lib/mlton -cc gcc -cc-opt-quote -I/usr/lib/mlton/include
-cc-opt -O1 -cc-opt '-fno-strict-aliasing -fomit-frame-pointer -w'
-mlb-path-map /usr/lib/mlton/mlb-path-map -target-as-opt amd64 '-m64
-mtune=opteron' -target-cc-opt amd64 '-m64 -mtune=opteron'
-target-cc-opt darwin '-I/opt/local/include -I/sw/include'
-target-cc-opt freebsd -I/usr/local/include -target-cc-opt netbsd
-I/usr/pkg/include -target-cc-opt openbsd -I/usr/local/include
-target-cc-opt solaris '-Wa,-xarch=v8plusa -mcpu=ultrasparc'
-target-cc-opt sparc '-mcpu=v8 -m32' -target-cc-opt x86
'-fno-strength-reduce
                -fschedule-insns
                -fschedule-insns2
                -malign-functions=5
                -malign-jumps=2
                -malign-loops=2' -target-link-opt amd64 -m64
-target-link-opt darwin '' -target-link-opt freebsd -L/usr/local/lib/
-target-link-opt mingw '-lws2_32 -lkernel32 -lpsapi -lnetapi32'
-target-link-opt netbsd '-Wl,-R/usr/pkg/lib -L/usr/pkg/lib/'
-target-link-opt openbsd -L/usr/local/lib/ -target-link-opt solaris
'-lnsl -lsocket -lrt' -link-opt '-lgdtoa -lm -lgmp' -profile-exclude
'<basis>'
+ '[' -x /usr/lib/mlton/mlton-compile.debug -a
-s /usr/lib/mlton/world.debug.mlton -a
'!' /usr/lib/mlton/mlton.amd64-linux
-nt /usr/lib/mlton/world.debug.mlton ']'
+ exec gdb --args /usr/lib/mlton/mlton-compile.debug @MLton
load-world /usr/lib/mlton/world.debug.mlton ram-slop 0.5
-- /usr/lib/mlton -cc gcc -cc-opt-quote -I/usr/lib/mlton/include -cc-opt
-O1 -cc-opt '-fno-strict-aliasing -fomit-frame-pointer -w'
-mlb-path-map /usr/lib/mlton/mlb-path-map -target-as-opt amd64 '-m64
-mtune=opteron' -target-cc-opt amd64 '-m64 -mtune=opteron'
-target-cc-opt darwin '-I/opt/local/include -I/sw/include'
-target-cc-opt freebsd -I/usr/local/include -target-cc-opt netbsd
-I/usr/pkg/include -target-cc-opt openbsd -I/usr/local/include
-target-cc-opt solaris '-Wa,-xarch=v8plusa -mcpu=ultrasparc'
-target-cc-opt sparc '-mcpu=v8 -m32' -target-cc-opt x86
'-fno-strength-reduce
                -fschedule-insns
                -fschedule-insns2
                -malign-functions=5
                -malign-jumps=2
                -malign-loops=2' -target-link-opt amd64 -m64
-target-link-opt darwin '' -target-link-opt freebsd -L/usr/local/lib/
-target-link-opt mingw '-lws2_32 -lkernel32 -lpsapi -lnetapi32'
-target-link-opt netbsd '-Wl,-R/usr/pkg/lib -L/usr/pkg/lib/'
-target-link-opt openbsd -L/usr/local/lib/ -target-link-opt solaris
'-lnsl -lsocket -lrt' -link-opt '-lgdtoa -lm -lgmp' -profile-exclude
'<basis>'
GNU gdb Red Hat Linux (6.3.0.0-1.134.fc5rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host
libthread_db library "/lib64/libthread_db.so.1".

(gdb) run
Starting program: /usr/lib/mlton/mlton-compile.debug @MLton
load-world /usr/lib/mlton/world.debug.mlton ram-slop 0.5
-- /usr/lib/mlton -cc gcc -cc-opt-quote -I/usr/lib/mlton/include -cc-opt
-O1 -cc-opt -fno-strict-aliasing\ -fomit-frame-pointer\ -w
-mlb-path-map /usr/lib/mlton/mlb-path-map -target-as-opt amd64 -m64\
-mtune=opteron -target-cc-opt amd64 -m64\ -mtune=opteron -target-cc-opt
darwin -I/opt/local/include\ -I/sw/include -target-cc-opt freebsd
-I/usr/local/include -target-cc-opt netbsd -I/usr/pkg/include
-target-cc-opt openbsd -I/usr/local/include -target-cc-opt solaris
-Wa,-xarch=v8plusa\ -mcpu=ultrasparc -target-cc-opt sparc -mcpu=v8\ -m32
-target-cc-opt x86 -fno-strength-reduce\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -fschedule-insns\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -fschedule-insns2\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -malign-functions=5\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -malign-jumps=2\
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ -malign-loops=2 -target-link-opt amd64
-m64 -target-link-opt darwin '' -target-link-opt freebsd
-L/usr/local/lib/ -target-link-opt mingw -lws2_32\ -lkernel32\ -lpsapi\
-lnetapi32 -target-link-opt netbsd -Wl,-R/usr/pkg/lib\ -L/usr/pkg/lib/
-target-link-opt openbsd -L/usr/local/lib/ -target-link-opt solaris
-lnsl\ -lsocket\ -lrt -link-opt -lgdtoa\ -lm\ -lgmp -profile-exclude
\<basis\>

Program received signal SIGFPE, Arithmetic exception.
0x0000003282608adb in do_lookup_x () from /lib64/ld-linux-x86-64.so.2
(gdb) bt
#0  0x0000003282608adb in do_lookup_x ()
from /lib64/ld-linux-x86-64.so.2
#1  0x0000003282608e6f in _dl_lookup_symbol_x ()
from /lib64/ld-linux-x86-64.so.2
#2  0x000000328260a546 in _dl_relocate_object ()
from /lib64/ld-linux-x86-64.so.2
#3  0x000000328260362a in dl_main () from /lib64/ld-linux-x86-64.so.2
#4  0x0000003282612bdb in _dl_sysdep_start ()
from /lib64/ld-linux-x86-64.so.2
#5  0x0000003282601378 in _dl_start () from /lib64/ld-linux-x86-64.so.2
#6  0x0000003282600a78 in _start () from /lib64/ld-linux-x86-64.so.2
#7  0x0000000000000046 in ?? ()
#8  0x00007fff0ff53547 in ?? ()
#9  0x00007fff0ff5356a in ?? ()
#10 0x00007fff0ff53571 in ?? ()
#11 0x00007fff0ff5357c in ?? ()
#12 0x00007fff0ff5359d in ?? ()
#13 0x00007fff0ff535a6 in ?? ()
#14 0x00007fff0ff535aa in ?? ()
#15 0x00007fff0ff535ad in ?? ()
#16 0x00007fff0ff535bc in ?? ()
#17 0x00007fff0ff535c0 in ?? ()
#18 0x00007fff0ff535c4 in ?? ()
#19 0x00007fff0ff535d2 in ?? ()
#20 0x00007fff0ff535eb in ?? ()
#21 0x00007fff0ff535f3 in ?? ()
#22 0x00007fff0ff535f7 in ?? ()
#23 0x00007fff0ff535ff in ?? ()
#24 0x00007fff0ff5362c in ?? ()
#25 0x00007fff0ff5363a in ?? ()
#26 0x00007fff0ff53656 in ?? ()
#27 0x00007fff0ff53665 in ?? ()
#28 0x00007fff0ff5366b in ?? ()
#29 0x00007fff0ff5367f in ?? ()
#30 0x00007fff0ff5368e in ?? ()
#31 0x00007fff0ff53694 in ?? ()
#32 0x00007fff0ff536a8 in ?? ()
#33 0x00007fff0ff536b7 in ?? ()
#34 0x00007fff0ff536be in ?? ()
#35 0x00007fff0ff536e1 in ?? ()
#36 0x00007fff0ff536f0 in ?? ()
#37 0x00007fff0ff536f8 in ?? ()
---Type <return> to continue, or q <return> to quit---
#38 0x00007fff0ff5370d in ?? ()
#39 0x00007fff0ff5371c in ?? ()
#40 0x00007fff0ff53723 in ?? ()
#41 0x00007fff0ff53736 in ?? ()
#42 0x00007fff0ff53745 in ?? ()
#43 0x00007fff0ff5374d in ?? ()
#44 0x00007fff0ff53762 in ?? ()
#45 0x00007fff0ff53771 in ?? ()
#46 0x00007fff0ff53779 in ?? ()
#47 0x00007fff0ff5379d in ?? ()
#48 0x00007fff0ff537ac in ?? ()
#49 0x00007fff0ff537b2 in ?? ()
#50 0x00007fff0ff537c0 in ?? ()
#51 0x00007fff0ff537cf in ?? ()
#52 0x00007fff0ff537d3 in ?? ()
#53 0x00007fff0ff5388a in ?? ()
#54 0x00007fff0ff5389b in ?? ()
#55 0x00007fff0ff538a1 in ?? ()
#56 0x00007fff0ff538a6 in ?? ()
#57 0x00007fff0ff538b7 in ?? ()
#58 0x00007fff0ff538be in ?? ()
#59 0x00007fff0ff538bf in ?? ()
#60 0x00007fff0ff538d0 in ?? ()
#61 0x00007fff0ff538d8 in ?? ()
#62 0x00007fff0ff538ea in ?? ()
#63 0x00007fff0ff538fb in ?? ()
#64 0x00007fff0ff53901 in ?? ()
#65 0x00007fff0ff53928 in ?? ()
#66 0x00007fff0ff53939 in ?? ()
#67 0x00007fff0ff53940 in ?? ()
#68 0x00007fff0ff53963 in ?? ()
#69 0x00007fff0ff53974 in ?? ()
#70 0x00007fff0ff5397c in ?? ()
#71 0x00007fff0ff5398e in ?? ()
#72 0x00007fff0ff5399f in ?? ()
#73 0x00007fff0ff539a7 in ?? ()
#74 0x00007fff0ff539bb in ?? ()
#75 0x00007fff0ff539c5 in ?? ()
---Type <return> to continue, or q <return> to quit---
#76 0x00007fff0ff539d7 in ?? ()
#77 0x00007fff0ff539e8 in ?? ()
#78 0x0000000000000000 in ?? ()
(gdb)








More information about the MLton mailing list