[MLton] power pc "port"

Stephen Weeks MLton@mlton.org
Sat, 4 Sep 2004 12:02:13 -0700


> The problem here is that Mac OS X doesn't have a 'gmake', although
> 'make' is the GNU version.  Is there a need to make some of the
> scripts refer to 'gmake' instead of 'make'?

I remember running into problems on some platforms (FreeBSD IIRC) that
have both make and gmake.  We definitely use GNU-style Makefiles and
so need gmake on those platforms.  It should be easy enough for you to
add a script in your path called gmake that does the right thing.
Maybe we should try to put such a script in bin/mlton?

> Ah, OK.  However, is it safe to assume that since the int regression
> test succeeded, then quot and rem work?

No.  int isn't as thorough as fixed-integer, and it doesn't test sizes
other than Int32.

> Aren't there tests after mllex?  The problem is that this error
> halts the bin/regression script... so getting around it will let me
> run the rest of the regressions.

One thing you can do is take out the set -e at the beginning of the
script.  We have it there so the script screams loudly if something
goes wrong.  But it's sometimes useful to take it out to get through
more tests.


As to finding the problem in fixed-integer, Matthew's suggestion was
good.  One other thought -- I'm unsure whether you're using a compiler
running on MacOS or a compiler running on Linux.  If the former, you
may be running into problems with bugs introduced in building MLton.
I'd recommend using a MLton built on Linux and running on Linux, cross
compiling to MacOS.  That takes out one possible source of errors.