Problem with flex?

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

 



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.



[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