I used to have a NPTL glibc on this sparc system, but now (after upgrading linux26-headers) I wanted to recompile glibc. It fails with the following error: [Mon Jan 17 10:53:34 root@blackbox ~]# emerge -Dav glibc These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-libs/glibc-2.3.3.20040420-r2 -build -debug -erandom -hardened +nls +nptl (-pic) 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] y >>> emerge (1 of 1) sys-libs/glibc-2.3.3.20040420-r2 to / >>> md5 src_uri ;-) glibc-2.3.2.tar.bz2 >>> md5 src_uri ;-) glibc-linuxthreads-2.3.2.tar.bz2 >>> md5 src_uri ;-) glibc-2.3.3-branch-update-20040420.patch.bz2 >>> Unpacking source... nptl * Checking for sufficient version kernel headers ... yes * Checking kernel headers for broken sysctl.h ... no nptl * Checking gcc for __thread support ... no * Could not find a gcc that supports the __thread directive! * please update to gcc-3.2.2-r1 or later, and try again. !!! ERROR: sys-libs/glibc-2.3.3.20040420-r2 failed. !!! Function glibc_setup, Line 230, Exitcode 0 !!! No __thread support in gcc! !!! If you need support, post the topmost build error, NOT this status message. is this nptl-related? and if the answer is yes, is nptl working on sparc? should I revert to non-nptl and (possibly) linux 2.4 headers? Thank you. Reproducible: Always Steps to Reproduce: 1.emerge glibc 2. 3. Actual Results: Error messages (see above) Expected Results: Build without problems. [Mon Jan 17 10:54:09 root@blackbox ~]# emerge info Portage 2.0.51-r3 (default-linux/sparc/sparc64/2004.3/26headers, gcc-3.3.5, glibc-2.3.3.20040420-r2, 2.6.7 sparc64) ================================================================= System uname: 2.6.7 sparc64 sun4u Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r2 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="sparc" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=ultrasparc" CHOST="sparc-unknown-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=ultrasparc" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ http://gentoo.mirror.solnet.ch http://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="arts avi berkdb bitmap-fonts crypt cups encode esd f77 fbcon font-server foomaticdb fortran gcc64 gdbm gif gtk2 imlib ipv6 jpeg libwww mad mikmod motif mpeg ncurses nls nptl nptlonly oggvorbis opengl oss pam pdflib perl png python readline sdl spell ssl truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Reposted by error, sorry.