Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GLIBC fails to install-SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1179

PostPosted: Thu Aug 19, 2010 5:03 am    Post subject: GLIBC fails to install-SOLVED Reply with quote

then echo 'stubs.h unchanged'; \
else /usr/bin/install -c -m 644 /var/tmp/paludis/sys-libs-glibc-2.12.1/work/build-default-i686-pc-linux-gnu-nptl/stubs.h /var/tmp/paludis/sys-libs-glibc-2.12.1/image//usr/include/gnu/stubs-32.h; fi
rm -f /var/tmp/paludis/sys-libs-glibc-2.12.1/work/build-default-i686-pc-linux-gnu-nptl/stubs.h
/var/tmp/paludis/sys-libs-glibc-2.12.1/work/build-default-i686-pc-linux-gnu-nptl/elf/sln /var/tmp/paludis/sys-libs-glibc-2.12.1/work/build-default-i686-pc-linux-gnu-nptl/elf/symlink.list
unexpected reloc type in static binarymake[1]: Leaving directory `/var/tmp/paludis/sys-libs-glibc-2.12.1/work/glibc-2.12.1'
make[1]: *** [install-symbolic-link] Error 139
make: *** [install] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in sys-libs/glibc-2.12.1::gentoo:
!!! In toolchain-glibc_src_install at line 22
!!! (no message provided)

!!! Call stack:
!!! * toolchain-glibc_src_install (/usr/portage/sys-libs/glibc/files/eblits/src_install.eblit:22)
!!! * eblit-glibc-src_install (/usr/portage/sys-libs/glibc/files/eblits/src_install.eblit:247)
!!! * eblit-run (/var/tmp/paludis/sys-libs-glibc-2.12.1/temp/loadsaveenv:1697)
!!! * src_install (/var/tmp/paludis/sys-libs-glibc-2.12.1/temp/loadsaveenv:5393)
!!! * ebuild_f_install (/usr/libexec/paludis/0/src_install.bash:48)
!!! * ebuild_main (/usr/libexec/paludis/ebuild.bash:647)
!!! * main (/usr/libexec/paludis/ebuild.bash:675)

diefunc: making ebuild PID 7813 exit with error
die trap: exiting with error.

Install error:
* In program paludis --dl-upgrade as-needed -i sys-libs/glibc virtual/libc:
* When performing install action from command line:
* When executing install task:
* When installing 'sys-libs/glibc-2.12.1:2.2::gentoo' replacing { 'sys-libs/glibc-2.11.2:2.2::installed' }:
* When running an ebuild command on 'sys-libs/glibc-2.12.1:2.2::gentoo':
* Install failed for 'sys-libs/glibc-2.12.1:2.2::gentoo'

no errors, nothing
gcc-4.5.1
any help?
thanks.
_________________
this is a strange strange world.


Last edited by tranquilcool on Sat Aug 21, 2010 3:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Fri Aug 20, 2010 11:31 am    Post subject: Reply with quote

Same here:

Code:
if test -r /var/tmp/portage/sys-libs/glibc-2.12.1-r1/image//usr/include/gnu/stubs-32.h && cmp -s /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/stubs.h /var/tmp/portage/sys-libs/glibc-2.12.1-r1/image//usr/include/gnu/stubs-32.h; \
        then echo 'stubs.h unchanged'; \
        else /usr/bin/install -c -m 644 /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/stubs.h /var/tmp/portage/sys-libs/glibc-2.12.1-r1/image//usr/include/gnu/stubs-32.h; fi
rm -f /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/stubs.h
unexpected reloc type in static binary/var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/sln /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/symlink.list
make[1]: *** [install-symbolic-link] Error 139
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/glibc-2.12.1'
make: *** [install] Error 2
 * ERROR: sys-libs/glibc-2.12.1-r1 failed:
 *   (no error message)
 *
 * Call stack:
 *           ebuild.sh, line   54:  Called src_install
 *         environment, line 3969:  Called eblit-run 'src_install'
 *         environment, line 1274:  Called eblit-glibc-src_install
 *   src_install.eblit, line  238:  Called eblit-glibc-src_install
 *   src_install.eblit, line  247:  Called toolchain-glibc_src_install
 *   src_install.eblit, line   22:  Called die
 * The specific snippet of code:
 *      emake install_root="${install_root}" install || die
 *
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.12.1-r1',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.12.1-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/glibc-2.12.1'


Code:
emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 20 Aug 2010 10:30:15 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -mfpmath=sse -fomit-frame-pointer -msse4.1 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe -mfpmath=sse -fomit-frame-pointer -msse4.1 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.po.opole.pl"
LANG="pl_PL.utf8"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,-s -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gnome /var/lib/layman/gentoo-china /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi activefilter agent alsa alsa-shared amd64 artist-screen aspell async atm auto-hinter bcmath bfq bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cgi cleartype cli colors consolekit cpufreq cracklib crosscompile crypt cue cups curl custom-optimization cxx dbus dell desktopglobe device-mapper dhcp disk-partition djvu dmraid dri dts dvd dvdr ebook emerald encode evo exif extensions extras fam fastcgi fat fbcon ffmpeg fftw firefox flac fontconfig fontforge foomaticdb fortran fortune frontend ftp fuse gd gdu geoip gif git glade glibc-omitfp glitz gmp gmplayer gnome gnome-keyring gnutls google-gadgets gpm graphite graphlcd gstreamer gtk gtk2 hashstyle hddtemp iconv id3tag idle imagemagick inotify ithreads jabber java java6 jpeg justify key-screen lame laptop lcdfilter lcms libnotify libsamplerate libssh2 lightning lighttpd lm_sensors lyrics-screen lzma mad mailwrapper mbox mdadm memcache mmx mng modules mouse moznopango mp3 mp4 mpeg mppe-mppc mtp multilib musepack nagios-ntp nagios-ping nagios-ssh nautilus ncurses newspr nls nptl nptlonly nsplugin ntfs ntp offensive ogg openal opengl openmp pam pango pcre pdf perl php pic png policykit postproc ppds pppd pppoa profiledbootstrap python qt3support raw rdesktop-vrdp rdp readline reflection reiser4 reiserfs resolvconf samba search-screen server session slang smp snmp sockets song-screen sound spell spl sql sqlite sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs taglib tcpd threads thumbnail thunar tiff transparent-proxy truetype udev um unicode unsupported usb userlocales vdpau vmware_guest_linux vmware_guest_windows vnc vorbis wavpack webdav-serf webkit wifi winbind wps x264 xcb xcomposite xfs xml xml2 xorg xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Aug 20, 2010 11:34 am    Post subject: Reply with quote

Quote:

CFLAGS="-O2 -march=core2 -pipe -mfpmath=sse -fomit-frame-pointer -msse4.1 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block"
CXXFLAGS="-O2 -march=core2 -pipe -mfpmath=sse -fomit-frame-pointer -msse4.1 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block"
LDFLAGS="-Wl,-O1 -Wl,-s -Wl,--hash-style=gnu -Wl,--as-needed"


It's because of the insane flags. Change those to sane ones:

CFLAGS="-O2 -march=core2 -pipe -msse4.1"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"

and glibc should install fine.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Fri Aug 20, 2010 12:53 pm    Post subject: Reply with quote

Not true.

With

Code:
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.1, glibc-2.11.2-r0, 2.6.35-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 20 Aug 2010 10:30:15 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1, 4.5.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.po.opole.pl"
LANG="pl_PL.utf8"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,-s -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gnome /var/lib/layman/gentoo-china /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi activefilter agent alsa alsa-shared amd64 artist-screen aspell async atm auto-hinter bcmath bfq bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cgi cleartype cli colors consolekit cpufreq cracklib crosscompile crypt cue cups curl custom-optimization cxx dbus dell desktopglobe device-mapper dhcp disk-partition djvu dmraid dri dts dvd dvdr ebook emerald encode evo exif extensions extras fam fastcgi fat fbcon ffmpeg fftw firefox flac fontconfig fontforge foomaticdb fortran fortune frontend ftp fuse gd gdu geoip gif git glade glibc-omitfp glitz gmp gmplayer gnome gnome-keyring gnutls google-gadgets gpm graphite graphlcd gstreamer gtk gtk2 hashstyle hddtemp iconv id3tag idle imagemagick inotify ithreads jabber java java6 jpeg justify key-screen lame laptop lcdfilter lcms libnotify libsamplerate libssh2 lightning lighttpd lm_sensors lyrics-screen lzma mad mailwrapper mbox mdadm memcache mmx mng modules mouse moznopango mp3 mp4 mpeg mppe-mppc mtp multilib musepack nagios-ntp nagios-ping nagios-ssh nautilus ncurses newspr nls nptl nptlonly nsplugin ntfs ntp offensive ogg openal opengl openmp pam pango pcre pdf perl php pic png policykit postproc ppds pppd pppoa profiledbootstrap python qt3support raw rdesktop-vrdp rdp readline reflection reiser4 reiserfs resolvconf samba search-screen server session slang smp snmp sockets song-screen sound spell spl sql sqlite sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs taglib tcpd threads thumbnail thunar tiff transparent-proxy truetype udev um unicode unsupported usb userlocales vdpau vmware_guest_linux vmware_guest_windows vnc vorbis wavpack webdav-serf webkit wifi winbind wps x264 xcb xcomposite xfs xml xml2 xorg xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


happens the same:

Code:
/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/stubs) > /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/stubs.h
if test -r /var/tmp/portage/sys-libs/glibc-2.12.1-r1/image//usr/include/gnu/stubs-32.h && cmp -s /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/stubs.h /var/tmp/portage/sys-libs/glibc-2.12.1-r1/image//usr/include/gnu/stubs-32.h; \
        then echo 'stubs.h unchanged'; \
        else /usr/bin/install -c -m 644 /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/stubs.h /var/tmp/portage/sys-libs/glibc-2.12.1-r1/image//usr/include/gnu/stubs-32.h; fi
rm -f /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/stubs.h
/var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/sln /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/symlink.list
unexpected reloc type in static binarymake[1]: *** [install-symbolic-link] Error 139
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/glibc-2.12.1'
make: *** [install] Error 2
 * ERROR: sys-libs/glibc-2.12.1-r1 failed:
 *   (no error message)
 *
 * Call stack:
 *           ebuild.sh, line   54:  Called src_install
 *         environment, line 3969:  Called eblit-run 'src_install'
 *         environment, line 1274:  Called eblit-glibc-src_install
 *   src_install.eblit, line  238:  Called eblit-glibc-src_install
 *   src_install.eblit, line  247:  Called toolchain-glibc_src_install
 *   src_install.eblit, line   22:  Called die
 * The specific snippet of code:
 *      emake install_root="${install_root}" install || die
 *
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.12.1-r1',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.12.1-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/glibc-2.12.1'
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Fri Aug 20, 2010 12:56 pm    Post subject: Reply with quote

More info:

Code:
gentoo-xps64 ~ # /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/sln
unexpected reloc type in static binary Naruszenie ochrony pamięci


dmesg:

Code:
sln[13616] general protection ip:805c2cd sp:ff900e28 error:0 in sln[8048000+90000]


EDIT: I found that, may be connected?

Quote:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485464


I can't check it now, because I can't reboot remote machine now -- will check it in the evening.

EDIT2: OMG, sorry, that was 2.6.25, not .35

aaaaaaaaaand EDIT3: that "insane" flags worked OK for glibc-2.11.2-r0.
Back to top
View user's profile Send private message
radhad
n00b
n00b


Joined: 04 Jun 2010
Posts: 2

PostPosted: Fri Aug 20, 2010 1:35 pm    Post subject: Reply with quote

Same error here, both with sys-libs/glibc-2.12.1 and sys-libs/glibc-2.12.1-r1
Code:
if test -r /var/tmp/portage/sys-libs/glibc-2.12.1-r1/image//usr/include/gnu/stubs-32.h && cmp -s /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/stubs.h /var/tmp/portage/sys-libs/glibc-2.12.1-r1/image//usr/include/gnu/stubs-32.h; \
        then echo 'stubs.h unchanged'; \
        else /usr/bin/install -c -m 644 /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/stubs.h /var/tmp/portage/sys-libs/glibc-2.12.1-r1/image//usr/include/gnu/stubs-32.h; fi
rm -f /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/stubs.h
/var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/sln /var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/symlink.list
unexpected reloc type in static binarymake[1]: *** [install-symbolic-link] Error 139
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/glibc-2.12.1'
make: *** [install] Fehler 2
 * ERROR: sys-libs/glibc-2.12.1-r1 failed:
 *   (no error message)
 *
 * Call stack:
 *           ebuild.sh, line   54:  Called src_install
 *         environment, line 3986:  Called eblit-run 'src_install'
 *         environment, line 1291:  Called eblit-glibc-src_install
 *   src_install.eblit, line  238:  Called eblit-glibc-src_install
 *   src_install.eblit, line  247:  Called toolchain-glibc_src_install
 *   src_install.eblit, line   22:  Called die
 * The specific snippet of code:
 *      emake install_root="${install_root}" install || die
 *
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.12.1-r1',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.12.1-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/glibc-2.12.1'

>>> Failed to emerge sys-libs/glibc-2.12.1-r1, Log file:

>>>  '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/temp/build.log'

 * Messages for package sys-libs/glibc-2.12.1-r1:

 * ERROR: sys-libs/glibc-2.12.1-r1 failed:
 *   (no error message)
 *
 * Call stack:
 *           ebuild.sh, line   54:  Called src_install
 *         environment, line 3986:  Called eblit-run 'src_install'
 *         environment, line 1291:  Called eblit-glibc-src_install
 *   src_install.eblit, line  238:  Called eblit-glibc-src_install
 *   src_install.eblit, line  247:  Called toolchain-glibc_src_install
 *   src_install.eblit, line   22:  Called die
 * The specific snippet of code:
 *      emake install_root="${install_root}" install || die
 *
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.12.1-r1',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.12.1-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.12.1-r1/work/glibc-2.12.1'

Code:
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-gentoo-r1 x86_64)                                                                                                                         
=================================================================                                                                                                                                                                   
System uname: Linux-2.6.35-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6850_@_3.00GHz-with-gentoo-2.0.1                                                                                                                           
Timestamp of tree: Fri, 20 Aug 2010 13:00:01 +0000                                                                                                                                                                                 
ccache version 2.4 [disabled]                                                                                                                                                                                                       
app-shells/bash:     4.1_p7                                                                                                                                                                                                         
dev-java/java-config: 2.1.11                                                                                                                                                                                                       
dev-lang/python:     2.6.5-r3, 3.1.2-r4                                                                                                                                                                                             
dev-util/ccache:     2.4-r8                                                                                                                                                                                                         
dev-util/cmake:      2.8.1-r2                                                                                                                                                                                                       
sys-apps/baselayout: 2.0.1                                                                                                                                                                                                         
sys-apps/openrc:     0.6.1-r1                                                                                                                                                                                                       
sys-apps/sandbox:    2.3-r1                                                                                                                                                                                                         
sys-devel/autoconf:  2.13, 2.65-r1                                                                                                                                                                                                 
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                                                                                                                                                                             
sys-devel/binutils:  2.20.1-r1                                                                                                                                                                                                     
sys-devel/gcc:       4.4.4-r1                                                                                                                                                                                                       
sys-devel/gcc-config: 1.4.1                                                                                                                                                                                                         
sys-devel/libtool:   2.2.10                                                                                                                                                                                                         
sys-devel/make:      3.81-r2                                                                                                                                                                                                       
virtual/os-headers:  2.6.34                                                                                                                                                                                                         
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                                                                                                                                     
ACCEPT_LICENSE="*"                                                                                                                                                                                                                 
CBUILD="x86_64-pc-linux-gnu"                                                                                                                                                                                                       
CFLAGS="-march=native -pipe -O2"                                                                                                                                                                                                   
CHOST="x86_64-pc-linux-gnu"                                                                                                                                                                                                         
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                                                                                                                                                         
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                           
CXXFLAGS="-march=native -pipe -O2"                                                                                                                                                                                                 
DISTDIR="/usr/portage/distfiles"                                                                                                                                                                                                   
FEATURES="assume-digests distlocks fixpackages news parallel-fetch parralel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                     
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://mirror.netcologne.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.osuosl.org/ "                                                                                                                                                                                                           
LANG="de_DE.UTF-8"                                                                                                                                                                                                                 
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,-z,now -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--sort-common -s"                                                                                               
LINGUAS="de"                                                                                                                                                                                                                       
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/vmware"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi akonadi alsa amd64 audio bash-completion berkdb branding bzip2 cairo cdr chipcard cleartype cli consolekit cracklib crypt cups custom-optimization cxx dbus device-mapper disk-partition djvu dri dts dvd dvdr emboss encode exif fam fbcondecor fbsplash ffmpeg firefox flac fontconfig foomaticdb fortran gd gdbm geoip gif gimp glitz gmp gnutls gpm gtk gtk2 hal iconv inotify iproute2 ipv6 jack jpeg kde kdrive lcms ldap libnotify lirc lm_sensors logitech-mouse lv2 lzma mad mikmod mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses networkmanager nls nptl nptlonly nss ntfs ogg openexr opengl openmp pam pango pcre pdf perl plasma png policykit ppds pppd python python3 qt3support qt4 rar readline reflection resolvconf rss samba sdl semantic-desktop session sip skype smp spell spl sql sqlite sse sse2 sse3 ssl ssse3 startup-notification stun svg sysfs tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vdpau vhosts video vorbis wav webkit wps x264 xattr xcb xcomposite xinerama xml xorg xrender xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="hda-intel emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="livedrive_midi livedrive_seq" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Aug 20, 2010 2:03 pm    Post subject: Reply with quote

And again...

LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,-z,now -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--sort-common -s"

Try with just

LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"

and it propably will work

https://bugs.gentoo.org/show_bug.cgi?id=333137#c4

Also if you have /bin/sh pointed to dash instead of bash, that's another possibility:

https://bugs.gentoo.org/show_bug.cgi?id=333315#c5

Try downgrading dash, or switching the /bin/sh link back to bash.
Back to top
View user's profile Send private message
radhad
n00b
n00b


Joined: 04 Jun 2010
Posts: 2

PostPosted: Fri Aug 20, 2010 4:28 pm    Post subject: Reply with quote

Quote:
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"


Seem to work...

Why did glibc-2.11.* compiled then with LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--sort-common -s" ?
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Aug 20, 2010 4:37 pm    Post subject: Reply with quote

radhad wrote:
Quote:
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"


Seem to work...

Why did glibc-2.11.* compiled then with LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--sort-common -s" ?


Out of luck

-Wl,-s (or plain -s) breaks Portage's strip handling, FEATURES="nostrip", FEATURES="-nostrip". Also, toolchain packages, exactly like glibc handles stripping in very selective way -> Some of the installed binaries/libraries *can* be stripped, and some *cannot*. Just forcing stripping for everything is... like I said, insane

-Wl,-z,now breaks applications that *require* lazy bindings for *runtime*, such as some Python bindings (like gst-python, and thus all python based gstreamer players), some X11 drivers, ...

-Wl,--sort-common and -Wl,--enable-new-dtags might actually be relatively safe, but I wouldn't recommend it...
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Fri Aug 20, 2010 7:24 pm    Post subject: Reply with quote

Hah, removing -Wl,-s from LDFLAGS allowed glibc-2.12.1-r1 to compile. Solved for me :)
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1179

PostPosted: Sat Aug 21, 2010 3:22 pm    Post subject: Reply with quote

mbar wrote:
Hah, removing -Wl,-s from LDFLAGS allowed glibc-2.12.1-r1 to compile. Solved for me :)


this solved it for me too.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
gcyoung
Apprentice
Apprentice


Joined: 04 Jul 2007
Posts: 170
Location: England

PostPosted: Tue Aug 24, 2010 9:13 am    Post subject: Reply with quote

I had the same problem until I realised it wont compile using "distcc". all went fine when I disabled that and reduced from -j4 to -j2 in my make.conf file.
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland

PostPosted: Tue Aug 24, 2010 9:17 am    Post subject: Reply with quote

This is another problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum