octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem of flex? lex.octave_.c lex.cc (MinGW build)


From: Michael D Godfrey
Subject: Re: problem of flex? lex.octave_.c lex.cc (MinGW build)
Date: Fri, 08 Jan 2010 11:15:39 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0

On 01/08/2010 05:05 AM, Ben Abbott wrote:
On Jan 8, 2010, at 7:47 AM, Ben Abbott wrote:

  
> On Jan 8, 2010, at 3:16 AM, Tatsuro MATSUOKA wrote:
> 
    
>> Hello
>> 
>> --- Tatsuro MATSUOKA  wrote:
>> 
      
>>> make[2]: Entering directory `/home/octaves/OctBuild/hg-devel/src'
>>> /bin/sh ../../../hg/octave-work/build-aux/ylwrap ../../../hg/octave-work/src/lex.ll
>>> lex.octave_.c
>>> lex.cc -- flex -I -I
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 27:
>>> unrecognized '%' directive
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 28:
>>> bad character: #
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 28:
>>> unknown error processing section 1
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 28:
>>> unknown error processing section 1
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 28:
>>> unknown error processing section 1
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 29:
>>> bad character: #
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 29:
>>> unknown error processing section 1
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 29:
>>> bad character: <
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 29:
>>> unknown error processing section 1
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 29:
>>> bad character: .
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 29:
>>> unknown error processing section 1
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 29:
>>> bad character: >
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 30:
>>> bad character: #
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 30:
>>> unknown error processing section 1
>>> "d:/usr/Tatsu/mingwhome/octaves/OctBuild/hg-devel/src/../../../hg/octave-work/src/lex.ll", line
>>> 31:
>>> bad character: }
>>> make[2]: *** [lex.cc] Error 1
>>> 
>>> ***************
>>> in lex.ll
>>> 
>>> 27: %top {
>>> 28: #ifdef HAVE_CONFIG_H
>>> 29: #include <config.h>
>>> 30: #endif
>>> 31: }
>>> 
>>> I have been using flex on gnuwin32
>>> $ flex --version
>>> c:\Programs\GnuWin32\bin\flex.exe version 2.5.4
>>> 
>>> I will try msus-flex (flex-2.5.35-1).
        
>> 
>> With msys-flex (flex-2.5.35-1), the above problem were solved.
>> Please see this post as a record.
>> 
>> Perhaps this is similar to the below
>> 
>> http://www-old.cae.wisc.edu/pipermail/octave-maintainers/2010-January/014549.html
>> 
>> Regards
>> 
>> Tatsuro
      
> 
> I agree, I think it is the same problem.
> 
> Ben
    
I just noticed there are two threads. The 2nd is above. The original is ...

	http://old.nabble.com/error:-invalid-character-`'-(ASCII-0)-near-line-164,-column-2-tt26923843.html

The concluding posts were on Jan 4. My understanding is that flex > 2.5.30 is required.

Ben


	
  
It appears that flex 2.5.4 does not work, and that it is much older than 2.5.35.  It might have been
thought that .4 was bigger than .35 but from flex.source forge.net:
February 26, 2008
December 12, 2007
February 21, 2006
March 3, 2003
flex, version 2.5.31. Later releases have made this release obsolete. Only use if you have a particular need to avoid later changes. In particular, bug and security fixes of general interest happened after this release.
June 27, 1997
It might make sense to test for 2.5.35 or newer, keeping in mind that .4 is older.
And, at least documenting the fact that the current Mac 10.6 version of 2.5.35
also fails.

Michael


reply via email to

[Prev in Thread] Current Thread [Next in Thread]