[MLton] building mlton on Solaris 10
Matthew Fluet
fluet at cs.cornell.edu
Thu Oct 19 07:27:22 PDT 2006
> I'm trying to create mlton on a Solaris 10 machine with smlnj from
> sources.
We don't recommend using SML/NJ as a means of porting to a new platform or
bootstrapping on a new platform. See
http://mlton.org/PortingMLton
> Also with no docs. So I tried
>
> gmake nj-mlton all-no-docs
>
> I wonder why it needs mlton:
Because it's written in Standard ML. ;-)
> for x in /home/budayg/mlton-20051202/build/lib/self/*.a; do ranlib $x; done
> gmake[1]: Leaving directory `/home/budayg/mlton-20051202'
> gmake -C /home/budayg/mlton-20051202/mlton nj-mlton
> /bin/sh: mlton: not found
> /bin/sh: mlton: not found
> /bin/sh: mlton: not found
> /bin/sh: mlton: not found
> /bin/sh: mlton: not found
> /bin/sh: mlton: not found
> /bin/sh: mlton: not found
> /bin/sh: mlton: not found
These are benign. If you are trying to compile mlton with an older
version of mlton, we use some stubs to compensate for differences in the
Basis Library. It's not necessary when building with SML/NJ. See:
http://mlton.org/pipermail/mlton/2006-October/029121.html
> gmake[1]: Entering directory `/home/budayg/mlton-20051202/mlton'
> gmake -C front-end ml.lex.sml
> gmake[2]: Entering directory `/home/budayg/mlton-20051202/mlton/front-end'
> rm -f ml.lex.sml
> mllex ml.lex
> gmake[2]: mllex: Command not found
> gmake[2]: *** [ml.lex.sml] Error 127
> gmake[2]: Leaving directory `/home/budayg/mlton-20051202/mlton/front-end'
> gmake[1]: *** [front-end/ml.lex.sml] Error 2
> gmake[1]: Leaving directory `/home/budayg/mlton-20051202/mlton'
> gmake: *** [nj-mlton] Error 2
You'll need to copy the front-end lexer/parser files over from a different
machine. See:
http://mlton.org/pipermail/mlton/2006-October/029126.html
If you use the files from that message, make sure you `touch` them, to
prevent make from thinking that they are out-of-date.
There is a reason we don't keep the generated lexer/parser files in the
distribution (and preserve them from `make clean`), but I don't recall the
argument.
More information about the MLton
mailing list