[MLton-user] Which MinGW version is recommended?

Brent Fulgham brent.fulgham@xpsystems.com
Wed, 6 Aug 2003 12:07:42 -0700


GCC 2.95.3 fails for me to, in the same place.  Is there any way to capture the error code the system call is generating in the following:

> $ make constants
> Creating constants file.
> ./build/bin/mlton -build-constants true >tmp.c
> ./build/bin/mlton -output tmp tmp.c
> call to system failed: gcc -c -I./build/bin/../lib/self/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/fileJu9OfK.o tmp.c
> make: *** [constants] Error 1
> 

What's failing?  Is gcc returning an error (if I run it by hand with the same inputs
it works fine.)  For example, changing my Makefile to this:

.PHONY: constants
constants:
	@echo 'Creating constants file.'
	$(BIN)/mlton -build-constants true >tmp.c
#	$(BIN)/mlton -output tmp tmp.c
	gcc -c -I/cygdrive/c/fulgham/projects/mlton-20030716.cygwin/build/bin/../lib/self/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.o tmp.c
	gcc -o tmp tmp.o -L/cygdrive/c/fulgham/projects/mlton-20030716.cygwin/build/bin/../lib/self -lgdtoa -lmlton
	./tmp >$(LIB)/$(HOST)/constants
	rm -f tmp tmp.c

... gives me the valid constants.

That makes me scared that a more sinister bug is preventing system-level calls from working.

Any ideas?

-Brent