Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 70437
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 68799
Assigned To: Gentoo Toolchain Maintainers <toolchain@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Alexander Skwar <askwar@digitalprojects.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 70437 depends on: Show dependency tree
Bug 70437 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-11-08 01:39 0000
I updated to gcc-3.4.3 and am now unable to compile anything at all. When 


When I try to compile something, I get:

checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! ERROR: x11-libs/xforms-1.0.90 failed.
!!! Function econf, Line 449, Exitcode 77

Exitcode 77 means:
#define EX_NOPERM       77      /* permission denied */

In config.log, I find:

configure:2441: i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -pipe  -Wl,-O1 conftest.c  >&5
i686-pc-linux-gnu-gcc: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/specs: No such file or directory

[08:47:01 alexander@server:~] $ ls -la /usr/lib/gcc-lib/i686-pc-linux-gnu
insgesamt 8
drwxr-xr-x  4 root root   30  8. Nov 08:18 .
drwxr-xr-x  3 root root   30 16. Jul 20:36 ..
drwxr-xr-x  4 root root 4096  9. Okt 18:08 3.3.4
drwxr-xr-x  4 root root 4096  8. Nov 08:14 3.4.3

Why is gcc trying to read that file from the now absent 3.4.2
directory/installation?



Reproducible: Always
Steps to Reproduce:




[10:36:42 alexander@server:~] $ emerge info
Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041102-r0,
2.6.9-ck2.ASN.no-devfs.async_ppp i686)
=================================================================
System uname: 2.6.9-ck2.ASN.no-devfs.async_ppp i686 AMD Athlon(tm) XP 2000+
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-r6
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache collision-protect distlocks sandbox"
GENTOO_MIRRORS="http://localhost/~alexander/gentoo-files/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://194.117.158.29"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aalib acl alsa apache2 apm arts artswrappersuid async avi
bluetooth bzlib cairo calendar cddb cdparanoia cdr cdrom codecs crypt cscope
cups curl curlwrappers dga diet directfb divx4linux djbfft encode esd ethereal
evo exif fam fbcon fbdev ffmpeg fftw flac flash foomaticdb foreign-package
foreign-sysvinit fortran ftp fwdzone gd gdbm gif gimp gimpprint gmail gnokii
gnome gphoto2 gpm gstreamer gtk gtk2 guile hal iconv imagemagick imap imlib
immqt-bc java javascript jpeg kde libedit libg++ libwww lzo lzw lzw-tiff mad
maildir mailwrapper matroska matrox mbox mime mmap mmx mng mozilla mpeg ncurses
network nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging
nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan
noxerces nptl nptlonly offensive ofx oggvorbis opengl oss pam parse-clocks pcntl
pcre pdflib perl pic pie png posix ppds python qt quicktime quotes readline
recode samba sasl sdl shared slang sockets spell sse ssl svg sysvipc tcltk tcpd
tetex theora tiff truetype unicode usb videos vim-with-x wmf x86 xchattext xfs
xml2 xmms xv xvid zlib video_cards_matrox linguas_de"

------- Comment #1 From revertex 2004-11-08 02:19:08 0000 -------
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"

------- Comment #2 From Alexander Skwar 2004-11-08 02:54:02 0000 -------
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.

------- Comment #3 From Matti Rendahl 2004-11-08 03:57:22 0000 -------
> 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...

------- Comment #4 From Harris Landgarten 2004-11-08 04:29:55 0000 -------
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.

------- Comment #5 From revertex 2004-11-08 04:49:12 0000 -------
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.

------- Comment #6 From Phil Richards 2004-11-08 06:21:29 0000 -------
Me too (adding CC).

Workaround suggested works.

Phil

------- Comment #7 From Harris Landgarten 2004-11-08 06:46:59 0000 -------
There seems to be a further problem with g++. Ebuilds are still looking for
3.4.2 libraries and failing.

------- Comment #8 From Neil Bothwick 2004-11-08 06:52:56 0000 -------
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.

------- Comment #9 From Travis Tilley (RETIRED) 2004-11-08 10:24:37 0000 -------

*** This bug has been marked as a duplicate of 68799 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug