Summary: | After gcc-3.4.3 upgrade, not able to compile anything - referencing /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/specs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alexander Skwar <askwar> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | aoyu93, greg_g, jrmalaq, neil, news |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alexander Skwar
2004-11-08 01:39:29 UTC
this is the first time i have a critical bug, i can't emerge anything. here follows some errors messages, i hope it should be helpful ------------------------------------------------------------------- * Checking gcc for __thread support ... no * Could not find a gcc that supports the __thread directive! * please update to gcc-3.2.2-r1 or later, and try again. !!! ERROR: sys-libs/glibc-2.3.4.20041102 failed. !!! Function check_nptl_support, Line 158, Exitcode 0 !!! No __thread support in gcc! !!! If you need support, post the topmost build error, NOT this status message>>> Unpacking source... nptl x86 * Checking gcc for __thread support ... no * Could not find a gcc that supports the __thread directive! * please update to gcc-3.2.2-r1 or later, and try again. !!! ERROR: sys-libs/glibc-2.3.4.20041102 failed. !!! Function check_nptl_support, Line 158, Exitcode 0 !!! No __thread support in gcc! ---------------------------------------------------------------- checking for gcc... gcc checking whether the C compiler (gcc -O2 -march=athlon-tbird -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. !!! ERROR: sys-devel/libtool-1.5.2-r6 failed. !!! Function src_compile, Line 156, Exitcode 1 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. checking for gcc... gcc checking whether the C compiler (gcc -O2 -march=athlon-tbird -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. !!! ERROR: sys-devel/libtool-1.5.2-r6 failed. !!! Function src_compile, Line 156, Exitcode 1 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. --------------------------------------------------------------- *** This configuration is not supported in the following subdirectories: target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc (Any other directories should still work fine.) gcc: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/specs: No such file or directory *** The command 'gcc -o conftest conftest.c' failed. *** You must set the environment variable CC to a working compiler. !!! ERROR: sys-devel/gcc-3.4.3 failed. !!! Function gcc_do_configure, Line 996, Exitcode 1 !!! failed to run configure !!! If you need support, post the topmost build error, NOT this status message. ---------------------------------------------------------------- i need to manually edit /etc/env.d/gcc/config because it still pointing to the old gcc version. i also tried set the new vesion with gcc-config, but it's already set. ---------------------------------------------------------------- emerge info Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.4.3, glibc-2.3.4.20041021-r0, 2.6.9-gentoo-r2 i686) ================================================================= System uname: 2.6.9-gentoo-r2 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.6.5 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /v ar/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe -fvisibility-inline s-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks noalllocale prelink sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X acpi alsa apache2 avi berkdb bitmap-fonts bzlib cdr crypt curl dga directfb divx4linux dvd encode e xif f77 fam fbcon fortran gdbm gif gpm gstreamer gtk gtk2 imagemagick imlib jpeg lcms libedit libg++ libwww mad maildir mikmod mime mmx mng motif mpeg ncurses nls nocd nptl offensive oggvorbis openal opengl oss pam pdflib pe rl png python qt quicktime readline sdl session skey slang spell ssl svg svga tcltk tcpd tiff truetype userlocal es videos wmf wxwindows x86 xml2 xmms xosd xpm xv xvid zlib linguas_pt_BR" Turns out, that something like "gcc-config i686-pc-linux-gnu-3.4.3" hasn't been run. HOWEVER, I still consider this as a bug. I got 3.4.3 installed, because of a "emerge -Du world". After 3.4.3 got installed, emerge carried on to install other packages. IMO, it should've stopped and it should've informed the user. > i686-pc-linux-gnu-gcc: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/specs: No such file or directory
I got the same, even after source /etc/profile. Apparently GCC_SPECS that was set in my env (to .../3.4.2/specs) is not exported by gcc-config (/etc/env.d/gcc/?) any more, but used by gcc. After unset GCC_SPECS it worked again...
the line GCC_SPECS="/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs" is missing from /etc/env.d/gcc/i686-pc-linux-gnu-3.4.3 It also appears that ebuild never ran gcc-config. thanks Harris Landgarten, adding GCC_SPECS="/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs" to /etc/env.d/gcc/i686-pc-linux-gnu-3.4.3 and editing /etc/env.d/gcc/config to 3.4.3 fix everything, i'm able to compile again. it seems there is something broken in the ebuild. Me too (adding CC). Workaround suggested works. Phil There seems to be a further problem with g++. Ebuilds are still looking for 3.4.2 libraries and failing. LDPATH in /etc/env.d/05gcc is not being updated correctly. Mine still contained /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2 and no 3.4.3 entry. |