While trying to compile groff with the following flags: [ebuild U ] sys-apps/groff-1.19.2-r1 [1.19.2] USE="-X" 0 kB >>> Unpacking groff-1.19.2.tar.gz to /Gentoo/Portage/build/portage/groff-1.19.2-r1/work * Applying groff-1.19.2-infoext.patch ... [ ok ] * Applying groff-man-UTF-8.diff ... [ ok ] * Applying groff-1.19.2-parallel-make.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /Gentoo/Portage/build/portage/groff-1.19.2-r1/work/groff-1.19.2 ... ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-appresdir=/etc/X11/app-defaults --without-x --build=i686-pc-linux-gnu checking for i686-pc-linux-gnu-gcc... i686-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. !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /Gentoo/Portage/build/portage/groff-1.19.2-r1/work/groff-1.19.2/config.log !!! ERROR: sys-apps/groff-1.19.2-r1 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile groff-1.19.2-r1.ebuild, line 61: Called econf 'compile' '--with-appresdir=/etc/X11/app-defaults' !!! econf failed !!! If you need support, post the topmost build error, and the call stack if relevant. config.log will be attached; interesting part: configure:1946: checking for C compiler default output file name configure:1968: i686-pc-linux-gnu-gcc -march=prescott -O2 -pipe -fomit-frame-pointer -Wl,-O1 conftest.c >&5 /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../libc.so: file format not recognized; treating as linker script /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../libc.so:5: syntax error collect2: ld returned 1 exit status Other programs can be compiled just fine. dewuga02 ~ # emerge --info Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.4-r0, 2.6.15-gentoo-r5-enx.02 i686) ================================================================= System uname: 2.6.15-gentoo-r5-enx.02 i686 Intel(R) Xeon(TM) CPU 2.80GHz Gentoo Base System version 1.12.0_pre16 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10, 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DISTDIR="/Gentoo/Portage/distfiles" FEATURES="autoconfig buildpkg ccache collision-protect distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j11" PKGDIR="/Gentoo/Portage/packages" PORTAGE_TMPDIR="/Gentoo/Portage/build" PORTDIR="/Gentoo/Portage/tree" PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc" SYNC="rsync://localhost:10873/gentoo-portage" USE="x86 7zip acl apache2 async avi bash-completion berkdb bzip2 cap caps ccache checkpath cracklib crypt discard-path dri ecc extensions firefox gdbm gif glep glibc-omitfp gpm hpn iconv input_devices_evdev input_devices_keyboard input_devices_mouse jikes jpeg kdeenablefinal libg++ libwww linuxthreads-tls logrotate lynxkeymap mmx motif moznoirc mozsvg mpm-threadpool multislot ncurses nis nls no-old-linux noaudio nocd nodrm nolvm1 nopop3d nptl nptlonly offensive pam pcre pdflib perl png posix python readline recode reiserfs sendfile server sftplogging sharedmem sse ssl static sysvipc szip tcpd threads underscores unicode usb utf8 video_cards_ati vim-pager xfs xinetd yp zlib elibc_glibc kernel_linux linguas_de userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL
Created attachment 82017 [details] /Gentoo/Portage/build/portage/groff-1.19.2-r1/work/groff-1.19.2/config.log
Hmm... The same now happens with portage as well: Compiling /Gentoo/Portage/build/portage/portage-2.1_pre6-r2/work/portage-2.1_pre6/pym/portage_versions.py ... Compiling /Gentoo/Portage/build/portage/portage-2.1_pre6-r2/work/portage-2.1_pre6/pym/xpak.py ... /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../libc.so: file format not recognized; treating as linker script /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../libc.so:5: syntax error collect2: ld returned 1 exit status distcc[14448] ERROR: compile tbz2tool.c on localhost failed QA Notice: USE Flag 'userland_Darwin' not in IUSE for sys-apps/portage-2.1_pre6-r2 running build running build_ext building 'missingos' extension creating build creating build/temp.linux-i686-2.4 i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=prescott -O2 -pipe -fomit-frame-pointer -fPIC -I/usr/include/python2.4 -c missingos.c -o build/temp.linux-i686-2.4/missingos.o creating build/lib.linux-i686-2.4 i686-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -march=prescott -O2 -pipe -fomit-frame-pointer build/temp.linux-i686-2.4/missingos.o -o build/lib.linux-i686-2.4/missingos.so /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../libc.so: file format not recognized; treating as linker script /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../../i686-pc-linux-gnu/bin/ld:/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/../../../libc.so:5: syntax error collect2: ld returned 1 exit status distcc[14460] ERROR: compile (null) on localhost failed error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 !!! ERROR: sys-apps/portage-2.1_pre6-r2 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile !!! Failed to build missingos module !!! If you need support, post the topmost build error, and the call stack if relevant.
your /usr/lib/libc.so should be a linker script if it isnt, something is broken on your system
binutils-2.15.x doesn't work with >=glibc-2.4. Run: binutils-config 2 (this assumes binutils-2.16.* is number 2, if not, check binutils-config -l) And then "source /etc/profile" Everything should work fine at that point.
*** Bug 147117 has been marked as a duplicate of this bug. ***
*** Bug 154723 has been marked as a duplicate of this bug. ***
*** Bug 134658 has been marked as a duplicate of this bug. ***
*** Bug 213275 has been marked as a duplicate of this bug. ***