[MLton] compile mlton using SML/NJ

John Reppy jhr at cs.uchicago.edu
Sun Oct 8 10:21:27 PDT 2006


I'm trying to build the latest sources on an Intel Mac using SML/NJ.
When I do a "make nj-mlton", I get the following errors after it  
compiles
the runtime libraries:

make[2]: Leaving directory `/Users/jhr/Work/mlton/mlton/bytecode'
bytecode/print-opcodes >/Users/jhr/Work/mlton/mlton/build/lib/opcodes
ar r /Users/jhr/Work/mlton/mlton/build/lib/self/libmlton.a bytecode/ 
interpret.o
ar r /Users/jhr/Work/mlton/mlton/build/lib/self/libmlton-gdb.a  
bytecode/interpret-gdb.o
for x in /Users/jhr/Work/mlton/mlton/build/lib/self/*.a; do ranlib  
$x; done
make[1]: Leaving directory `/Users/jhr/Work/mlton/mlton'
make -C /Users/jhr/Work/mlton/mlton/mlton nj-mlton
/bin/sh: line 1: mlton: command not found
/bin/sh: line 1: mlton: command not found
/bin/sh: line 1: mlton: command not found
/bin/sh: line 1: mlton: command not found
/bin/sh: line 1: mlton: command not found
/bin/sh: line 1: mlton: command not found
make[1]: Entering directory `/Users/jhr/Work/mlton/mlton/mlton'
/Users/jhr/Work/mlton/mlton/bin/upgrade-basis "/Users/jhr/Work/mlton/ 
mlton/build/bin:/Users/jhr/Work/mlton/mlton/build/bin:/Users/jhr/Work/ 
mlton/mlton/bin:/sw/bin:/sw/sbin:.:/Users/jhr/bin:/Users/jhr/bin/x86- 
osx:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/sw/bin:/sbin:/usr/ 
sbin:/sw/sbin" "x86" "darwin" >upgrade-basis.sml
/Users/jhr/Work/mlton/mlton/bin/upgrade-basis: line 31: mlton:  
command not found
Error: cannot upgrade basis because the compiler doesn't work
make[1]: *** [upgrade-basis.sml] Error 1
make[1]: Leaving directory `/Users/jhr/Work/mlton/mlton/mlton'
make: *** [nj-mlton] Error 2
make: Leaving directory `/Users/jhr/Work/mlton/mlton'

Any help would be appreciated.

	- John




More information about the MLton mailing list