This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with flex?


Christer Solskogen <christer.solskogen@gmail.com> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]