[MLton-user] Using MinGW version of MLton on Vista
John Reppy
t-johrep at microsoft.com
Fri Sep 5 06:38:23 PDT 2008
Thanks for the pointer. The r6811 msi version works better for me, although it installs its own copy of MSYS and MinGW,
which seems strange. The problem that I'm hitting now is that MLton is reporting a syntax error on a mlb file (the file in
question has been used successfully on both Linux and Mac OS X systems).
$ make
/bin/mlton -const 'Exn.keepHistory true' -mlb-path-map /c/Users/t-johrep/Work/sml3d/src/sml3d-path-map -link-opt '-L/c/Users/t-johrep/Work/sml3d/windows/lib -lglut32 -lglu32 -lopengl32 /c/Users/t-johrep/Work/sml3d/src/glut/glut-glue.o' -output ortho main.mlb
Error: main.mlb 27.0.
Parse error.
compilation aborted: parseAndElaborate reported errors
make: *** [ortho] Error 1
The MLB file is
1 (* main.mlb
2 *
3 * COPYRIGHT (c) 2008 John Reppy (http://www.cs.uchicago.edu/~jhr)
4 * All rights reserved.
5 *
6 * Ortho2d test
7 *)
8
9 local
10
11 $(SML_LIB)/basis/basis.mlb
12 $(SML_LIB)/smlnj-lib/Util/smlnj-lib.mlb
13 $(SML_LIB)/basis/mlton.mlb
14
15 $(SMLXD_LIB)/common/sml3d-common.mlb
16 $(SMLXD_LIB)/glut/glut.mlb
17 $(SMLXD_LIB)/util/util.mlb
18
19 main.sml
20
21 in
22
23 structure Main
24
25 end
26
So the error is at the end of the file.
- John
From: Wesley W. Terpstra [mailto:wesley at terpstra.ca]
Sent: 05 September 2008 13:46
To: John Reppy; mlton-user at mlton.org
Subject: Re: [MLton-user] Using MinGW version of MLton on Vista
On Fri, Sep 5, 2008 at 11:27 AM, John Reppy <t-johrep at microsoft.com<mailto:t-johrep at microsoft.com>> wrote:
I've installed the 20070826 MinGW version of MLton (statically linked), but when I
Run it from a MSYS bash shell, it immediately dumps core
$ /c/mingw/bin/mlton
0 [main] bash 4476 open_stackdumpfile: Dumping stack trace to bash.exe.stackdump
Is this a known problem? Should I be using a different version of MLton?
I don't know of anyone who has tried MLton/MinGW on Vista yet. Tom Murphy reported problems using MLton/cygwin on Vista, but I don't know if this was ever resolved. You could >try< a newer MLton, for example the msi installer on mlton.org/Experimental<http://mlton.org/Experimental>, but I doubt it will work either.
I would be happy to look into this for you, as it seems I am currently the MinGW port maintainer. :-) However, as I don't have Vista, it would be very slow going. I would suggest using a non-Vista machine to build a debug version of hello-world (compiled with -g and linked to the -dbg libraries). Then, run that hello world in gdb and report back to us the stack trace.
Or, convince your employers to buy a MLton developer a copy of Vista.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mlton.org/pipermail/mlton-user/attachments/20080905/f5e2a816/attachment.htm
More information about the MLton-user
mailing list