[MLton] osx compiles again in x86_64 branch

Wesley W. Terpstra wesley@terpstra.ca
Tue, 23 May 2006 21:55:59 +0200


I've added the missing methods in r4569.
The fix Matthew applied r4550 does allow it to compile.

I do get these warnings  now (new):
../runtime/basis-ffi.h:1005: warning: 'WordS16_quot' used but never  
defined
../runtime/basis-ffi.h:1006: warning: 'WordS16_rem' used but never  
defined
../runtime/basis-ffi.h:1023: warning: 'WordS32_quot' used but never  
defined
../runtime/basis-ffi.h:1024: warning: 'WordS32_rem' used but never  
defined
../runtime/basis-ffi.h:1041: warning: 'WordS64_quot' used but never  
defined
../runtime/basis-ffi.h:1042: warning: 'WordS64_rem' used but never  
defined
../runtime/basis-ffi.h:1059: warning: 'WordS8_quot' used but never  
defined
../runtime/basis-ffi.h:1060: warning: 'WordS8_rem' used but never  
defined
../runtime/basis-ffi.h:1005: warning: 'WordS16_quot' used but never  
defined
../runtime/basis-ffi.h:1006: warning: 'WordS16_rem' used but never  
defined
../runtime/basis-ffi.h:1023: warning: 'WordS32_quot' used but never  
defined
../runtime/basis-ffi.h:1024: warning: 'WordS32_rem' used but never  
defined
../runtime/basis-ffi.h:1041: warning: 'WordS64_quot' used but never  
defined
../runtime/basis-ffi.h:1042: warning: 'WordS64_rem' used but never  
defined
../runtime/basis-ffi.h:1059: warning: 'WordS8_quot' used but never  
defined
../runtime/basis-ffi.h:1060: warning: 'WordS8_rem' used but never  
defined

Also, Matthew, you might want to use 'vmmap' on *BSD too...

The problem is now that compiled programs segfault! :-)
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00514e24
0x00140d3c in performGC ()
(gdb) bt
#0  0x00140d3c in performGC ()
#1  0x00142d98 in GC_collect ()
#2  0x00013848 in Chunk25 ()
#3  0x001396a4 in main ()

I'll look into this in more detail shortly.
I might try ppc linux first, though, as I bet that already works.