Re: Re: self-compiling failed

"Baojian Hua" <[email protected]>
Newsgroups gmane.comp.lang.ml.mlton.devel
Message-ID <22953103.747261274275337024.JavaMail.coremail@mailweb>
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" <[email protected]>
> Sent Time:2010-5-18 19:00:17
> To:"Baojian Hua" <[email protected]>
> Cc:mlton <[email protected]>
> Subject:Re: [MLton] self-compiling failed
> 
> 
> 2010/5/18 Baojian Hua <[email protected]>
> 
> > 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?
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.