glibc-2.15-r2 failed to compile on a Xen-domU (amd64) running on a hostsystem with Intel Core i7. Maybe something related to #402753, #424577? Reproducible: Always Steps to Reproduce: 1. emerge =sys-libs/glibc-2.15-r2 Portage 2.1.11.9 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.14.1-r3, 3.2.1-gentoo-r2-domU x86_64) ================================================================= System uname: Linux-3.2.1-gentoo-r2-domU-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.1 Timestamp of tree: Mon, 03 Sep 2012 00:15:01 +0000 app-shells/bash: 4.2_p37 dev-lang/python: 2.7.3-r2, 3.2.3 dev-util/pkgconfig: 0.27 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.6 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.4 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers) sys-libs/glibc: 2.14.1-r3 Repositories: gentoo fem-overlay ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -mtune=generic -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/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo-portage.fem-net.de/mirror/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/fem-overlay" SYNC="rsync://gentoo-portage.fem-net.de/gentoo-portage" USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre pppd readline session sse sse2 ssl tcpd threads unicode 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" 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, USE_PYTHON
Created attachment 322884 [details] build.log
During compile in dmesg: [8013168.555896] ld-linux-x86-64[26856] trap invalid opcode ip:2b993ba6ed45 sp:7ffffead9868 error:0 in libc.so[2b993b943000+1a1000] [8013168.600450] ld-linux-x86-64[26869] trap invalid opcode ip:2ac5904e3d45 sp:7fffc2f7eec8 error:0 in libc.so[2ac5903b8000+1a1000] [8013168.619496] ld-linux-x86-64[26873] trap invalid opcode ip:2b25dceacd45 sp:7fff402e75a8 error:0 in libc.so[2b25dcd81000+1a1000] [8013168.624924] ld-linux-x86-64[26875] trap invalid opcode ip:2b7f4280ed45 sp:7ffffe1db698 error:0 in libc.so[2b7f426e3000+1a1000] [8013168.648549] ld-linux-x86-64[26877] trap invalid opcode ip:2b00dacead45 sp:7fff2440afe8 error:0 in libc.so[2b00dabbf000+1a1000] [8013168.659302] ld-linux-x86-64[26878] trap invalid opcode ip:2b6fea300d45 sp:7fffb1050898 error:0 in libc.so[2b6fea1d5000+1a1000] [8013168.663380] ld-linux-x86-64[26879] trap invalid opcode ip:2acb9acaed45 sp:7fff533b2328 error:0 in libc.so[2acb9ab83000+1a1000] [8013168.666616] ld-linux-x86-64[26880] trap invalid opcode ip:2b70abb8bd45 sp:7fff4a88a588 error:0 in libc.so[2b70aba60000+1a1000]
Upgrading binutils to 2.22-r1 results in segfaults in as :( Log follows...
Created attachment 322888 [details] build.log with binutils-2.22-r1 [8014769.203096] as[16620]: segfault at ff10 ip 0000000000410878 sp 00007fff82b61270 error 4 in as[400000+51000]
sys-libs/glibc-2.16.0 builds fine... didn't test if it's working fine!
Looks like bug 336020 too.
(In reply to comment #6) > Looks like bug 336020 too. Rebuilding Toolchain like in 336020 tried before bugreport was filed. Didn't work!
Fedora fixes the problem, using AVX-Patches from glibc-2.16 and another patch. Using patch from https://bugzilla.redhat.com/show_bug.cgi?id=801650 and patches from glibc-git (attached version without patching Changelog/NEWS) seems to work. Test-VM builds glibc flawlessly (CFLAGS="-march=core2 -mtune=generic -O2 -pipe"), could be (re)booted without problems and "invalid opcode"-error messages are also gone in the virtual machine.
Created attachment 323490 [details, diff] glibc-2.15_avx1.patch
Created attachment 323492 [details, diff] glibc-2.15_avx2.patch
Created attachment 323494 [details, diff] glibc-2.15_avx3_fedora.patch
I did not notice any problems in the last 13 days on productive systems...
i added a bunch of fixes from upstream to glibc-2.15-r3 that should fix this
*** Bug 424577 has been marked as a duplicate of this bug. ***