emerge glibc fails after adding nptl and nptlonly to the global USE flags 2 tested machines (x86 platform), rsynced on 15 May 2005. systems were running already. both installed at stage3. after adding nptl and nptlonly to the global USE flags in /etc/make.conf the merge stops with errors: * Applying glibc-2.3.4-features-header-fix.patch ... [ ok ] * Applying glibc-2.3.4-fix-_dl_next_tls_modid-assert.patch ... [ ok ] >>> Source unpacked. >>> Test phase [not enabled]: sys-libs/glibc-2.3.4.20041102-r1 >>> Install glibc-2.3.4.20041102-r1 into /var/tmp/portage/glibc-2.3.4.20041102-r1/image/ category sys-libs /usr/lib/portage/bin/ebuild.sh: line 834: cd: /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i386-pc-linux-gnu-nptl: No such file or directory * Installing GLIBC with NPTL... Makeconfig:84: x86/config.make: No such file or directory Makerules:782: no file name for `include' configure.in > configure.new /bin/sh: line 1: configure.in: command not found make: *** [configure] Error 127 !!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed. !!! Function src_install, Line 838, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. after the failed attempt to build glibc, "ls /var/tmp/portage/glibc-2.3.4.20041102-r1/work/" shows only the directory: glibc-2.3.3 Reproducible: Always Steps to Reproduce: 1.add nptl and nptlonly to the USE flags in /etc/make.conf (on a running system) 2.emerge glibc 3. Actual Results: nothing. the rebuild of glibc is impossible Expected Results: building glibc with nptl and nptlonly support -=>> emerge --info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 Pentium II (Deschutes) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 9 2005, 20:00:41)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.9.5, 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium2 -pipe -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://mirror.etf.bg.ac.yu/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa avi bitmap-fonts cdr crypt curl fam gif gpm gtk gtk2 imagemagick ipv6 jpeg libg++ libwww mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam perl png quicktime readline sdl ssl svga tcpd tiff vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
I've got the same error: >>> Source unpacked. >>> Test phase [not enabled]: sys-libs/glibc-2.3.4.20041102-r1 >>> Install glibc-2.3.4.20041102-r1 into /var/tmp/portage/glibc-2.3.4.20041102-r1/image/ category sys-libs /usr/lib/portage/bin/ebuild.sh: line 837: cd: /var/tmp/portage/glibc-2.3.4.20041102-r1/work/build-default-i386-pc-linux-gnu-nptl: No such file or directory * Installing GLIBC with NPTL... Makeconfig:84: x86/config.make: No such file or directory Makerules:782: no file name for `include' configure.in > configure.new /bin/sh: line 1: configure.in: command not found make: *** [configure] Error 127 !!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed. !!! Function src_install, Line 841, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 10 2005, 20:47:05)] distcc[32619] (dcc_trace_version) distcc 2.18.3 i386-pc-linux-gnu; built Jul 7 2005 07:45:11 [disabled] dev-lang/python: 2.3.4-r1 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="ru_RU.KOI8-R" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apm arts avi berkdb bitmap-fonts crypt cups emboss encode foomaticdb fortran gdbm gif gpm gtk2 imlib jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS Any solution?
Seems the reason is in CHOST setting (i386 to be exact): glibc_do_configure which creates propper named directory (GBUILDDIR="${WORKDIR}/build-${ABI}-${CTARGET}-$1") is not called (within ebuild) due to the check in want_nptl function: want_nptl() { if use nptl || use nptlonly ; then # Archs that can use NPTL if use amd64 || use ia64 || use ppc || \ use ppc64 || use s390 || use sparc; then return 0 fi # Specific x86 CHOSTS that can use NPTL if use x86; then case "${CHOST/-*}" in i486|i586|i686) return 0 ;; esac fi fi return 1 } i386 CHOST is not supported...
Yeah, you should have: CHOST="i686-pc-linux-gnu" in /etc/make.conf