[MLton-devel] Problems with MLton under Cygwin
Stephen Weeks
MLton@mlton.org
Wed, 22 Jan 2003 20:07:51 -0800
> The MLYacc binary provided for Cygwin don't seem to work.
> If I try running it on the yacc.grm file, I get no output
> whatsoever...
>
> Any ideas? I'm trying to generate the files under Linux to
> build under Cygwin as a first attempt.
Hi Brent. Thanks for the bug report. I have duplicated your problem.
Here's what I get when I try to run the mllex and mlyacc from MLton
20020923.
% uname -a
CYGWIN_NT-4.0 CYGWIN 1.3.19s(0.69/3/2) 20030103 01:22:06 i686 unknown unknown Cygwin
sweeks% mlton -v
MLton 20020923 (built Mon Sep 23 21:14:13 2002 on WINDOWS)
sweeks% mllex
/bin/mllex: 20: Syntax error: "(" unexpected
sweeks% mlyacc
/bin/mlyacc: 1: Syntax error: "(" unexpected
% ls -l /bin/mlyacc
-rwxr-xr-x 1 sweeks None 534432 Sep 19 11:18 /bin/mlyacc*
Since the date is Sep 19, not Sep 23, it looks like something was
broken with our packaging process that allowed an old mllex and mlyacc
to slip through. I have now fixed our scripts so that that should not
be able to happen again.
Probably the easiest fix for you is to use MLton 20021122, which does
not have this problem. If I install that, everything looks fine.
% mlton -v
MLton 20021122 (built Fri Nov 22 16:49:23 2002 on WINDOWS)
% ls -l /bin/mlyacc
-rwxr-xr-x 1 sweeks None 554496 Nov 22 16:49 /bin/mlyacc*
% pwd
/home/sweeks/mlton/src/mlyacc/src
% ls yacc.grm*
yacc.grm
% mlyacc yacc.grm
4 shift/reduce conflicts
% ls yacc.grm*
yacc.grm yacc.grm.sig yacc.grm.sml
If you want to stick with 20020923, you could just extract the mlyacc
and mllex from 20021122.
You can download MLton experimental releases at
http://sourceforge.net/project/showfiles.php?group_id=50419
Let us know if this fix works for you.
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel