Emerge of glibc fails with segmentation fault after compiling OK for a long while. Specifically the segfault: else /usr/bin/install -c -m 644 /var/tmp/portage/sys-libs/glibc-2.8_p20080602-r1/work/build-default-i686-pc-linux-gnu-nptl/stubs.h /var/tmp/portage/sys-libs/glibc-2.8_p20080602-r1/image//usr/include/gnu/stubs-32.h; fi rm -f /var/tmp/portage/sys-libs/glibc-2.8_p20080602-r1/work/build-default-i686-pc-linux-gnu-nptl/stubs.h /var/tmp/portage/sys-libs/glibc-2.8_p20080602-r1/work/build-default-i686-pc-linux-gnu-nptl/elf/sln /var/tmp/portage/sys-libs/glibc-2.8_p20080602-r1/work/build-default-i686-pc-linux-gnu-nptl/elf/symlink.list make[1]: *** [install-symbolic-link] Segmentation fault make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.8_p20080602-r1/work/glibc-2.8-20080602' make: *** [install] Error 2 previously I was getting emerge errors because i686-pc-linux-gnu-gcc was not found. That problem was fixed by reemerging gcc. I'm using 2008.0, box is a dual processor: vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Xeon(TM) CPU 2.80GHz stepping : 7 cpu MHz : 2791.032 Reproducible: Always Steps to Reproduce: 1.Unpack stage3 and portage and boot system 2. emerge sync 3. emerge -u world 4. when an ebuild fails and points to lzma, reemerge lzma-utils and continue 5. when another package fails and points to gcc, reemerge gcc and continue 6. when glibc emerge fails, file bug report Actual Results: Install step of glibc fails with segfault Expected Results: Instalation should finish correctly
Please post emerge --info
And attach the build.log file of the failed emerge to this bug as well. Reopen this bug when you provide the requested information.
Created attachment 187033 [details] build log for segfault of emerge glibc file is bzip2 compressed
emerge --info: Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8-aktsin i686) ================================================================= System uname: Linux-2.6.23-gentoo-r8-aktsin-i686-Intel-R-_Xeon-TM-_CPU_2.80GHz-with-glibc2.0 Timestamp of tree: Wed, 01 Apr 2009 15:30:14 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r8 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/ud ev/rules.d" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans use rfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="es es_MX" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d acl alsa berkdb bitmap-fonts bzip2 cli cracklib crypt cups dri fortran gdbm gimp gpm gtk i conv isdnlog java jpeg latex lyx midi mudflap ncurses nls nptl nptlonly nvidia opengl openmp pam pcre p erl png pppd python readline reflection session spell spl ssl sysfs tcpd tiff truetype truetype-fonts t ype1-fonts unicode vim-syntax vim-with-x x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 ds hare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi nul l plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon a uthn_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 filte r 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" KERN EL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS= "es es_MX" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_C OMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
[quote] Steps to Reproduce: 1.Unpack stage3 and portage and boot system 2. emerge sync 3. emerge -u world 4. when an ebuild fails and points to lzma, reemerge lzma-utils and continue 5. when another package fails and points to gcc, reemerge gcc and continue 6. when glibc emerge fails, file bug report [/quote] Where did you get the stage3 and how old is it? How did you install 2.6.23-gentoo-r8-aktsin i686? Are you updating this box or did something break before?
> > Where did you get the stage3 and how old is it? Stage3 is http://mirror.mcs.anl.gov/pub/gentoo/releases/x86/2008.0/stages/stage3-x86-2008.0.tar.bz2 from Argonne National Laboratory mirror, (30-Jun-2008 10:11 112M). Since I have set CHOST="i686-pc-linux-gnu" I unpacked the other tarball http://mirror.mcs.anl.gov/pub/gentoo/releases/x86/2008.0/stages/stage3-i686-2008.0.tar.bz2 to a new partition, mounted /dev and /proc and did a chroot, but as soon as I try "env-update", I get a segfault: sh: line 1: 23614 Segmentation fault /sbin/ldconfig -r '/' So I stuck with the x86 (apparently a i486). In this one, lzma segfaults but that is easily fixed with a reemerge. Then some other ebuild requires /bin/i686-pc-linux-gnu-gcc, but since the x86 contains /bin/i486-pc-linux-gnu-gcc. This is easily fixed by reemerging gcc. > How did you install 2.6.23-gentoo-r8-aktsin i686? > Are you updating this box or did something break before? This is a redhat box which is moving to bigger and better stuff. I created a partition and unpacked stage3 and portage tarballs. I could not do a chroot because the RH kernel was too old, so I compiled the kernel with the redhat system. This allowed me to boot into gentoo, where I finished installing the kernel modules. Then I emerged X and gvim (here's where the lzma issue came up). Then I did an ``emerge -u world'', and everything updates OK except for glibc. Since the emerge segfaults when ``make'' is installing a symlink, I figured ``make'' must have the same problem lzma showed. I reemerged and tried glibc again with same results. Apparently some other program which is being called by ``make'' to create the symbolic link must be rebuilt. I tried binutils but no go. Any clues to what else should be rebuilt before emerging glibc?
Try installing the latest stable kernel and boot into it then try again.
Yep. Installing kernel 2.6.27 fixed the problem. I suspect the problem with the old kernel was that it was built on a RH 2.4 kernel system. Probably with a very old gcc. Thanx.