
Hello, I'm getting a lexer error from the greencard-nhc98 script when trying to make trace. I've been able to build basic, heapprofile, timeprofile, compiler, hmake, runtime, prelude, greencard, hp2graph. $ uname -a CYGWIN_NT-5.0 SALSERO 1.3.9(0.51/3/2) 2002-01-21 12:48 i686 unknown --------- make excerpt ------------- /home/jacksoni/dl/nhc98-1.10/script/hmake -nhc98 -K10M +CTS -H20M -CTS Hatobserve /home/jacksoni/dl/nhc98-1.10/targets/ix86-CYGWIN_NT-5.0/obj/hat/hatlib.a -d/ home/jacksoni/dl/nhc98-1.10/targets/ix86-CYGWIN_NT-5.0/obj/hat nhc98 +RTS -K10M -RTS +CTS -H20M -CTS -c -d /home/jacksoni/dl/nhc98-1.10/targets/ix86-CYGWIN_NT-5.0/obj/hat HatTrace.gc Lexical error: unrecognised input at line 183 col 45 greencard-nhc98 failed on ./HatTrace.gc make[1]: *** [/home/jacksoni/dl/nhc98-1.10/lib/ix86-CYGWIN_NT-5.0/hat-observe] E rror 1 make[1]: Leaving directory `/home/jacksoni/dl/nhc98-1.10/src/tracer/hat' make: *** [lib/ix86-CYGWIN_NT-5.0/hat-check] Error 2 --------- line 183 from ./src/tracer/hat/HatTrace.gc ----- %dis addr x = declare "void*" x in (%%Addr x) Column 45 of this line is the closing paren ')'. Any ideas? -- Stoney

I'm getting a lexer error from the greencard-nhc98 script when trying to make trace. [ ix86-CYGWIN_NT-5.0 ]
Lexical error: unrecognised input at line 183 col 45 --------- line 183 from ./src/tracer/hat/HatTrace.gc ----- %dis addr x = declare "void*" x in (%%Addr x)
I can't reproduce this bug on my Linux system, but my best guess is that it is to do with newline/carriage return differences between Windows and Unix. The reported column position is counted from 0, not 1, so the error is actually one character beyond the close paren ')'. Try applying this patch, then 'make greencard' and try 'make tracer' again. If this doesn't fix it, let us know. Regards, Malcolm --- src/greencard/HandLex.hs Mon Nov 27 15:44:38 2000 +++ src/greencard/HandLex.hs Thu Feb 14 10:35:56 2002 @@ -104,6 +104,7 @@ blank :: (Posn->String->[String]->[Token]) -> Posn -> String -> [String] -> [Token] blank k p [] ss = lextop (blank k) (newline p) ss +blank k p ['\^M'] ss = lextop (blank k) (newline p) ss blank k p (' ': s) ss = blank k (addcol 1 p) s ss blank k p ('\t':s) ss = blank k (tab p) s ss blank k p s ss = k p s ss
participants (2)
-
Malcolm Wallace
-
Stoney Jackson