From config.log: configure:2642: gcc -march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-fun ctions=4 -mfpmath=sse conftest.c >&5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--as-needed' /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status configure:2645: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "glib" | #define PACKAGE_TARNAME "glib" | #define PACKAGE_VERSION "2.4.1" | #define PACKAGE_STRING "glib 2.4.1" | #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=glib" | #define GLIB_MAJOR_VERSION 2 | #define GLIB_MINOR_VERSION 4 | #define GLIB_MICRO_VERSION 1 | #define GLIB_INTERFACE_AGE 1 | #define GLIB_BINARY_AGE 401 | #define G_COMPILED_WITH_DEBUGGING "minimum" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2684: error: C compiler cannot create executables Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo) ================================================================= System uname: 2.6.5-gentoo i686 Pentium III (Coppermine) Gentoo Base System version 1.4.10 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://ftp.lug.ro/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl adns apache2 berkdb crypt curl fam flash gd gdbm gif gpm imap innodb java jpeg ldap libg++ libwww maildir mcal memlimit ncurses nls noauthcram nptl oss pam pdflib pg-hier pg-intdatetime pg-vacuumdelay pic png python readline samba slang slp spell sse ssl tcpd tiff truetype x86 xml xml2 zlib"
What is your sys-devel/binutils version?
sys-devel/binutils-2.14.90.0.8-r1
Hmm... it seems I can't compile anything anymore after the binutils downgrade: # <solar@gentoo.org> (04 May 2004) # remasking again due to bad gcc/binutils mixes What should I do ?
Do `ld --help` to see if your ld supports the --as-needed option. My package versions, if it helps (not experiencing this problem): * sys-devel/binutils Latest version available: 2.14.90.0.8-r1 Latest version installed: 2.14.90.0.8-r1 Size of downloaded files: 10,777 kB Homepage: http://sources.redhat.com/binutils/ Description: Tools necessary to build programs * sys-libs/glibc Latest version available: 2.3.3_pre20040207 Latest version installed: 2.3.3_pre20040207 Size of downloaded files: 15,180 kB Homepage: http://www.gnu.org/software/libc/libc.html Description: GNU libc6 (also called glibc2) C library * sys-devel/gcc Latest version available: 3.3.3 Latest version installed: 3.3.3 Size of downloaded files: 23,063 kB Homepage: http://www.gnu.org/software/gcc/gcc.html Description: The GNU Compiler Collection. Includes C/C++ and java compile
Created attachment 30783 [details] ld --help
As you can see from the `emerge info` output, I have the same packages as you...
Strange, --as-needed does not seem to be supported by your ld. Check that you are using correct ld (`which ld`, should print out "/usr/bin/ld") and do `ld --version`. Mine shows: $ ld --version GNU ld version 2.15.90.0.3 20040415 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty.
It seems this is the bug that has bitten me: http://bugs.gentoo.org/show_bug.cgi?id=49363
good catch, duping *** This bug has been marked as a duplicate of 49363 ***