..been down- and upgrading my toolchain but couldn't compile glibc - it would always fail with isoc99_vscanf.c: In function ‘__isoc99_vscanf’: isoc99_vscanf.c:29: error: ‘_IO_acquire_lock_needs_exceptions_enabled’ undeclared (first use in this function) .. here's my compile history for glibc/binutils/gcc: Sat Sep 12 16:24:55 2009 >>> sys-devel/binutils-2.19.1-r1 Sat Sep 12 17:43:42 2009 >>> sys-libs/glibc-2.10.1 Sun Sep 13 04:46:01 2009 >>> sys-devel/gcc-4.4.1 Fri Sep 18 22:35:09 2009 >>> sys-devel/binutils-2.19.1-r1 Fri Sep 18 23:58:51 2009 >>> sys-libs/glibc-2.10.1 Mon Oct 19 05:35:43 2009 >>> sys-devel/gcc-4.4.2 Wed Oct 21 04:38:54 2009 >>> sys-devel/gcc-config-1.4.1 Wed Oct 21 05:08:58 2009 >>> sys-devel/binutils-config-1.9-r4 Wed Oct 21 05:50:55 2009 >>> sys-devel/binutils-2.19.1-r1 Wed Oct 21 09:05:35 2009 >>> sys-devel/gcc-4.4.2 Wed Oct 21 10:32:04 2009 >>> sys-libs/glibc-2.10.1 Tue Oct 27 12:29:17 2009 >>> sys-devel/gcc-4.4.2 Sun Nov 1 19:01:03 2009 >>> sys-devel/binutils-2.20.51.0.2 Sun Nov 1 20:01:24 2009 >>> sys-devel/gcc-4.4.2 Thu Nov 5 20:07:24 2009 >>> sys-devel/gcc-4.4.2 Sun Nov 15 21:58:17 2009 >>> sys-devel/binutils-2.20.51.0.2 Mon Nov 16 21:57:07 2009 >>> sys-devel/binutils-2.20.51.0.2 Tue Nov 17 00:13:50 2009 >>> sys-devel/gcc-4.4.2 Sat Nov 21 10:27:28 2009 >>> sys-devel/binutils-2.20.51.0.3 Mon Nov 23 01:21:41 2009 >>> sys-devel/binutils-2.20 Mon Nov 23 02:12:42 2009 >>> sys-devel/gcc-4.4.2 Mon Nov 23 02:57:14 2009 >>> sys-devel/binutils-2.20.51.0.3 Mon Nov 23 03:30:53 2009 >>> sys-devel/binutils-2.19.1-r1 Mon Nov 23 05:44:51 2009 >>> sys-devel/gcc-4.3.4 Mon Nov 23 12:05:07 2009 >>> sys-libs/glibc-9999 Mon Nov 23 19:38:40 2009 >>> sys-devel/binutils-2.20.51.0.3 So glibc for what ever reason has last been built end of october with sys-devel/gcc-4.4.2 and sys-devel/binutils-2.19.1-r1 - even though i'm pretty sure i had march=amdfam10 set back then. Now removing that from make.conf allowed me to compile the latest glibc which failed before (just as 2.10*, 2.11*) and still can't be build with this march. Hope is high the random segmentation faults (*** glibc detected *** [...]: invalid pointer) are gone now, to be sure i have globally activated the workaround by creating a /etc/env.d/00glibcfix which sets MALLOC_CHECK_=1 . The glibc git ebuild aswell as a log of a failing build is attached. Reproducible: Always Steps to Reproduce: 1.set march=amdfam10 2.try to compile glibc 3.watch it fail # emerge --info Portage 2.2_rc51 (default/linux/amd64/10.0, gcc-4.4.2, glibc-9999-r0, 2.6.31-gentoo-r6 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Phenom-tm-_II_X4_920_Processor-with-gentoo-2.0.1 Timestamp of tree: Tue, 24 Nov 2009 07:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.4.6, 2.6.4, 3.1.1-r1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.8.0 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r2 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.20.51.0.3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=amdfam10 -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests buildsyspkg ccache distlocks fixpackages installsources news preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/linux/gentoo" LANG="en_GB.utf8" LDFLAGS="-ldl -Wl,-O1" 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="/usr/local/portage/layman/kde-testing /usr/local/portage/layman/enlightenment /usr/local/portage/layman/sunrise /usr/local/portage/layman/sabayon /usr/local/portage/layman/voip /usr/local/portage/layman/science /usr/local/portage/layman/Spring /usr/local/portage/layman/roslin /usr/local/portage/layman/gechi /usr/local/portage/layman/qting-edge /usr/local/portage/custom" SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage" USE="32bit 3dnow 3dnowext 3ds 64bit 7zip X a52 aac aalib acl additions addressbook akonadi alsa amd64 amr amrnb amrr amrwb anonres apache2 archive ass bash-completion bittorrent bluetooth bzip2 cairo captury cdda cddax cddb cdio cdparanoia cg charconv chm clamav clamdtop cli clock clucene cmake colors community connectionstatus consolekit corefonts cracklib crypt css cuda cups dbus debugger designer designer-plugin desktopglobe device-mapper devil dirac disk-partition djconsole djvu downloadorder dri dts dv dvd dvdnav ebook editor eigen embedded encode exif extras faac faad fastbuild fasttrack fat fbcon fbcondecor fbsplash festival ffmpeg fftw flac fluidsynth fontconfig fortran fuse gcj gd gdbm gecko geoip geolocation gimp git glitz gnokii gnutella gnutls gopher gpac gpm gps graphviz grub gs gsm gstreamer h323 hal hbci hddtemp hdri help-screen hifieq history icons iconv icotools icq id3 id3tag idn infowidget inkjar inotify ipc ipfilter ipv6 irc ithreads jabber java java6 jpeg jpeg2k kde kdrive kig-scripting kino kipi konqueror kontact kpathsea kqemu kross ktts kvm lame lastfm lastfmradio latex latex3 lensfun libass libcaca libmms libmpd libnotify libsamplerate libv4l libv4l2 libvisual lm_sensors logviewer lqr lzma mad matroska mbrola meanwhile melt metric midi mikmod mixer mjpeg mmap mmx mmxext mng modules moonlight mouse mp3 mp4 mpd mpeg mplayer msn mtp mudflap multilib multitarget multiuser music musicbrainz mysql mysqli ncurses network networkmanager nls nocd nptl nptlonly ntfs nvidia offensive ofx ogg ogm opencore-amr openexr opengl openmp openvpn optimization optimized-qmake oscar outputs pam parcheck parport pcre pdf perl phonon php pipes pixmaps plasma player plotutils pm-utils png podcast policykit poppler-data portmon postscript ppds pppd privacy projectm ps psf pstoedit python python3 qemu qt-copy qt-dbus qt-webkit qt3support qt4 query-browser quicktime rar raw rdesktop rdp readline recording redland reflection reiser4 reiserfs resolvconf rpm rss rtsp rubberband samba sametime scanfolder scanner schroedinger science sdl search search-screen semantic-desktop server session sftp shm shout sip skins skype smp sms snes sockets solver speech spell spl sql srt srtp sse sse2 sse3 sse4a ssh1 ssl startup-notification statistics stats stream subtitles subversion suhosin svg symlink sysfs system-libvncserver sysvipc taglib tcpd themes theora threads thumbnail tiff timidity translator truetype udev unicode upnp usb v4l v4l2 vcd vcdinfo vcdx vchroot vdpau vhook videos virtualbox vistafree visualization visualizer vnc vorbis wav webinterface webkit webpresence winetools winpopup wma wmf wv2 x264 xattr xcb xcf xcomposite xine xml xorg xorgmodule xosd xpfast xrandr xscreensaver xv xvid xvmc yahoo zeroconf zip 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 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 joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nv nouveau nvidia vesa v4l" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 211053 [details] build log
Created attachment 211054 [details] sys-libs/glibc-9999 git ebuild
btw just tested with mcpu=amdfam10 - fails aswell.
-march=barcelona (which is a synonym for amdfam10) works fine with glibc-2.10.1{,-r1} on my system. Did you try to reproduce the error with ccache being disabled?
-ccache doesn't help here.. obscure indeed is it..?
not sure why you think we would possibly care about build failures in current git tree. if the latest ebuilds _we put in the tree_ are failing, then post those logs. but we arent going to assist you in building latest git.
Ok i should have put the word 'including' before 'latest git' in the report title, but through careful reading you could have come to the conclusion that 2.10* and 2.11* are affected aswell. I just created the git ebuild to check if the issue has been fixed upstream, which it has not... attached it for possible inclusion in the tree - why not..
you mentioned failures in earlier versions but never stated what they were. you still need to post build logs of the relevant gcc versions -- i'm not going to look at live git versions. anyone using live/snapshot versions are fully expected to help in debugging any issues they might encounter.
Created attachment 211952 [details] sys-libs-glibc-2.10.1-r1-failed-build.log.bz2 should have posted this instead.
# clarifying bad bug title
your binutils/gcc appears to be screwed: checking for ld --no-whole-archive... no checking for gcc -fexceptions... no checking for __builtin_expect... no those should all be "yes". post the config.log from the build dir.
Created attachment 212420 [details] /var/tmp/portage/sys-libs/glibc-2.10.1-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/config.log
your toolchain is screwed. you'll have to figure out what exactly it's complaining about when it says: x86_64-pc-linux-gnu-gcc -O2 -fno-strict-aliasing -U_FORTIFY_SOURCE -ldl -Wl,-O1 -nostdlib -nostartfiles -fexceptions -o conftest conftest.c /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: failed to set dynamic section sizes: No such file or directory collect2: ld returned 1 exit status