rm -f /var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/tls.makeT /var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/tls.make.dT (echo '# Generated from tls.make.c by Makerules.'; \ gcc -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -march=athlon64 -pipe -Wstrict-prototypes -mpreferred-stack-boundary=2 -Iinclude -I/var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Iports/sysdeps/unix/sysv/linux -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Iports/sysdeps/unix/sysv/i386 -Isysdeps/unix/sysv/i386 -Iports/sysdeps/unix/sysv -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Iports/sysdeps/unix -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Iports -Inptl -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include -isystem /usr/include -D_LIBC_REENTRANT -include include/libc-symbols.h -E -DASSEMBLER tls.make.c \ -MD -MP -MT '$(common-objpfx)tls.make' -MF /var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/tls.make.dT \ | sed -n '/@@@/{s/@@@[ ]*\(.*\)@@@/\1/;s/[ ]*$//p;}'; \ echo 'common-generated += tls.make'; \ sed -e 's@ /var/tmp/portage/glibc-2\.4/work/build-x86-x86_64-pc-linux-gnu-nptl/@ $(common-objpfx)@g' -e 's@^/var/tmp/portage/glibc-2\.4/work/build-x86-x86_64-pc-linux-gnu-nptl/@$(common-objpfx)@g' -e 's@ *\([^ \/$][^ \]*\)@ $(..)\1@g' -e 's@^\([^ \/$][^ \]*\)@$(..)\1@g' /var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/tls.make.dT; \ rm -f /var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/tls.make.dT) > /var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/tls.makeT tls.make.c:0: error: -mpreferred-stack-boundary=2 is not between 4 and 12 sed: can't read /var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/tls.make.dT: No such file or directory mv -f /var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/tls.makeT /var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/tls.make sed '/^[ ]*#/d;s/^[ ]*%/#/' csu/Versions iconv/Versions locale/Versions assert/Versions ctype/Versions intl/Versions catgets/Versions math/Versions setjmp/Versions signal/Versions stdlib/Versions stdio-common/Versions libio/Versions dlfcn/Versions malloc/Versions string/Versions wcsmbs/Versions time/Versions dirent/Versions grp/Versions pwd/Versions posix/Versions io/Versions termios/Versions resource/Versions misc/Versions socket/Versions sysvipc/Versions gmon/Versions wctype/Versions shadow/Versions argp/Versions crypt/Versions nptl/Versions resolv/Versions nss/Versions rt/Versions debug/Versions libidn/Versions nptl_db/Versions inet/Versions hesiod/Versions sunrpc/Versions nis/Versions streams/Versions login/Versions elf/Versions sysdeps/i386/elf/Versions sysdeps/unix/sysv/linux/i386/Versions nptl/sysdeps/unix/sysv/linux/Versions sysdeps/pthread/Versions sysdeps/unix/sysv/linux/Versions sysdeps/unix/sysv/Versions sysdeps/i386/i486/Versions sysdeps/i386/fpu/Versions sysdeps/i386/Versions sysdeps/wordsize-32/Versions \ | gcc -E -undef -Iinclude -I/var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Iports/sysdeps/unix/sysv/linux -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Iports/sysdeps/unix/sysv/i386 -Isysdeps/unix/sysv/i386 -Iports/sysdeps/unix/sysv -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Iports/sysdeps/unix -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Iports -Inptl -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include -isystem /usr/include -D_LIBC_REENTRANT -include include/libc-symbols.h \ -DASSEMBLER -x assembler-with-cpp - \ > /var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/Versions.v.iT In file included from nptl/sysdeps/i386/i686/tls.h:34, from include/tls.h:6, from <stdin>:1: nptl/sysdeps/i386/i686/../tls.h:65:3: #error "TLS support is required." make[1]: *** [/var/tmp/portage/glibc-2.4/work/build-x86-x86_64-pc-linux-gnu-nptl/Versions.v.i] Error 1 make[1]: Leaving directory `/var/tmp/portage/glibc-2.4/work/glibc-2.4' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.4 failed. Call stack: ebuild.sh, line 1933: Called dyn_compile ebuild.sh, line 971: Called src_compile glibc-2.4.ebuild, line 1248: Called src_compile glibc-2.4.ebuild, line 1259: Called toolchain-glibc_src_compile Gentoo Base System version 1.12.0_pre16 Portage 2.1_pre5-r4 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r7-ck5 x86_64) ================================================================= System uname: 2.6.15-gentoo-r7-ck5 x86_64 AMD Athlon(tm) 64 Processor 4000+ distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r9, 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /us r/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var /qmail/control /var/run/dspam /var/service" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg candy ccache distlocks moo sandbox sfperms strict" GENTOO_MIRRORS="http://www.ibiblio.org/gentoo/" LC_ALL="de_DE.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" USE="nptl nptlonly* pic -build -glibc-omitfp* -hardened -nls -profile -userlocales"
post your real `emerge info` the real error here is: tls.make.c:0: error: -mpreferred-stack-boundary=2 is not between 4 and 12 and this is prob due to broken multilib setup on your machine
1. it was the "emerge --info" output 2. downgrading gcc-config to 1.3.13-r1 solved the TLS problem.
what do you mean "downgrading" ? where you using gcc-config-2 ?
In case anyone else reads this bugreport: I had the same problem trying to emerge glibc-2.4-r1 (with 2.4 installed). It turned out no gcc-config profile was enabled: claw ~ # gcc-config -l /usr/bin/gcc-config: line 658: /etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.5: No such file or directory * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.5 [1] x86_64-pc-linux-gnu-3.4.6 [2] x86_64-pc-linux-gnu-3.4.6-hardened [3] x86_64-pc-linux-gnu-3.4.6-hardenednopie [4] x86_64-pc-linux-gnu-3.4.6-hardenednopiessp [5] x86_64-pc-linux-gnu-3.4.6-hardenednossp I don't know why it didn't switch to the 3.4.6 profile automatically when gcc 3.4.5 was unmerged. After running gcc-config x86_64-pc-linux-gnu-3.4.6, glibc emerged successfully. (I never used gcc-config 2 to my knowledge).