Summary: | GCC-3.4.2: binaries report missing libstdc++.so.6 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Rumen Yotov <rumen> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | gentoobugzilla, mozilla, richard, robbat2 |
Priority: | Highest | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 63973 | ||
Bug Blocks: |
Description
Rumen Yotov
2004-09-23 13:06:58 UTC
Hi again, Some things have become more clear. Problem seems not to be with Mz,FF,TB but with GCC-3.4.2. There are such libstdc++.so.6 in GCC-3.4.2 but sometihing broke up. Unmerged all GCC-3.4.x (even gcc-3.3.4 by mistake) happily has GCC-3.4.1 binary so emerged it (fix_libtoo.sh, ldconfig etc.). gcc-config works again. Now seems i have a sane system at last. Not very sure still. Rumen Toolchain: I've raised this to blocker, as it can stop every c++ binary from working (as they are all linked against libstdc++). Re-merging the packages does NOT solve it. root@hevesy-int /usr/portage/dev-java # ldd /usr/bin/jikes linux-gate.so.1 => (0xffffe000) libstdc++.so.6 => not found libm.so.6 => /lib/libm.so.6 (0x40030000) libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x40053000) libc.so.6 => /lib/libc.so.6 (0x4005c000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Jikes does NOT link against any library directly. Tracing the problem, it seems that /etc/env.d/05gcc still contains references to gcc-3.4.1, which causes a bad /etc/ld.so.conf to be generated (without the 3.4.2 directory). So the new gcc-3.4.2-r2 isn't using gcc-config properly I suspect, but I can't figure out why. toolchain: It's gcc-config is being dumb. When it gets called, it gives the 'Profile does not exist' message, and so doesn't fix up 05gcc. I had been having the same problem. Not sure if I have a newer version of gcc-config (from when I originally emerged gcc-3.4.2-r2) or what, but when I run it now it does in fact correctly change the LDPATH in /etc/env.d/05gcc. I guess that means this bug can be marked as resolved? jtshaw: until gcc-3.4.2-r2 installs correct without breaking things like this, this bug should stay open. I have a similar problem; although my firefox and mozilla works fine, I can't compile some applications: [...]ngox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 grep: /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/libstdc++.la: No such file or directory /bin/sed: can't read /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/libstdc++.la: No such file or directory libtool: link: `/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/libstdc++.la' is not a valid libtool archive make[3]: *** [libgtkmm_generate_extra_defs-2.0.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/gtkmm-2.2.12/work/gtkmm-2.2.12/tools/extra_defs_gen' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gtkmm-2.2.12/work/gtkmm-2.2.12/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gtkmm-2.2.12/work/gtkmm-2.2.12' make: *** [all] Error 2 !!! ERROR: dev-cpp/gtkmm-2.2.12 failed. !!! Function gnome2_src_compile, Line 40, Exitcode 2 !!! compile failure !!! If you need support, post the topmost build error, NOT this status message. I had gcc-3.4.1 installed, but updated to 3.4.2 recently. I'm seeing this on two systems, trying to compile gtkmm and php. there is a patch on bug #63973 which probably solves this problem. gcc-config should now be fixed in cvs. once it reaches rsync, update to gcc-config-1.3.6-r2 and do: gcc-config <arch>-3.4.2 fix_libtool_files.sh <previous compiler version> where <arch> is probably i686-pc-linux-gnu on x86 and x86_64-pc-linux-gnu on amd64.... and <previous compiler version> is probably 3.4.1 or 3.3.3. I hinka a similar problem has broken my system - i merge -u'd some stuff and got prompted t update portage , followed by some instructions to change some other stuff its has this in /etc/env.d/gcc/config CURRENT=i586-pc-linux-gnu-3.4.1 - but router gcc # pwd /etc/env.d/gcc router gcc # ls -l total 32 -rw-r--r-- 1 root root 32 Dec 11 19:35 config -rw-r--r-- 1 root root 294 May 2 2003 i586-pc-linux-gnu-3.2.2 -rw-r--r-- 1 root root 294 Aug 13 00:48 i586-pc-linux-gnu-3.3.4 -rw-r--r-- 1 root root 293 Dec 11 00:41 i586-pc-linux-gnu-3.4.3 -rw-r--r-- 1 root root 357 Dec 11 00:41 i586-pc-linux-gnu-3.4.3-hardened -rw-r--r-- 1 root root 362 Dec 11 00:41 i586-pc-linux-gnu-3.4.3-hardenednopie -rw-r--r-- 1 root root 362 Dec 11 00:41 i586-pc-linux-gnu-3.4.3-hardenednossp router gcc # i cant emerge anything and manpages dont work. ie "error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory" outer gcc # emerge info Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.4.24 i586) ================================================================= System uname: 2.4.24 i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.6.7 Python: dev-lang/python-2.1.3-r1,dev-lang/python-2.3.4,dev-lang/python-2.2.3-r5 [2.3.4 (#1, Aug 12 2004, 22:37:28)] distcc 2.17 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.1.3-r1, 2.3.4, 2.2.3-r5 sys-devel/autoconf: 2.59-r4 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.2-r5 virtual/os-headers: 2.4.19-r1, 2.4.22 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=k6-3 -O3 -pipe -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k6-3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib apache2 avi berkdb bitmap-fonts crypt cups dba dedicated encode f77 foomaticdb fortran gd gdbm gif gtk gtk2 imagemagick imap java jpeg junit ldap libg++ libwww maildir mmx motif mpeg mysql ncurses nls odbc pam pdflib perl php png postgres python qt quicktime readline samba sasl sdl slang snmp spell ssl svga tcpd tiff truetype vhosts x86 xml2 xmms xv zlib" |