Re: Problem with flex?

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

 



Christer Solskogen <christer.solskogen@xxxxxxxxx> writes:

> I'm compiling gcc-4.7 (from subversion) on a Debian stable and I'm
> bumping my head with an error I cant seem to figure out:
>
> gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
> -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
> -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
> -Wold-style-definition -Wc++-compat  -Wno-error -DHAVE_CONFIG_H
> -DGENERATOR_FILE -I. -Ibuild -I/home/solskogen/src/gcc/gcc
> -I/home/solskogen/src/gcc/gcc/build
> -I/home/solskogen/src/gcc/gcc/../include
> -I/home/solskogen/src/gcc/gcc/../libcpp/include
> -I/home/solskogen/obj/tools.staging/include
> -I/home/solskogen/src/gcc/gcc/../libdecnumber
> -I/home/solskogen/src/gcc/gcc/../libdecnumber/bid -I../libdecnumber
> \
>         -o build/gengtype-lex.o gengtype-lex.c
> gengtype-lex.c:309: error: expected specifier-qualifier-list before
> ‘flex_int32_t’

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?

I do not recall any other reports like this, so most likely you are
using a very odd version of flex or something weird has happened.
Consider simply removing gcc/gengtype-lex.c and starting again.

Ian



[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