Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94861 - bootstrap: "Could not find a gcc that supports __thread directive!"
Summary: bootstrap: "Could not find a gcc that supports __thread directive!"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-02 13:05 UTC by François Bertel
Modified: 2005-06-06 18:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The output of scripts/bootstrap.sh --debug (bootstrap.txt,36.85 KB, text/plain)
2005-06-02 13:07 UTC, François Bertel
Details
output of gcc -c /usr/portage/sys-libs/glibc/files/test-__thread.c &> /error.txt (error.txt,313 bytes, text/plain)
2005-06-03 07:20 UTC, François Bertel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description François Bertel 2005-06-02 13:05:50 UTC
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
Comment 1 François Bertel 2005-06-02 13:07:35 UTC
Created attachment 60477 [details]
The output of scripts/bootstrap.sh --debug
Comment 2 SpanKY gentoo-dev 2005-06-02 13:35:01 UTC
what does this output ?

$ gcc -c /usr/portage/sys-libs/glibc/files/test-__thread.c
Comment 3 Jean-Christophe Choisy 2005-06-03 00:24:06 UTC
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...
Comment 4 François Bertel 2005-06-03 07:20:12 UTC
Created attachment 60522 [details]
output of gcc -c /usr/portage/sys-libs/glibc/files/test-__thread.c &> /error.txt
Comment 5 Jean-Christophe Choisy 2005-06-03 09:14:00 UTC
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...
Comment 6 Michael Knappe 2005-06-06 01:02:50 UTC
I have run into the same problem (platform x86).
Comment 7 SpanKY gentoo-dev 2005-06-06 18:28:41 UTC
dsd fixed the gcc-config in toolchain.eclass yesterday