Running scripts/bootstrap.sh stop when it checks for the __thread directive. Reproducible: Always Steps to Reproduce: 1. Start with the minimal install liveCD 2. Follow the handbook instructions 3. run scripts/bootstrap.sh Actual Results: Error message: "Could not find a gcc that supports __thread directive!" Expected Results: have a system ready for stage 2. Gentoo Base System version 1.4.16 Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.11-gentoo-r3 i686) ================================================================= System uname: 2.6.11-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 10 2005, 18:18:11)] dev-lang/python: 2.3.4-r1 sys-apps/sandbox: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: [Not Present] virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-Wno-error -Wall -Wshadow -W -O3 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-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="-Wno-error -Wall -Wshadow -W -O3 -march=pentium4 -fomit-frame-pointer -pipe -Woverloaded-virtual" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LINGUAS="fr en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="x86 X Xaw3d a52 aac acpi aim alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzlib cdparanoia cdr crypt cups divx4linux doc dv dvd dvdr dvdread emacs emboss encode esd examples fbcon ffmpeg fftw flac foomaticdb fortran ftp gb gdbm gif glut gnome gnustep gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jack java javascript jpeg kde ladcca lcms libg++ libwww mad mikmod mime mng motif mozilla mp3 mpeg mpi msn nas ncurses nis nls nptl ogg oggvorbis openal opengl oscar oss pam pdflib perl png posix python qt quicktime readline samba scanner sdl sndfile sockets sox speex spell sse ssl svg symlink sysvipc tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb v4l wmf wxwindows xine xinerama xml xml2 xmms xpm xv xvid zlib linguas_fr linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Created attachment 60477 [details] The output of scripts/bootstrap.sh --debug
what does this output ? $ gcc -c /usr/portage/sys-libs/glibc/files/test-__thread.c
Well, the problem seems to come from gcc or gcc-config. The old gcc gets unmerged, and gcc-config is not updated with the new profile. When we start to merge glibc, not only don't we have a gcc that supports the __thread directive, we don't have a gcc at all...
Created attachment 60522 [details] output of gcc -c /usr/portage/sys-libs/glibc/files/test-__thread.c &> /error.txt
So bootstrap.sh builds the new gcc, merges it, unmerges the stage provided one, but never runs gcc- config... This must be an error in the toolchain.eclass maybe? Also note that this is broken on x86, ~x86, amd64 and ~amd64... So certainly on all other arches too...
I have run into the same problem (platform x86).
dsd fixed the gcc-config in toolchain.eclass yesterday