[MLton-user] Re: Problems building on Snow Leopard
Colin Fleming
colin.mailinglist at gmail.com
Sun Jan 24 12:22:02 PST 2010
I tried switching to rev 7229, which was the revision discussed in
John's previous mail, and I get a different error:
mv "/Volumes/Data/dev/mlton-trunk/build/lib/target-map.tmp"
"/Volumes/Data/dev/mlton-trunk/build/lib/target-map"
Creating constants file.
"/Volumes/Data/dev/mlton-trunk/build/bin/mlton" -build-constants true >tmp.c
strange arch: x86_64
../lib/mlton/basic/promise.sml:45.57-45.60
../lib/mlton/basic/error.sml:11.21-11.31
make[1]: *** [constants] Error 1
make: *** [smlnj-mlton] Error 2
If I remove the TARGET_ARCH arg to the make command, I get the following error:
Creating constants file.
"/Volumes/Data/dev/mlton-trunk/build/bin/mlton" -build-constants true >tmp.c
unknown switch: -fno-common
usage: mlton [option ...] file.{c|cm|mlb|o|sml} [file.{c|o|s|S} ...]
One thing I've had to change is in runtime/platform/darwin.h, I've
changed the include of ucontext.h to sys/ucontext.h. This avoids the
following error, which seems to be due to Apple aggressively
deprecating old APIs. This is a known OSX problem.
/usr/include/ucontext.h:42:2: error: #error ucontext routines are
deprecated, and require _XOPEN_SOURCE to be defined
Thanks for any advice,
Colin
More information about the MLton-user
mailing list