[MLton-user] Problems building on Snow Leopard

Colin Fleming colin.mailinglist at gmail.com
Sun Jan 24 08:58:42 PST 2010


Hi all,

I've been trying to build MLton on Snow Leopard from trunk (r7407),
because the binary 20070826 build doesn't work - it gives a bunch of
errors that seem to be related to being a 64-bit platform. I'm using
'make TARGET_ARCH=x86_64 smlnj-mlton', which I saw in a previous mail
of John Reppy's. I'm trying to build with SML/NJ to bootstrap before
building with MLton. The SML/NJ I'm using is:

Standard ML of New Jersey v110.71 [built: Thu Nov 26 23:38:52 2009]

I'm getting the following errors:

make script basis-no-check mlbpathmap constants libraries-no-check
/bin/cp -fpR bin/mlton-script "/Volumes/Data/dev/mlton-trunk/build/bin/mlton"
chmod a+x "/Volumes/Data/dev/mlton-trunk/build/bin/mlton"
/bin/cp -fpR "/Volumes/Data/dev/mlton-trunk/bin/platform"
"/Volumes/Data/dev/mlton-trunk/build/lib"
/bin/cp -fpR "/Volumes/Data/dev/mlton-trunk/bin/static-library"
"/Volumes/Data/dev/mlton-trunk/build/lib"
mkdir -p "/Volumes/Data/dev/mlton-trunk/build/lib/sml"
rm -rf "/Volumes/Data/dev/mlton-trunk/build/lib/sml/basis"
/bin/cp -fpR "/Volumes/Data/dev/mlton-trunk/basis-library/."
"/Volumes/Data/dev/mlton-trunk/build/lib/sml/basis"
find "/Volumes/Data/dev/mlton-trunk/build/lib/sml/basis" -type d -name
.svn | xargs rm -rf
find "/Volumes/Data/dev/mlton-trunk/build/lib/sml/basis" -type f -name
.ignore | xargs rm -rf
touch "/Volumes/Data/dev/mlton-trunk/build/lib/mlb-path-map"
( echo 'MLTON_ROOT $(LIB_MLTON_DIR)/sml';	\
	  echo 'SML_LIB $(LIB_MLTON_DIR)/sml'; )	\
		>>"/Volumes/Data/dev/mlton-trunk/build/lib/mlb-path-map.tmp"
mv "/Volumes/Data/dev/mlton-trunk/build/lib/mlb-path-map.tmp"
"/Volumes/Data/dev/mlton-trunk/build/lib/mlb-path-map"
Creating constants file.
"/Volumes/Data/dev/mlton-trunk/build/bin/mlton" -target "self"
-build-constants true >tmp.c
invalid target: self
usage: mlton [option ...] file.{c|cm|mlb|o|sml} [file.{c|o|s|S} ...]
<snip usage info>
Popt.makeUsage
	../lib/mlton/basic/error.sml:11.21-11.31
make[1]: *** [constants] Error 1
make: *** [smlnj-mlton] Error 2

Any suggestions?

Cheers,
Colin



More information about the MLton-user mailing list