Im trying to reinstall gcc, because i have some problems compilating, and i get this error: /tmp/portage/sys-devel/gcc-4.2.4/work/build/./prev-gcc/xgcc -B/tmp/portage/sys-devel/gcc-4.2.4/work/build/./prev-gcc/ -B/usr/i686-pc-linux-gnu/bin/ -c -march=pentium-m -pipe -O2 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -Itreelang -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/treelang -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../include -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../libcpp/include -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber /tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/treelang/treetree.c -o treelang/treetree.o /tmp/portage/sys-devel/gcc-4.2.4/work/build/./prev-gcc/xgcc -B/tmp/portage/sys-devel/gcc-4.2.4/work/build/./prev-gcc/ -B/usr/i686-pc-linux-gnu/bin/ -c -march=pentium-m -pipe -O2 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -Itreelang -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/treelang -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../include -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../libcpp/include -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber /tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/treelang/tree-convert.c -o treelang/tree-convert.o flex -otreelang/lex.c /tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/treelang/lex.l /tmp/portage/sys-devel/gcc-4.2.4/work/build/./prev-gcc/xgcc -B/tmp/portage/sys-devel/gcc-4.2.4/work/build/./prev-gcc/ -B/usr/i686-pc-linux-gnu/bin/ -c -march=pentium-m -pipe -O2 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -Wno-error -DHAVE_CONFIG_H -I. -Itreelang -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/treelang -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../include -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../libcpp/include -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber treelang/lex.c -o treelang/lex.o treelang/lex.c: In function ‘yy_get_next_buffer’: treelang/lex.c:1327: warning: comparison between signed and unsigned /tmp/portage/sys-devel/gcc-4.2.4/work/build/./prev-gcc/xgcc -B/tmp/portage/sys-devel/gcc-4.2.4/work/build/./prev-gcc/ -B/usr/i686-pc-linux-gnu/bin/ -c -march=pentium-m -pipe -O2 -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -Wno-error -DHAVE_CONFIG_H -I. -Itreelang -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/treelang -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../include -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../libcpp/include -I/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber treelang/parse.c -o treelang/parse.o /tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/treelang/parse.y: In function ‘yyparse’: /tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/treelang/parse.y:689: error: expected ‘;’ before ‘}’ token /tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/gcc/treelang/parse.y:690: error: expected ‘;’ before ‘}’ token make[3]: *** [treelang/parse.o] Error 1 make[3]: Leaving directory `/tmp/portage/sys-devel/gcc-4.2.4/work/build/gcc' make[2]: *** [all-stageprofile-gcc] Error 2 make[2]: Leaving directory `/tmp/portage/sys-devel/gcc-4.2.4/work/build' make[1]: *** [stageprofile-bubble] Error 2 make[1]: Leaving directory `/tmp/portage/sys-devel/gcc-4.2.4/work/build' make: *** [profiledbootstrap] Error 2 * * ERROR: sys-devel/gcc-4.2.4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4598: Called toolchain_src_compile * environment, line 5114: Called gcc_src_compile * environment, line 2960: Called gcc_do_make * environment, line 2783: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * The die message: * emake failed with profiledbootstrap * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/tmp/portage/sys-devel/gcc-4.2.4/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/sys-devel/gcc-4.2.4/temp/environment'. I have checked parse.y file on the line 689 and exist a line without ; , is weird... Reproducible: Always Steps to Reproduce: 1. emerge gcc 2. fail Actual Results: Error Expected Results: Installed Using gcc-4.2.4 with this configuration: Using built-in specs. Target: i686-pc-linux-gnu Configured with: /tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.2.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.2.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.2.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.2.4/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib--enable-libmudflap --disable-libssp --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.2.4 (Gentoo 4.2.4 p1.0)
This is very likely a duplicate of bug #246266 -- see especially comment number 8 there. You probably need to up- or downgrade your bison.
*** This bug has been marked as a duplicate of bug 246266 ***