bison-1.875 fails to compile: gcc -O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe -o bison LR0.o assoc.o closure.o complain.o conflicts.o derives.o files.o getargs.o gram.o lalr.o location.o main.o muscle_tab.o nullable.o output.o parse-gram.o print.o print_graph.o reader.o reduce.o relation.o scan-gram.o scan-skel.o state.o symlist.o symtab.o tables.o uniqstr.o vcg.o ../lib/libbison.a /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: scan-gram.o: bad symbol index: 1280 scan-gram.o: could not read symbols: File format not recognized collect2: ld returned 1 exit status make[3]: *** [bison] Error 1 make[3]: Leaving directory `/var/tmp/portage/bison-1.875/work/bison-1.875/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/bison-1.875/work/bison-1.875/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/bison-1.875/work/bison-1.875' make: *** [all] Error 2 however: london portage # file /var/tmp/portage/bison-1.875/work/bison-1.875/src/scan- gram.o /var/tmp/portage/bison-1.875/work/bison-1.875/src/scan-gram.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped Reproducible: Always Steps to Reproduce: 'emerge bison' I can't reproduce this on any other machine I have however, which makes me very suspicous. Actual Results: gcc -O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe -o bison LR0.o assoc.o closure.o complain.o conflicts.o derives.o files.o getargs.o gram.o lalr.o location.o main.o muscle_tab.o nullable.o output.o parse-gram.o print.o print_graph.o reader.o reduce.o relation.o scan-gram.o scan-skel.o state.o symlist.o symtab.o tables.o uniqstr.o vcg.o ../lib/libbison.a /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: scan-gram.o: bad symbol index: 1280 scan-gram.o: could not read symbols: File format not recognized collect2: ld returned 1 exit status make[3]: *** [bison] Error 1 make[3]: Leaving directory `/var/tmp/portage/bison-1.875/work/bison-1.875/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/bison-1.875/work/bison-1.875/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/bison-1.875/work/bison-1.875' make: *** [all] Error 2 !!! ERROR: sys-devel/bison-1.875 failed. !!! Function src_compile, Line 41, Exitcode 2 !!! (no error message) Expected Results: compile bison properly. Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-rc2-ac3) ================================================================= System uname: 2.4.22-rc2-ac3 i686 AMD Athlon(tm) XP 3200+ ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/ge neric/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage-distfiles" FEATURES="autoaddcvs sandbox buildpkg ccache" GENTOO_MIRRORS="http://gentoo.slinky.iat.sfu.ca/ http://csociety- ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://adelie.polymtl.ca/ http://gentoo.noved.org/ http://gentoo.mirrors.pair.com/ http://gentoo.seren.com/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage-packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://gentoo.slinky.iat.sfu.ca/gentoo-portage" USE="x86 tcltk postgres -oss alsa 3dnow foomaticdb libg++ acl acpi apache2 apm arts avi berkdb bonobo cdr cjk crypt cscope cups curl dga directfb -doc dvd emacs encode esd ethereal evo fbcon flash gd gdbm gif gnome gphoto2 gpm gps gtk imap imlib ipv6 jack java jikes jpeg junit kerberos kde ldap libwww maildir mad mcal mikmod mmx motif mozilla mpeg mpi mule ncurses nls nocd odbc oggvorbis opengl oss pam pda ppds pdflib perl plotutils png pnp python qt quicktime readline ruby -samba sasl scanner sdl slang slp snmp socks5 spell sse ssl svga tcktk tcpd tetex tiff truetype usb videos wmf wxwindows X Xaw3d xinerama xosd xml xml2 xmms xv zlib -lcms mysql innodb"
What binutils, have you tried to down CFLAGS a bit ?
sorry, i don't have access to this machine anymore since I got fired :-(.