Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369359 - sys-libs/glibc-2.12.2 - work/build-default-i686-pc-linux-gnu-nptl/sunrpc/rpcgen: C preprocessor failed with signal 11
Summary: sys-libs/glibc-2.12.2 - work/build-default-i686-pc-linux-gnu-nptl/sunrpc/rpcg...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 369807 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-30 16:13 UTC by lou
Modified: 2012-08-14 16:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
glibc-2.12.2-build.log (build.log.tar.gz,249.05 KB, application/octet-stream)
2011-06-07 17:05 UTC, lou
Details
build.log (build.log.gz,248.95 KB, application/octet-stream)
2011-06-09 12:30 UTC, Thomas Seifert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lou 2011-05-30 16:13:13 UTC
Unable to upgrade to glibc-2.12.2 on several boxes from glibc-2.11.3. When building glibc, it fails with the following:

/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.T
/var/tmp/portage/sys-libs/glibc-2.12.2/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/rpcgen: C preprocessor failed with signal 11
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.12.2/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/xnlm_prot.stmp] Error 1
/var/tmp/portage/sys-libs/glibc-2.12.2/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/rpcgen: C preprocessor failed with signal 11
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.12.2/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.stmp] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.12.2/work/glibc-2.12.2/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.12.2/work/glibc-2.12.2'
make: *** [all] Error 2
emake failed
 * ERROR: sys-libs/glibc-2.12.2 failed (compile phase):
 *   make for default failed
 *
 * Call stack:
 *           ebuild.sh, line   56:  Called src_compile
 *         environment, line 3663:  Called eblit-run 'src_compile'
 *         environment, line 1075:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  212:  Called toolchain-glibc_src_compile
 *   src_compile.eblit, line  124:  Called die
 * The specific snippet of code:
 *              emake || die "make for ${ABI} failed"
 *
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.12.2',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.12.2'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.12.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.12.2/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.12.2/work/glibc-2.12.2'

As mentioned it fails on multiple boxes. I have some boxes that this builds fine on (basically same hardware / server configurations). Unable to find the appropriate difference between the two to address the problem directly.

Reproducible: Always

Steps to Reproduce:
1.emerge -pv glibc
2.wait for compile failure
3.
Actual Results:  
/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.T
/var/tmp/portage/sys-libs/glibc-2.12.2/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/rpcgen: C preprocessor failed with signal 11
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.12.2/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/xnlm_prot.stmp] Error 1
/var/tmp/portage/sys-libs/glibc-2.12.2/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/rpcgen: C preprocessor failed with signal 11
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.12.2/work/build-default-i686-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.stmp] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.12.2/work/glibc-2.12.2/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.12.2/work/glibc-2.12.2'
make: *** [all] Error 2
emake failed
 * ERROR: sys-libs/glibc-2.12.2 failed (compile phase):
 *   make for default failed
 *
 * Call stack:
 *           ebuild.sh, line   56:  Called src_compile
 *         environment, line 3663:  Called eblit-run 'src_compile'
 *         environment, line 1075:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  212:  Called toolchain-glibc_src_compile
 *   src_compile.eblit, line  124:  Called die
 * The specific snippet of code:
 *              emake || die "make for ${ABI} failed"
 *
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.12.2',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.12.2'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.12.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.12.2/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.12.2/work/glibc-2.12.2'

Expected Results:  
Compiled glibc

USE flags: 
[ebuild     U ] sys-libs/glibc-2.12.2 [2.11.3] USE="hardened nls -debug -gd -glibc-omitfp (-multilib) -profile (-selinux) -vanilla" 0 kB

emerge --info:
Portage 2.1.9.42 (hardened/linux/x86, gcc-4.3.4, libc-0-r0, 2.6.37-hardened-r7 i686)
=================================================================
System uname: Linux-2.6.37-hardened-r7-i686-Intel-R-_Xeon-R-_CPU_X5570_@_2.93GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 30 May 2011 07:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.6-r2, 2.7.1-r1, 3.1.3-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13::<unknown repository>, 2.65-r1
sys-devel/automake:  1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r2::<unknown repository>, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2::<unknown repository>, 4.1.2::<unknown repository>, 4.3.4, 4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl acpi acpi4linux apache2 berkdb bzip2 cli cracklib crypt cxx dri gdbm hardened iconv modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline session ssl sysfs tcpd urandom 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 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 lou 2011-05-31 03:35:38 UTC
When compilation fails, this appears in the logs:

