This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with flex?
- From: Ian Lance Taylor <iant at google dot com>
- To: Christer Solskogen <christer dot solskogen at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 03 Apr 2012 06:53:56 -0700
- Subject: Re: Problem with flex?
- References: <jlelet$hef$1@dough.gmane.org>
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