[MLton-user] Problems building on Snow Leopard

Matthew Fluet matthew.fluet at gmail.com
Wed Jan 27 10:16:47 PST 2010


On Mon, Jan 25, 2010 at 5:58 PM, Colin Fleming
<colin.mailinglist at gmail.com> wrote:
> Thanks for the quick response. Changing the architecture didn't help,
> I've attached the full build log.

Well, changing the architecture did change something:

Creating constants file.
"/Volumes/Data/dev/mlton-trunk/build/bin/mlton" -target "self"
-build-constants true >tmp.c
unknown switch: -fno-common

The previous error was "invalid target: self" (corresponding to the
unrecognized self architecture x86_64).  The "-fno-common" string is
part of the "-cc-opt" option in the mlton-script file.  But, I can't
explain why "-fno-common" was interpreted as a MLton option, not as
part of the "-cc-opt" option.  I can't reproduce this on my Leopard
install, but I can't imagine that this is a Leopard / Snow Leopard
issue.  Your "svn status" shows no modifications to the
<src>/bin/mlton-script file.

> However I did manage to build with
> 20070826, so I'll rebuild with the executable that generated now -
> thanks for that.

Great.

> Am I correct in that make install creates the install
> directory inside the source dir, and that actually installing it is
> normally copying that to the root of the filesystem? Is there any way
> to do a more traditional "make install"?

As John mentioned, you can edit the Makefile (or even override
DESTDIR/PREFIX at the make invocation).



More information about the MLton-user mailing list