May 30 12:01:51 comp kernel: ld-linux.so.2[27233] general protection ip:40143a4f sp:bff4a75c error:0 in libc.so[4003a000+150000]
May 30 12:01:51 comp kernel: ld-linux.so.2[27236] general protection ip:40143a4f sp:bfada76c error:0 in libc.so[4003a000+150000]
May 30 12:01:51 comp kernel: ld-linux.so.2[27237] general protection ip:40143cad sp:bfc62758 error:0 in libc.so[4003a000+150000]
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-06 00:09:54 UTC
Please attach the entire build log(s).
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-06-06 00:33:54 UTC
*** Bug 369807 has been marked as a duplicate of this bug. ***
Comment 4 lou 2011-06-07 17:05:25 UTC
Created attachment 276161 [details]
glibc-2.12.2-build.log

Here is /var/tmp/portage/sys-libs/glibc-2.12.2/temp/build.log
Comment 5 Thomas Seifert 2011-06-09 12:30:55 UTC
Created attachment 276369 [details]
build.log

Same problem here, attached is my build.log.
---
# emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.3.4, libc-0-r0, 2.6.36-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r8-x86_64-Intel-R-_Xeon-R-_CPU_X5570_@_2.93GHz-with-gentoo-1.12.14
Timestamp of tree: Sun, 05 Jun 2011 05:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://gentoo.mneisen.org/ http://mirror.netcologne.de/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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/zugaina /var/lib/layman/scarabeus /var/lib/layman/mysql /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acl acpi amd64 berkdb bzip2 cli cracklib crypt cups cxx dbus dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session sse sse2 ssl ssse3 sysfs tcpd unicode 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 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NGINX_MODULES_HTTP="proxy gzip charset fastcgi auth_basic rewrite access gzip_static secure_link stub_status" PHP_TARGETS="php5-2 php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

