Re: flex error: bad character: %

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 7 Jan 2008 08:18:14 -0700

Hi Jan,

What kind of system is this on, and do you have a system "flex" that
you can use instead? I checked the version of flex on three different
systems that we have, and they are all running a slightly newer
version, 3.5.4. Perhaps you could try this one.

--Mary

flex 2.5.4 on my On Jan 6, 2008, at 4:55 AM, Jan Ploski wrote:

> 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

_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Mon Jan 07 2008 - 08:18:14 MST

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