[MLton-user] make errors when building mlton-20041109

Matthew Fluet fluet@cs.cornell.edu
Tue, 23 Nov 2004 08:49:51 -0500 (EST)


> make -C /usr/local/src/mlton-20041109/mlton
...
> /usr/local/src/mlton-20041109/bin/upgrade-basis: mlton: command not found
> Error: cannot upgrade basis because the compiler doesn't work
> make[3]: *** [upgrade-basis.sml] Error 1

You need to have a working mlton on your path to build mlton from source.

Note that during the build process, there are various times that the
Makefiles look for a mlton on PATH and (according to your setup) in
/usr/local/src/mlton-20041109/build/bin.  It is o.k. if the latter doesn't
exist when the build start; it is the target being built.  The minor
complication is that not finding build/bin/mlton also results in
  mlton: command not found
errors which aren't obviously distinguishable from failure to find a mlton
on PATH.

In any case, though, building  upgrade-basis.sml  requires finding a
working mlton on PATH, as will building the compiler proper.