Can't emerge sys-libs/glibc-2.9_p20081201-r2 on powerpc, compilation fails Reproducible: Always Steps to Reproduce: 1. emerge glibc Actual Results: CPP='powerpc-unknown-linux-gnu-gcc -E -x c-header' /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/elf/ld.so.1 --library-path /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/math:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/nptl /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/sunrpc/xbootparam_prot.T Inconsistency detected by ld.so: dl-load.c: 690: _dl_init_paths: Assertion `pelem->dirname[0] == '/'' failed! make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp] Error 127 make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/glibc-2.9-20081201/sunrpc' make[1]: *** [sunrpc/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/glibc-2.9-20081201' make: *** [all] Error 2 * * ERROR: sys-libs/glibc-2.9_p20081201-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3653: Called eblit-run 'src_compile' * environment, line 1186: Called eblit-glibc-src_compile * src_compile.eblit, line 207: Called toolchain-glibc_src_compile * src_compile.eblit, line 123: Called die * The specific snippet of code: * make PARALLELMFLAGS="${MAKEOPTS}" || die "make for ${ABI} failed" * The die message: * make for default failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/temp/environment'. * emerge --info Portage 2.1.6.13 (default/linux/powerpc/ppc32/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.22.14 ppc) ================================================================= System uname: Linux-2.6.22.14-ppc-e500v2-with-gentoo-1.12.13 Timestamp of tree: Mon, 09 Nov 2009 01:45:01 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.6.3, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="ppc" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="" 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="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl bash-completion berkdb bzip2 cli cracklib crypt cups dri fortran gdbm iconv logrotate modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppc pppd python readline reflection session spl ssl sysfs syslog tcpd threads unicode zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 210488 [details] /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/temp/build.log
Created attachment 210489 [details] /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/temp/eclass-debug.log
Created attachment 210491 [details] /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/temp/environment
The same results for sys-libs/glibc-2.11 and sys-kernel/linux-headers-2.6.30-r1
see if rebooting your system fixes things. or try upgrading your kernel. 2.6.22 is pretty old and way beyond stable. if you're getting the error from `emerge sys-kernel/linux-headers`, let's use those build logs as it's a lot smaller than sys-libs/glibc.
(In reply to comment #5) Rebooting doesn't fix that. I can't upgrade my kernel due to dump mikrotik rb1000 hardware. I have 2.6.22.14 kernel with mikrotik patches, it works on rb1000. If this bug related to my old kernel - please close this bug. `emerge sys-kernel/linux-headers` doesn't produce any errors.
see if building with sandbox makes a difference FEATURES=-sandbox you already have this glibc version installed, so it must have worked at some point. did you perhaps change kernel options ? does it always fail at the same place ? if you go into the build dir: /var/tmp/portage/sys-libs/glibc-2.9_p20081201-r2/work/build-default-powerpc-unknown-linux-gnu-nptl/ can you run simple things like: ./elf/ld.so.1 --library-path $PWD /bin/echo moo cow
Since we suspect that this is due to using an old kernel, I'm going to close the bug. Feel free to open it again if this isn't the case.
Hi, I've the same problem with a 2.6.31.6 kernel and ppc arch. I tried with glibc 2.11 and 2.12 and upgrading binutils / gcc with no effects. I tried to repon the bug but the system doesn't allow me to do so. Thank you, Piergiorgio System uname: Linux-2.6.31.6-oms1460-bist-sc-ppc-e500v2-with-gentoo-1.12.11.1 Timestamp of tree: Thu, 09 Sep 2010 11:15:02 +0000 app-shells/bash: 4.0_p37 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.6.3, 1.10.2, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.2-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b sys-devel/make: 3.81 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="ppc ~ppc" ACCEPT_LICENSE="* -@EULA" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-Os -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/term info /etc/udev/rules.d" CXXFLAGS="-Os -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-l ogs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/d istributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --s tats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X Xaw3d acl bash-completion berkdb branding bzip2 cairo cleartype cli cracklib crypt cscope ctype cups cxx d bus dri expat fam firefox fortran ftp gd gdbm gif gps graphviz hal iconv ipv6 java javascript jbig jpeg libnotify logrotate mmap modules mudflap ncurses nls nptl nptlonly nsplugin openmp openssl pam pcre pdf perl png ppc pppd python readline reflection samba server session ssh ssl startup-notification sysfs syslog tcpd threads thunar tif f toolbar truetype unicode vim vim-pager vim-syntax vnc xcomposite xface xinetd xml xorg xpm xulrunner zlib" ALSA _CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82x x" 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_b asic 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_filte r 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="keyboard mouse evdev" KERNEL ="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TA RGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident voodoo" XTAB LES_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, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COM PRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
upgrade your kernel to a mainline one