Without ever having nls in USE flags; changing from nptl to nptlonly, /usr/portage/bootstrap.sh fails on gettext-0.14.4 demanding -fPIC compiler flag. These machines are US-English only so they shouldn't need nls ever correct? In /usr/scripts/bootstrap.sh and USE flag guidelines, notes indicate nls (&, by extension gettext) should not be needed... Reproducible: Always Steps to Reproduce: 1. LiveCD boot, chroot 2. emerge --sync 3. stage-1: bootstrap.sh Actual Results: On the 3rd of 12 ebuilds, gettext-0.14.4: /usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3/x86_64-pc-linux-gnu-gcc: gcc-wrapper: -m64 detected on the command line overrides implicit -m64 added by the wrapper. /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/bindtextdom.o: relocation R_X86_64_32S against `libintl_nl_default_dirname' can not be used when making a shared object; recompile with -fPIC .libs/bindtextdom.o: could not read symbols: Bad value collect2: ld returned 1 exit status distcc[17893] ERROR: compile (null) on localhost failed make[3]: *** [libgnuintl.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-runtime/intl' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-runtime' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gettext-0.14.4/work/gettext-0.14.4/gettext-runtime' make: *** [all-recursive] Error 1 !!! ERROR: sys-devel/gettext-0.14.4 failed. !!! Function src_compile, Line 65, Exitcode 2 !!! (no error message) Expected Results: Finish bootstrap, proceed to stage-2 (emerge -e system). /usr/portage/scripts/bootstrap.sh --info: Gentoo Linux 2005.0; http://www.gentoo.org/ Copyright 1999-2005 Gentoo Foundation; Distributed under the GPLv2 ------------------------------------------------------------------------------- [[ (0/3) Locating packages ]] * Using baselayout : >=sys-apps/baselayout-1.9.4-r7 * Using portage : >=sys-apps/portage-2.0.51-r13 * Using os-headers : virtual/os-headers * Using binutils : >=sys-devel/binutils-2.15.90.0.1.1-r3 * Using gcc : >=sys-devel/gcc-3.3.5-r1 * Using gettext : gettext * Using libc : virtual/libc * Using texinfo : sys-apps/texinfo * Using zlib : sys-libs/zlib * Using ncurses : sys-libs/ncurses ------------------------------------------------------------------------------- [[ (1/3) Configuring environment ]] * GENTOO_MIRRORS='http://mirror.usu.edu/mirrors/gentoo/ http://mirror.espri.arizona.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/' * PORTDIR='/usr/portage' * DISTDIR='/usr/portage/distfiles' * PKGDIR='/usr/portage/packages' * PORTAGE_TMPDIR='/var/tmp' * CFLAGS='-march=k8 -O3 -pipe -funroll-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -fprefetch-loop-arrays' * CHOST='x86_64-pc-linux-gnu' * CXXFLAGS='-march=k8 -O3 -pipe -funroll-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -fprefetch-loop-arrays' * MAKEOPTS='-j4' * ACCEPT_KEYWORDS='amd64 ~amd64' * FEATURES='autoconfig ccache distcc distlocks sandbox sfperms strict' ------------------------------------------------------------------------------- [[ (2/3) Updating portage ]] Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.11-gentoo-r3-k8 x86_64) ================================================================= System uname: 2.6.11-gentoo-r3-k8 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.4.16 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.4-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: [Not Present] virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe -funroll-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -fprefetch-loop-arrays" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe -funroll-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://mirror.espri.arizona.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 bootstrap build nls userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY ------------------------------------------------------------------------------- [[ (3/3) Emerging packages ]] Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.11-gentoo-r3-k8 x86_64) ================================================================= System uname: 2.6.11-gentoo-r3-k8 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.4.16 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.4-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: [Not Present] virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe -funroll-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -fprefetch-loop-arrays" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe -funroll-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://mirror.espri.arizona.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 bootstrap nls userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY ------------------------------------------------------------------------------- emerge --info: Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.11-gentoo-r3-k8 x86_64) ================================================================= System uname: 2.6.11-gentoo-r3-k8 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.4.16 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.4-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: [Not Present] virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe -funroll-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -fprefetch-loop-arrays" CHOST="x86_64-pc-linux-gnu" 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="-march=k8 -O3 -pipe -funroll-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://mirror.espri.arizona.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X acpi alsa amd64 apache2 bash-completion berkdb bitmap-fonts bzip2 calendar crypt cscope ctype dba dbx dio doc dvd dvdr emacs emacs-w3 example exif font-server fortran gd gdbm gif gnutls gpm gtk gtk2 innodb ipv6 ithreads java jp2 jpeg junit kde kerberos ldap lesstif libwww lzw lzw-tiff mng mp3 mysql mysqli ncurses nls nptlonly odbc opengl oss pam pam-mysql pcntl pcre pdflib perl php plotutils png posix postgres python qt readline ruby soap spell spl sqlite ssl symlink tcltk tcpd tetex threads tiff tokenizer truetype truetype-fonts type1-fonts usb usepackagedmakefiles userlocales vhosts xine xml xml2 xpm xrandr xv zeo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Disable ccache and try again.
And also disable distcc and clean /var/tmp/portage.
Assigning to maintainer and appropriate arch.
OK, leaving ccache enabled, while disabling distcc allows completion of the bootstrap. But, disabling ccache while enabling only distcc still causes the same problem.
I should add that: ccache -C -z rm -rf /var/tmp/portage/* /var/tmp/ccache/* /var/run/bootstrap-* edits to /etc/make.conf, enabling and disabling ccache and distcc features, together and alternatively were all performed before running bootstrap.sh each time. So, anytime distcc was enabled, the build would fail with the given error above.
update your gcc-config with `emerge gcc-config --nodeps` and everything should fix itself *** This bug has been marked as a duplicate of 87130 ***