Just updated binutils from 2.16-r1 to 2.16.1 and am now getting an error that the C Compiler cannot create executables. I'm running ~amd64. Reproducible: Always Steps to Reproduce: 1. emerge -uDp world 2. binutils-2.16.1 is emerged 3. next package fails (happens to be grep-2.5.1-r8 in emerge -uD world, but others also fail) Actual Results: checking for gawk... (cached) gawk checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output... configure: error: C compiler cannot create executables Expected Results: C compiler should be able to create an executable When the old version of binutils was being cleaned, I noticed this at the end: --- !empty dir /etc * /usr/bin/binutils-config: Refusing to uninstall native binutils >>> Regenerating /etc/ld.so.cache... >>> emerge (2 of 3) sys-apps/grep-2.5.1-r8 to / >>> md5 files ;-) grep-2.5.1-r7.ebuild Not sure if that line about uninstalling native binutils is normal...? emerge info: slappy binutils # emerge info Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11-gentoo-r7 x86_64) ================================================================= System uname: 2.6.11-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.12 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.seren.com/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa arts avi berkdb bitmap-fonts cdr crypt cups curl dvd dvdr dvdread encode esd exif fam ffmpeg font-server foomaticdb fortran freetype gdbm gif gphoto2 gpm gtk gtk2 imagemagick imlib ipv6 java jp2 jpeg kde kdeenablefinal lirc lm_sensors lzw lzw-tiff mad mozilla mp3 mpeg nas ncurses nls ogg opengl oss pam perl png python qt quicktime readline slang spell ssl tcpd tiff truetype truetype-fonts type1-fonts usb userlocales v4l vorbis xine xml2 xmms xpm xrandr xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LINGUAS
Same error with binutils package from 11:54pm CST on June 12, 2005. ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man -- infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/ var/lib --build=x86_64-pc-linux-gnu --libdir=/usr/lib32 checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details.
A fix can be found here: http://bugs.gentoo.org/show_bug.cgi?id=95928 Though it's kinda a kludge.
The fix mentioned in bug 95928 fixed the problem for me, thanks!
*** This bug has been marked as a duplicate of 95928 ***