Summary: | Glibc-2.3.5 compiles ok, then failed to install | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vasilii Alferov <Vasilii.Alferov> |
Component: | New packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bakirov, lisa |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Vasilii Alferov
2005-04-29 03:23:26 UTC
Commenting out that test when it fails is suicidal... *** This bug has been marked as a duplicate of 86465 *** err, this is a new issue which Vasilii correctly diagnosed ... statically built binaries will segfault under the ld.so test can you please try this fix: for x in date env ls true uname ; do x=$(type -p ${x}) [[ -z ${x} ]] && continue + striptest=$(file -L ${x} 2>/dev/null) + [[ -z ${striptest} ]] && continue + [[ ${striptest/statically linked} != "${striptest}" ]] && continue "${D}"/$(get_libdir)/ld-*.so \ --library-path "${D}"/$(get_libdir) \ ${x} > /dev/null \ Thanks, your fix works. thanks, fix added to portage *** Bug 90341 has been marked as a duplicate of this bug. *** Despite the patch in portage, I'm still having problems with glibc-2.5.3-r2. I'm currently running with glibc-2.3.4.20040808-r1. I successfully upgraded gcc to 3.3.6 (from 3.3.5.20050130-r1) and linux-headers to 2.4.22-r1 (from 2.4.21-r1) and then I was going to upgrade glibc to 2.3.5-r2, but after a "successfull" compile I get the exact same segmentation fault. I've tried up re-emerge coreutils (not statically linked btw) and then upgrade glibc, but still no luck... emerge --info looks like the following: Portage 2.0.51.22-r3 (default-linux/x86/2005.0/2.4, gcc-3.3.6, glibc-2.3.4.20040808-r1, 2.4.19-gentoo-r10 i686) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r6, 2.3.5-r2 sys-apps/sandbox: 1.2.12 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.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe" CHOST="i686-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/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo// ftp://ftp.easynet.nl/mirror/gentoo// ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X apache apm bash-completion berkdb bitmap-fonts crypt cscope curl eds emboss ethereal fam gd gdbm gif gpm gtk gtk2 icc icc-pgo imap imlib innodb ipv6 jpeg junit kde libg++ libwww motif mp3 mpeg mysql ncurses nls no-htdocs notlsbeforeauth opengl pam pdflib perl png postgres python qt readline samba sdl slang snmp spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts xml2 xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS I'm having the same trouble: * Installing man pages... /usr/portage/sys-libs/glibc/glibc-2.3.5-r2.ebuild: line 490: 12018 Segmentation fault "${D}"/$(get_libdir)/ld-*.so --library-path "${D}"/$(get_libdir) ${x} >/dev/null !!! ERROR: sys-libs/glibc-2.3.5-r2 failed. !!! Function toolchain-glibc_src_install, Line 499, Exitcode 139 !!! simple run test (/bin/date) failed !!! If you need support, post the topmost build error, NOT this status message. Following is my 'emerge --info': Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.3.20040420- r1, 2.4.19-gentoo-r10 i686) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Celeron (Mendocino) Gentoo Base System version 1.4.16 dev-lang/python: 2.2.3-r5, 2.3.3-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.59-r4 sys-devel/automake: 1.8.5-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.2-r5 virtual/os-headers: 2.4.19-r1, 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s hare/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium2 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups eds emboss encode es d foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 guile imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis open gl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl tcpd tiff truetype truetype-fonts type1-fonts vorbis xml xml2 xmms xv zlib userland_ GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVER LAY This is really frusturating, it was almost finished (and on my machine, compiling glibc takes many hours), when it gave me this crap. =============================================================================== -i686-pc-linux-gnu-linuxthreads/elf/ld.so /var/tmp/portage/glibc-2.3.5-r2/work/build-default-i686-pc-linux-gnu-linuxthreads/libc.so /var/tmp/portage/glibc-2.3.5-r2/work/build-default-i686-pc-linux-gnu-linuxthreads/libc_nonshared.a collect2: ld terminated with signal 11 [Segmentation fault] make[2]: *** [/var/tmp/portage/glibc-2.3.5-r2/work/build-default-i686-pc-linux-gnu-linuxthreads/math/libm.so] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r2/work/glibc-2.3.5/math' make[1]: *** [math/subdir_install] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r2/work/glibc-2.3.5' make: *** [install] Error 2 !!! ERROR: sys-libs/glibc-2.3.5-r2 failed. !!! Function toolchain-glibc_src_install, Line 293, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. =============================================================================== Below is my emerge --info =============================================================================== Portage 2.0.53_rc6 (default-linux/x86/2005.0/2.4, gcc-3.3.6, glibc-2.3.5-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 Pentium III (Coppermine) Gentoo Base System version 1.12.0_pre9 dev-lang/python: 2.2.3-r5, 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.13 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 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.4.19-r1, 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.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 /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="-march=pentium3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.isu.edu.tw/pub/Linux/Gentoo ftp://ftp.isu.edu.tw/pub/Linux/Gentoo http://ftp.gentoo.or.kr/ http://mymirror.asiaosc.org/gentoo/ ftp://gg3.net/pub/linux/gentoo/ http://gentoo.gg3.net/ http://mirror.gentoo.gr.jp" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X X509 acl alsa apache2 apm arts avi berkdb bitmap-fonts crypt cscope cups curl eds emboss encode esd ethereal fam foomaticdb fortran gcc gd gif gnome gpm gstreamer gtk2 imap imlib ipv6 jabber java javascript jpeg junit kde kerberos krb4 ldap libg++ libwww mad md5sum mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl php png postgres python qt quicktime radius readline samba sdl slang snmp spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vim-with-x vorbis xml2 xmms xv yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY =============================================================================== Unfortunately for me, this problem has broken my entire system. Apache won't upgrade, Postfix won't upgrade, and consequently won't start. So I have no web server, and no email. Somebody please change the status of this bug report to REOPENED - lots of people are experiencing this problem and are getting stuck upgrading their Gentoo machines... |