[MLton] Building MLton on Cygwin

Wesley W. Terpstra wesley@terpstra.ca
Tue, 26 Jul 2005 10:48:21 +0200


On Mon, Jul 25, 2005 at 04:44:44PM -0400, Matthew Fluet wrote:
> > $ mlton hello.sml
> > call to system failed with signal B:
> > gcc -c -I/usr/lib/mlton/include -O1 -fno-strict-aliasing -fomit-frame-pointer -w -fno-strength-reduce -fschedule-insns -fschedule-insns2 -malign-functions=5 -malign-jumps=2 -malign-loops=2 -mcpu=pentiumpro -o /tmp/fileexM8D3.o /tmp/filelhrUpk.1.c
> > 
> > As you can see GCC died on me. The GCC installed is 3.4.4.
> 
> I'm seeing a similar problem on my cygwin machine.  Running mlton, I get a
> popup dialog saying "cc1 failed to start because cygwin1.dll could not be
> found" and mlton reports "call to system failed with exit status 1".
> 
> However, if I run mlton with -verbose 1 -keep g -keep o, and I cut-n-paste 
> the system call line, then gcc seems to run fine.

Does MLton mess with the PATH environment variable?
What about the current directory?

-- 
Wesley W. Terpstra