flex error: bad character: %

From: Jan Ploski <Jan.Ploski_at_nyahnyahspammersnyahnyah>
Date: Sun, 06 Jan 2008 12:55:24 +0100

Hello,

After getting around the ncargpath problem (thanks, Mary) I'm still
having trouble compiling NCL. This time I'm getting errors from flex:

flex ncl.l
ncl.l:262: bad character: %
ncl.l:262: unknown error processing section 1
ncl.l:262: unknown error processing section 1
ncl.l:262: bad character: 4
ncl.l:262: bad character: 0
ncl.l:262: bad character: 0
ncl.l:262: bad character: 0
ncl.l:263: bad character: %
ncl.l:263: unknown error processing section 1
ncl.l:263: bad character: 4
ncl.l:263: bad character: 0
ncl.l:263: bad character: 0
ncl.l:263: bad character: 0
make[4]: *** [lex.yy.c] Error 1
make[4]: Leaving directory
`/direct/home/VO_SW_DIR/wisent/src/ncl_ncarg-5.0.0/ni/src/ncl'

I'm using a self-compiled flex-2.5.34. The ncl.l file has the following
content around line 262 (the line which begins with %a):

                 _NclResetScanner();
                 SetLine(line_numbers[loading]);
                 return(NhlFATAL);
         }
}
%}
%a 4000
%o 4000
let [_a-zA-Z]
alnum [_a-zA-Z0-9]
white [\t ]
digit [0-9]

I don't know if it is relevant, but I'm also getting messages like

make[4]: Warning: File `Makefile' has modification time 2.4e+03 s in the
future

which I am unable to fix by 'touch'ing files (output of stat on these
files looks ok).

Best regards,
Jan Ploski
_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Sun Jan 06 2008 - 04:55:24 MST

This archive was generated by hypermail 2.2.0 : Mon Jan 07 2008 - 11:20:01 MST