Problem with flex?
Christer Solskogen
christer.solskogen@gmail.com
Tue Apr 3 11:04:00 GMT 2012
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â
gengtype-lex.c:311: warning: struct has no members
gengtype-lex.c:312: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âyy_acceptâ
gengtype-lex.c:364: warning: ISO C does not allow extra â;â outside of a
function
gengtype-lex.c:366: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âyy_ecâ
gengtype-lex.c:396: warning: ISO C does not allow extra â;â outside of a
function
gengtype-lex.c:398: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âyy_metaâ
gengtype-lex.c:407: warning: ISO C does not allow extra â;â outside of a
function
gengtype-lex.c:409: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âyy_baseâ
gengtype-lex.c:466: warning: ISO C does not allow extra â;â outside of a
function
gengtype-lex.c:468: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âyy_defâ
gengtype-lex.c:525: warning: ISO C does not allow extra â;â outside of a
function
gengtype-lex.c:527: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âyy_nxtâ
gengtype-lex.c:695: warning: ISO C does not allow extra â;â outside of a
function
gengtype-lex.c:697: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âyy_chkâ
gengtype-lex.c:865: warning: ISO C does not allow extra â;â outside of a
function
gengtype-lex.c: In function âyylexâ:
gengtype-lex.c:1173: error: âyy_ecâ undeclared (first use in this function)
gengtype-lex.c:1173: error: (Each undeclared identifier is reported only
once
gengtype-lex.c:1173: error: for each function it appears in.)
gengtype-lex.c:1174: error: âyy_acceptâ undeclared (first use in this
function)
gengtype-lex.c:1179: error: âyy_chkâ undeclared (first use in this function)
gengtype-lex.c:1179: error: âyy_baseâ undeclared (first use in this
function)
gengtype-lex.c:1181: error: âyy_defâ undeclared (first use in this function)
gengtype-lex.c:1183: error: âyy_metaâ undeclared (first use in this
function)
gengtype-lex.c:1185: error: âyy_nxtâ undeclared (first use in this function)
gengtype-lex.c: In function âyy_get_next_bufferâ:
gengtype-lex.c:1824: warning: comparison between signed and unsigned
integer expressions
gengtype-lex.c: In function âyy_get_previous_stateâ:
gengtype-lex.c:1878: error: âyy_ecâ undeclared (first use in this function)
gengtype-lex.c:1879: error: âyy_acceptâ undeclared (first use in this
function)
gengtype-lex.c:1884: error: âyy_chkâ undeclared (first use in this function)
gengtype-lex.c:1884: error: âyy_baseâ undeclared (first use in this
function)
gengtype-lex.c:1886: error: âyy_defâ undeclared (first use in this function)
gengtype-lex.c:1888: error: âyy_metaâ undeclared (first use in this
function)
gengtype-lex.c:1890: error: âyy_nxtâ undeclared (first use in this function)
gengtype-lex.c: In function âyy_try_NUL_transâ:
gengtype-lex.c:1907: error: âyy_acceptâ undeclared (first use in this
function)
gengtype-lex.c:1912: error: âyy_chkâ undeclared (first use in this function)
gengtype-lex.c:1912: error: âyy_baseâ undeclared (first use in this
function)
gengtype-lex.c:1914: error: âyy_defâ undeclared (first use in this function)
gengtype-lex.c:1916: error: âyy_metaâ undeclared (first use in this
function)
gengtype-lex.c:1918: error: âyy_nxtâ undeclared (first use in this function)
make[2]: *** [build/gengtype-lex.o] Error 1
make[2]: Leaving directory `/home/solskogen/obj/gcc.tools.staging.1/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/solskogen/obj/gcc.tools.staging.1'
make: *** [all] Error 2
Hints, anyone? I have flex installed.
More information about the Gcc-help
mailing list