[MLton] bootstrap problem
Matthew Fluet
fluet@cs.cornell.edu
Tue, 9 Aug 2005 10:03:04 -0400 (EDT)
> > On Aug 9, 2005, at 1:38 PM, Matthew Fluet wrote:
> > > This is only a problem if you attempt compile from un-clean
> > > sources. If
> > > your host compiler is not found in ./build/bin/mlton, then compilation
> > > bootstraps using the mlton.cm file, which does not use annotations
> > > (and
> > > then does a second compile using mlton.mlb, now that ./build/bin/mlton
> > > exists)
> >
> > Ah. I didn't read the surrounding if.
> >
> > Error: <mlnlffi-lib>/c.mlb 18.4.
> > File /Users/terpstra/src/mlton/build/lib/sml/mlnlffi-lib/internals/
> > c-int.powerpc-darwin.mlb does not exist.
> >
> > I just copied c-int.x86-linux.mlb to c-int.powerpc-darwin.mlb.
> > Will this work? How can I test it?
>
> Duplicating the c-int.mlb for x86-linux ought to work.
>
> If you want to test NLFFI, here are some tests that I've adapted from the
> SML/NJ CVS repository. The tests in {array,ll,math,printf} should work;
> the tests in {pdb,recursive,structs} won't work because they have
> functions that take or return structs.
I think these tests are setup to make use of the following in your local
.mlton/mlb-path-map:
MLNLFFI_LIB $(SML_LIB)/mlnlffi-lib