[MLton] self-compiling failed

Baojian Hua huabj at mail.ustc.edu.cn
Wed May 19 06:22:17 PDT 2010


Thanks Wesley and Matthew for the quick help.

And the document at 
http://mlton.org/SelfCompiling 
seems a little out-of-date and not very informative for this. 

Btw: I'm trying to self-compile MLton for that I'm trying to implement
some new optimizations on SSA IL. In this, I've found that the MLton's
expert option "-trace" won't work as I expected (it produce nothing).
A close look at the code reveals that the Assert.debug is set to false, so
it seems that I should set it and then build a "tracable" version. Is this 
the perfect way to do this? Or else is there another option to control this?

Thanks!

-Paul


> -----Original E-mail-----
> From:"Wesley W. Terpstra" <wesley at terpstra.ca>
> Sent Time:2010-5-18 19:00:17
> To:"Baojian Hua" <huabj at mail.ustc.edu.cn>
> Cc:mlton <mlton at mlton.org>
> Subject:Re: [MLton] self-compiling failed
> 
> 
> 2010/5/18 Baojian Hua <huabj at mail.ustc.edu.cn>
> 
> > I guess the reason is that the BUILDDATE
> > info is automatically generated from the host, so it's highly
> > platform dependent (and cause the error).
> > 
> 
> This is a very good point. I've commited a change that hopefully forces 'date' to English.
>  
> 
> > Btw: after some modification of the source, the self-compling
> > succeeds, but the executable prints:
> > 
> > "incorrect args from shell script"
> > 
> 
> This one is puzzling. Could you edit /usr/bin/mlton and change the line 5 from
> set -e
> to 
> set -ex
> 
> Then run mlton again and copy-paste the result back to this list?
> 




More information about the MLton mailing list