---
Comment 6 lou 2011-06-09 17:00:22 UTC
(In reply to comment #5)
> Created attachment 276369 [details]
> build.log
> 
> Same problem here, attached is my build.log.

I noticed your kernel is x86_64. I think for your problem, you need to enable IA32 emulation in your kernel. Here are others with similar kernel and resolution:
http://forums.gentoo.org/viewtopic-t-879133-highlight-sunrpc.html
Comment 7 SpanKY gentoo-dev 2011-06-11 22:58:43 UTC
Comment on attachment 276369 [details]
build.log

you're using USE=hardened but not a hardened profile.  dont do that.
Comment 8 SpanKY gentoo-dev 2011-06-11 23:02:24 UTC
Iou: try these things:
 - FEATURES='-sandbox -usersandbox' emerge glibc
 - ccache -C; emerge glibc
 - CPPFLAGS=-U_FORTIFY_SOURCE emerge glibc
 - upgrade gcc to latest stable, and then update glibc
Comment 9 Benjamin Börngen-Schmidt 2011-06-12 12:47:35 UTC
Hi there,

even after I reassured that I had IA32 enabled in my kernel I was not able to build glibc. Error was always the one I posted on the duplicate bug https://bugs.gentoo.org/show_bug.cgi?id=369807.

Using FEATURES='-sandbox -usersandbox' emerge glibc as SpanKY suggested did the trick, now glibc has compiled fine. Just wanted to let you guys know.
Comment 10 lou 2011-06-12 15:13:10 UTC
(In reply to comment #8)
> Iou: try these things:
>  - FEATURES='-sandbox -usersandbox' emerge glibc
>  - ccache -C; emerge glibc
>  - CPPFLAGS=-U_FORTIFY_SOURCE emerge glibc
>  - upgrade gcc to latest stable, and then update glibc


Thanks for sending that. FEATURES='-sandbox -usersandbox' did help. I'm getting past the compile stage, but unfortunately I'm getting a seg fault on the preinst phase now...

>>> Installing (1 of 1) sys-libs/glibc-2.12.2
 * checking 1359 files for package collisions
1000 files checked ...
/var/tmp/portage/sys-libs/glibc-2.12.2/image/lib /
/usr/portage/sys-libs/glibc/files/eblits/pkg_preinst.eblit: line 72:  4390 Segmentation fault      ./ld-*.so --library-path . ${x} > /dev/null
 * ERROR: sys-libs/glibc-2.12.2 failed (preinst phase):
 *   simple run test (/bin/date) failed
 *
 * Call stack:
 *           ebuild.sh, line   56:  Called pkg_preinst
 *         environment, line 3425:  Called eblit-run 'pkg_preinst'
 *         environment, line 1144:  Called eblit-glibc-pkg_preinst
 *   pkg_preinst.eblit, line   87:  Called die
 * The specific snippet of code:
 *              ./ld-*.so --library-path . ${x} > /dev/null \
 *                      || die "simple run test (${x}) failed"
 *
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.12.2',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.12.2'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.12.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.12.2/temp/environment'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.12.2/work/glibc-2.12.2'
!!! FAILED preinst: 1

>  - ccache -C; emerge glibc
I don't have ccache installed on that box, so I doubt that will help

>  - CPPFLAGS=-U_FORTIFY_SOURCE emerge glibc
I'm actually trying this now

>  - upgrade gcc to latest stable, and then update glibc
I do have the latest version of gcc already installed:
[ebuild   R   ] sys-devel/gcc-4.4.5  USE="hardened mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -graphite -gtk (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 0 kB

Thanks!
lou
Comment 11 SpanKY gentoo-dev 2011-06-17 05:42:15 UTC
that just means your build is wrong.  try upgrading to latest stable gcc first as it might have necessary hardened fixes ...
Comment 12 Thomas Seifert 2011-07-04 13:06:12 UTC
First sorry for the late reply. Somehow I didn't get notifications anymore.

(In reply to comment #6)
> I noticed your kernel is x86_64. I think for your problem, you need to enable
> IA32 emulation in your kernel. Here are others with similar kernel and
> resolution:
> http://forums.gentoo.org/viewtopic-t-879133-highlight-sunrpc.html

Well, I got that already enabled.
-> CONFIG_IA32_EMULATION=y


(In reply to comment #7)

> you're using USE=hardened but not a hardened profile.  dont do that.

Uhm, no. If I'm not totally mistaken I'm not using USE=hardened. I even have -hardened in my make.conf useflags which also shows for glibc:
[ebuild     U  ] sys-libs/glibc-2.12.2 [2.11.3] USE="(multilib) nls -debug -gd -glibc-omitfp (-hardened) -profile (-selinux) -vanilla" 0 kB

-----

But from your comments I checked my gcc-config and, whoa, the switch from 4.3.4 to 4.4.5 got the compile to work.

Thanks!
Comment 13 Xake 2011-07-04 13:16:52 UTC
(In reply to comment #12)
> (In reply to comment #7)
> 
> > you're using USE=hardened but not a hardened profile.  dont do that.
> 
> Uhm, no. If I'm not totally mistaken I'm not using USE=hardened. I even have
> -hardened in my make.conf useflags which also shows for glibc:
> [ebuild     U  ] sys-libs/glibc-2.12.2 [2.11.3] USE="(multilib) nls -debug -gd
> -glibc-omitfp (-hardened) -profile (-selinux) -vanilla" 0 kB
> 

Well, according to your "emerge --info" in your first post, you can find "hardened" under "USE", and I think this is what vapier commented upon, the output you show only shows that glibc is not compiled with hardened due to hardend USE-flag being masked. That said you should still removed "hardened" from your /etc/make.conf

> -----
> 
> But from your comments I checked my gcc-config and, whoa, the switch from 4.3.4
> to 4.4.5 got the compile to work.
> 
> Thanks!

Good to hear this.
Comment 14 Mina Naguib 2011-07-22 19:15:57 UTC
I ran into the same issue.  Mine was not the case of IA32 kernel option, HARDENED profile or LDFLAGS=-s as mentioned by others.

For me, it was fixed by first upgrading gcc to 4.4.5, and libtool to 2.2.10, THEN upgrading glibc.
Comment 15 Piotr Karbowski (RETIRED) gentoo-dev 2011-08-31 15:20:20 UTC
I have the sime error, with FEATURES=-sandbox I am able compile it however it fail hard on install phase:

>>> Installing (1 of 1) sys-libs/glibc-2.12.2
/root/tmp/portage/sys-libs/glibc-2.12.2/image/lib /
/usr/portage/sys-libs/glibc/files/eblits/pkg_preinst.eblit: line 72: 32472 Segmentation fault      ./ld-*.so --library-path . ${x} > /dev/null
 * ERROR: sys-libs/glibc-2.12.2 failed (preinst phase):
 *   simple run test (/bin/date) failed

Any idea whats wrong?
Comment 16 SpanKY gentoo-dev 2012-08-14 16:19:47 UTC
glibc-2.15 is stable now.  you should give that a try.