It must have worked with previous programs, because I have it already emerged. Just doing a "emerge -e system" and only glibc failed with: /bin/sh ../scripts/move-if-change /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/xnlm_prot.T /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/xnlm_prot.c touch /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/xnlm_prot.stmp CPP='x86_64-pc-linux-gnu-gcc -E -x c-header' /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf/ld-linux-x86-64.so.2 --library-path /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl:/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/math:/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/nptl /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/rpcgen -Y ../scripts -c rpcsvc/rstat.x -o /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/xrstat.T libsandbox: Can't resolve fopen: (null) make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/xrstat.stmp] Error 1 make[2]: *** Waiting for unfinished jobs.... /bin/sh ../scripts/move-if-change /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.T /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.h touch /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.stmp make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1/sunrpc' make[1]: *** [sunrpc/others] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1' make: *** [all] Error 2 * * ERROR: sys-libs/glibc-2.6.1 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * glibc-2.6.1.ebuild, line 155: Called eblit-run 'src_compile' * glibc-2.6.1.ebuild, line 150: Called eblit-glibc-src_compile * src_compile.eblit, line 168: Called src_compile * glibc-2.6.1.ebuild, line 155: Called eblit-run 'src_compile' * glibc-2.6.1.ebuild, line 150: Called eblit-glibc-src_compile * src_compile.eblit, line 179: Called toolchain-glibc_src_compile * src_compile.eblit, line 122: Called die * The specific snippet of code: * make PARALLELMFLAGS="${MAKEOPTS}" || die "make for ${ABI} failed" * The die message: * make for amd64 failed It seems to have something to do with sandbox. "emerge --info": Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64) ================================================================= System uname: 2.6.23-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3700+ Timestamp of tree: Tue, 18 Dec 2007 13:46:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.hadiko.de/pub/dists/gentoo/gentoo http://pandemonium.tiscali.de/pub/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.prz.rzeszow.pl http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ds.thn.htu.se/linux/gentoo http://ftp.romnet.org/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.aiya.ru/pub/gentoo/ http://ftp.du.se/pub/os/gentoo http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl http://gentoo.ynet.sk/pub http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.intergenia.de http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/berkano /usr/portage/local/layman/verlihub /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 apache2 arts audiofile automount bash-completion berkdb bitmap-fonts bzip2 cairo caps cdparanoia cdr chroot cli cracklib crypt css cups curl dbus dri dvb dvd dvdr dvdread encode evo exif fam ffmpeg firefox foomaticdb fortran ftp gcj gd gdbm gif gimp gimpprint gmp gpm gs hal i8x0 iconv idea idn imagemagick isdnlog jack java jpeg kde kdeenablefinal kerberos lcms libclamav lm_sensors logitech-mouse logrotate mad midi mikmod mmx mng mp3 mpeg mudflap mysql ncurses nls no-htdocs nptl nptlonly nsplugin nvidia ogg openal opengl openmp oss pam pcre pdf perl php png pppd python qt qt3 qt3support qt4 quicktime readline reflection rtc rtsp samba sdl session spell spl sse sse2 ssl svg sysvipc tcpd tetex theora threads tiff tools truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis x264 xcomposite xml xml2 xorg xpm xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I can confirm this. Bug strangely I emerged glibc without any problems (during emerge -uDavN system). Afterwards libsandbox began to complain and I found similar errors: >>> Compiling source in /var/tmp/portage/sys-fs/udev-115-r1/work/udev-115 ... /usr/bin/x86_64-pc-linux-gnu-ar GENHDR udev_version.h CC udev_device.o CC udev_config.o CC udev_node.o CC udev_db.o CC udev_sysfs.o libsandbox: Can't resolve access: (null) make: *** [udev_sysfs.o] Error 1 * * ERROR: sys-fs/udev-115-r1 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * udev-115-r1.ebuild, line 126: Called die * The specific snippet of code: * emake \ * EXTRAS="${extras}" \ * libudevdir=${udev_helper_dir} \ * CROSS_COMPILE=${mycross} \ * OPTFLAGS="" \ * ${myconf} || die * The die message: * (no error message) Most notably the 'Can't resolve <something>' came randomly. I'm quite sure I'm not a victim of hardware malfunction as everything emerged fine with FEATURES="-sandbox" emerge ... # emerge --info Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64) ================================================================= System uname: 2.6.23-gentoo-r3 x86_64 Intel(R) Xeon(R) CPU E5335 @ 2.00GHz Timestamp of tree: Mon, 17 Dec 2007 01:47:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.gentoo.diku.dk/ http://mirror.uni-c.dk/pub/gentoo/" LINGUAS="fr en de it sv da en_GB" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.diku.dk/gentoo-portage/" USE="acl amd64 berkdb bitmap-fonts cjk cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog ldap logrotate maildir mbox midi mmx mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection sasl session slang spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode x86 xorg 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 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" LINGUAS="fr en de it sv da en_GB" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
*** Bug 202842 has been marked as a duplicate of this bug. ***
Got the same trouble today on new kernel. Except usual i turn two new options in kernel: -fstack-protector and SLUB allocator. After rollback this options (fstack disabled, SLAB allocator) glibc was compiled without any troubles. Please, all, review your kernel config about this options.
I had the same type of problems (different packages failed though) on my newly installed nocona based system, which seemed to be solved by re-emerging sandbox with FEATURE sandbox turned off (as stated in the elog when emerging sandbox). In other words: FEATURES="-sandbox" emerge -av1 sandbox did the trick for me. Is that helpful to resolve this?
I tried both, but they do not work for me.
My current kernel-config tells me: # CONFIG_CC_STACKPROTECTOR is not set # CONFIG_SLUB is not set And FEATURES="-sandbox -usersandbox" emerge -1av sandbox emerge -1av glibc didnt worked. But FEATURES="-sandbox -usersandbox" emerge -1av glibc obviously worked.
I ran into the same problem, but I resolved it from this forum thread -> http://forums.gentoo.org/viewtopic-p-4698824.html?sid=075a4638579cf257cf7713e5cc16db74 I installed a fresh stage3 on my new laptop (Intel Core 2 Duo, 2.2GHz). Once I got through the install process, I did "emerge -vuDNe world". It failed twice at glibc-2.6.1 with the same error message: libsandbox: Can't resolve fopen: (null) All I had to do was: emerge --oneshot sandbox And glibc was able to compile just fine
I saw this same error too on a very fresh install that has emerge -e system for stage2 going right now. One thing that went wrong earlier was glibc not getting recompiled in stage1 due to power issue and moving on, but sandbox was done before glibc in stage1 anyhow, I believe
I ran across this as well. Rebuilding/rebooting the kernel did help, but only once I downgraded to 2.6.22. With 2.6.23 I was unable to build glibc-2.6.1.
if it fails for sandbox-1.3+ and glibc-2.8+, we can take a look
ive rewritten the code in question because of the stuff changed for Bug 206678 to handle things dynamically at runtime older versions "just work" because RTLD_NEXT was changed to never actually be used http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commitdiff;h=180958291462f38154916103a6a4bdeb852e6cc3
*** Bug 206678 has been marked as a duplicate of this bug. ***