In src_test(): x86_64-pc-linux-gnu-gcc -m32 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -shared -static-libgcc -Wl,-dynamic-linker=/lib32/ld-linux.so.2 -Wl,-z,defs -B/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/ -Wl,-z,combreloc -Wl,-z,relro -L/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl -L/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/math -L/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/elf -L/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn -L/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/nss -L/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/nis -L/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/rt -L/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/resolv -L/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/crypt -L/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl -Wl,-rpath-link=/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl:/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/math:/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/elf:/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn:/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/nss:/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/nis:/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/rt:/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/resolv:/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/crypt:/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl -o /tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn/bug-atexit3-lib.so -T /tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/shlib.lds /tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/csu/abi-note.o /tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn/bug-atexit3-lib.os -lstdc++ -lgcc_eh -Wl,--start-group /tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/libc.so /tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_nonshared.a -Wl,--as-needed /tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld.so -Wl,--no-as-needed -Wl,--end-group /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn/bug-atexit3-lib.os' is incompatible with i386 output /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: /tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn/bug-atexit3-lib.os: file class ELFCLASS64 incompatible with ELFCLASS32 /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: File in wrong format collect2: error: ld returned 1 exit status ../Makerules:660: recipe for target '/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn/bug-atexit3-lib.so' failed make[2]: *** [/tmp/portage/sys-libs/glibc-2.20/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn/bug-atexit3-lib.so] Error 1
Created attachment 390676 [details] sys-libs:glibc-2.20:20141130-235337.log.xz
eroen@occam ~ $ emerge --info '=sys-libs/glibc-2.20::gentoo'Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.16.3.e0-occam0+ x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.16.3.e0-occam0+-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2 KiB Mem: 7944376 total, 1085612 free KiB Swap: 16777212 total, 16016000 free Timestamp of tree: Sun, 30 Nov 2014 18:00:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 ccache version 3.1.10 [disabled] app-shells/bash: 4.3_p30-r1 dev-java/java-config: 2.2.0 dev-lang/perl: 5.20.1 dev-lang/python: 2.7.8, 3.2.5-r6, 3.3.5-r1, 3.4.2 dev-util/ccache: 3.1.10-r1 dev-util/cmake: 3.0.2 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.6, 1.12.6, 1.13.4, 1.14.1 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.6.4, 4.7.4, 4.8.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.3-r2 sys-devel/make: 4.1-r1 sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo enlightenment flora gamerlay glc gentoo-haskell hasufell java laurentb roslin science stuff toolchain v-fox eroen ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7-avx -O3 -pipe -flto -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=corei7-avx -O3 -pipe -flto -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity" DISTDIR="/var/distfiles" EMERGE_DEFAULT_OPTS="--jobs=2 --autounmask --with-bdeps=y --quiet-build --nospinner --verbose-conflicts" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j4 -l5" PKGDIR="/var/packages" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-9" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog* --exclude /metadata/cache/ --stats --delay-updates" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/enlightenment /var/lib/layman/flora /var/lib/layman/gamerlay /var/lib/layman/glc /var/lib/layman/haskell /var/lib/layman/hasufell /var/lib/layman/java /var/lib/layman/laurentb /var/lib/layman/roslin /var/lib/layman/science /var/lib/layman/stuff /var/lib/layman/toolchain /var/lib/layman/v-fox /usr/local/portage" USE="X a52 aac acl acpi alsa amd64 apng audio audiofile avresample avx bash-completion bdf berkdb bluray bzip2 cairo caps cb cdda cdparanoia cdr cjk cli corefonts cracklib crypt cups curl cxx ddate declarative detex device-mapper dga dia djvu dmapi dri dts dvd dvdr dvi2tty dvipdfm ebook egl emboss encode exif fam ffmpeg fftw firefox fits flac fontconfig fortran g3dvl gallium gbm gcrypt gdbm gif gimp git glamor glib glibc-omitfp gmp gnuplot gnutls gold gpm graphics graphviz gs gstreamer gtk gtk3 highlight hscolour iconv icu id3tag idn imagemagick imlib inotify iproute2 ipv6 jbig jpeg jpeg2k jpg json kde kde4 kpathsea latex lcms libffi libssh2 libv4l luatex lvm lvm2 lzma lzo mad man metric mikmod mkv mms mmx mng modules mp3 mp4 mpeg mpg123 multilib multimedia musepack ncurses netlink nptl nut ocr odbc offensive ogg opengl openmp openvg optimization optimized-qmake opus pam pango pch pcre pdf pgf phonon png postscript ppds private-headers pstricks pth publishers python3 qt3support qt4 raw readline samba sbsms scanner science sdl session smp sna sndfile speex spell sqlite sse sse2 sse3 sse4 sse41 sse4_1 sse4_2 ssh ssl ssse3 svg t1lib tcpd tesseract theora threads tiff tls truetype udev unicode usb v4l v4l2 vaapi video vorbis vpx webp wmf wxwidgets x264 xanim xattr xcb xcomposite xetex xfs xft xinerama xml xmlpatterns xorg xosd xpm xrandr xv xvid xvmc xz zlib zsh-completion" ABI_X86="32 64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" DRACUT_MODULES="btrfs caps cifs crypt crypt-gpg dash iscsi lvm nfs ssh-client 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 ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="mouse keyboard evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en gb us en_US en_GB eng jbo no nb nn no_NO nb_NO nn_NO nor" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="intel i965" 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" USE_PYTHON="2.7 3.3 3.4" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, SYNC eroen@occam ~ $ emerge -pqv '=sys-libs/glibc-2.20::gentoo' Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.16.3.e0-occam0+ x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.16.3.e0-occam0+-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2 KiB Mem: 7944376 total, 1085612 free KiB Swap: 16777212 total, 16016000 free Timestamp of tree: Sun, 30 Nov 2014 18:00:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 ccache version 3.1.10 [disabled] app-shells/bash: 4.3_p30-r1 dev-java/java-config: 2.2.0 dev-lang/perl: 5.20.1 dev-lang/python: 2.7.8, 3.2.5-r6, 3.3.5-r1, 3.4.2 dev-util/ccache: 3.1.10-r1 dev-util/cmake: 3.0.2 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.6, 1.12.6, 1.13.4, 1.14.1 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.6.4, 4.7.4, 4.8.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.3-r2 sys-devel/make: 4.1-r1 sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo enlightenment flora gamerlay glc gentoo-haskell hasufell java laurentb roslin science stuff toolchain v-fox eroen ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7-avx -O3 -pipe -flto -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=corei7-avx -O3 -pipe -flto -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity" DISTDIR="/var/distfiles" EMERGE_DEFAULT_OPTS="--jobs=2 --autounmask --with-bdeps=y --quiet-build --nospinner --verbose-conflicts" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j4 -l5" PKGDIR="/var/packages" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-9" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog* --exclude /metadata/cache/ --stats --delay-updates" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/enlightenment /var/lib/layman/flora /var/lib/layman/gamerlay /var/lib/layman/glc /var/lib/layman/haskell /var/lib/layman/hasufell /var/lib/layman/java /var/lib/layman/laurentb /var/lib/layman/roslin /var/lib/layman/science /var/lib/layman/stuff /var/lib/layman/toolchain /var/lib/layman/v-fox /usr/local/portage" USE="X a52 aac acl acpi alsa amd64 apng audio audiofile avresample avx bash-completion bdf berkdb bluray bzip2 cairo caps cb cdda cdparanoia cdr cjk cli corefonts cracklib crypt cups curl cxx ddate declarative detex device-mapper dga dia djvu dmapi dri dts dvd dvdr dvi2tty dvipdfm ebook egl emboss encode exif fam ffmpeg fftw firefox fits flac fontconfig fortran g3dvl gallium gbm gcrypt gdbm gif gimp git glamor glib glibc-omitfp gmp gnuplot gnutls gold gpm graphics graphviz gs gstreamer gtk gtk3 highlight hscolour iconv icu id3tag idn imagemagick imlib inotify iproute2 ipv6 jbig jpeg jpeg2k jpg json kde kde4 kpathsea latex lcms libffi libssh2 libv4l luatex lvm lvm2 lzma lzo mad man metric mikmod mkv mms mmx mng modules mp3 mp4 mpeg mpg123 multilib multimedia musepack ncurses netlink nptl nut ocr odbc offensive ogg opengl openmp openvg optimization optimized-qmake opus pam pango pch pcre pdf pgf phonon png postscript ppds private-headers pstricks pth publishers python3 qt3support qt4 raw readline samba sbsms scanner science sdl session smp sna sndfile speex spell sqlite sse sse2 sse3 sse4 sse41 sse4_1 sse4_2 ssh ssl ssse3 svg t1lib tcpd tesseract theora threads tiff tls truetype udev unicode usb v4l v4l2 vaapi video vorbis vpx webp wmf wxwidgets x264 xanim xattr xcb xcomposite xetex xfs xft xinerama xml xmlpatterns xorg xosd xpm xrandr xv xvid xvmc xz zlib zsh-completion" ABI_X86="32 64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" DRACUT_MODULES="btrfs caps cifs crypt crypt-gpg dash iscsi lvm nfs ssh-client 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 ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="mouse keyboard evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en gb us en_US en_GB eng jbo no nb nn no_NO nb_NO nn_NO nor" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="intel i965" 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" USE_PYTHON="2.7 3.3 3.4" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, SYNC eroen@occam ~ $ emerge -pqv '=sys-libs/glibc-2.20::gentoo' [ebuild U ] sys-libs/glibc-2.20 [2.19-r1] USE="(multilib) -debug -gd (-hardened) -nscd -profile (-selinux) -suid -systemtap -vanilla" !!! The following installed packages are masked: - dev-db/mysql-5.5.37-r1::gentoo (masked by: package.mask) /usr/portage/profiles/package.mask: # Sergey Popov <pinkbyte@gentoo.org> (04 Sep 2014) # Security mask, wrt bugs #488212, #498164, #500260, # #507802 and #518718 For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook.
does it work if you use simple CFLAGS like -O3 ?