- To: Christer Solskogen <christer.solskogen@xxxxxxxxx>
- Subject: Re: Problem with flex?
- From: Ian Lance Taylor <iant@xxxxxxxxxx>
- Date: Tue, 03 Apr 2012 06:53:56 -0700
- Cc: gcc-help@xxxxxxxxxxx
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <jlelet$hef$1@dough.gmane.org> (Christer Solskogen's message of "Tue, 03 Apr 2012 13:03:57 +0200")
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
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
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]