Re: Problem with flex?

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

 



On Tue, Apr 3, 2012 at 6:52 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> Christer Solskogen <christer.solskogen@xxxxxxxxx> writes:
>
>> On Tue, Apr 3, 2012 at 3:53 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
>>> What version of flex do you have installed?  If you look at the file
>>> gcc/gengtype-lex.c in your build directory, do you see typedefs for
>>> flex_int32_t?
>>>
>>
>> flex --version
>> flex 2.5.35
>>
>> grep int32 gengtype-lex.c
>>         flex_int32_t yy_verify;
>>         flex_int32_t yy_nxt;
>> static yyconst flex_int32_t yy_ec[256] =
>> static yyconst flex_int32_t yy_meta[63] =
>
> How odd.  My flex (on Ubuntu) also reports itself as 2.5.35.  But:
>
>> grep int32 gengtype-lex.c
> typedef int32_t flex_int32_t;
> typedef uint32_t flex_uint32_t;
> typedef int flex_int32_t;
> typedef unsigned int flex_uint32_t;
>        flex_int32_t yy_verify;
>        flex_int32_t yy_nxt;
> static yyconst flex_int32_t yy_ec[256] =
> static yyconst flex_int32_t yy_meta[63] =
>
> Why are you missing the typedefs?  I have no suggestion.  It seems like
> it must be a bug in your version of flex.
>

It is.
For the record: Cross Linux from scratch have a patch which fix this.
http://patches.cross-lfs.org/dev/flex-2.5.35-gcc44-1.patch
I had to compile and install flex myself to get past this.

-- 
chs,



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux