Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93419 - qemu fails to link due to non-TLS reference in libqemu.a(helper2.o) ... errno in unistd.h issues
Summary: qemu fails to link due to non-TLS reference in libqemu.a(helper2.o) ... errno...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on: 94256
Blocks:
  Show dependency tree
 
Reported: 2005-05-21 06:38 UTC by Ivan Yosifov
Modified: 2005-10-26 16:50 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Yosifov 2005-05-21 06:38:02 UTC
emerge qemu-0.7, and:

../dyngen -o op.h op.o
../dyngen -c -o opc.h op.o
../dyngen -g -o gen-op.h op.o
gcc -fno-pie -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I.
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/target-i386
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/linux-user
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/linux-user/i386 -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/fpu
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/slirp -c -o translate-op.o
/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/translate-op.c
gcc -fno-pie -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I.
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/target-i386
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/linux-user
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/linux-user/i386 -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/fpu
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/slirp -c -o translate-all.o
/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/translate-all.c
gcc -fno-pie -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I.
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/target-i386
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/linux-user
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/linux-user/i386 -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/fpu
-I/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/slirp -c -o translate.o
/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/target-i386/translate.c
rm -f libqemu.a
ar rcs libqemu.a exec.o kqemu.o translate-op.o translate-all.o cpu-exec.o
translate.o op.o  fpu/softfloat-native.o helper.o helper2.o translate-copy.o
disas.o  i386-dis.o
gcc -g -Wl,-shared -o qemu-i386 elfload.o main.o syscall.o mmap.o signal.o
path.o osdep.o thunk.o vm86.o libqemu.a gdbstub.o   -lm
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../../i686-pc-linux-gnu/bin/ld:
errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS
reference in libqemu.a(helper2.o)
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make[1]: Leaving directory `/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/i386-user'
make: *** [all] Error 1

!!! ERROR: app-emulation/qemu-0.7.0 failed.
!!! Function src_compile, Line 96, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:





Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-g0 -O2 -march=pentium4 -mtune=pentium4 -msse2 -pipe
-fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -ftracer
-mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-g0 -O2 -march=pentium4 -mtune=pentium4 -msse2 -pipe
-fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -ftracer
-mfpmath=sse -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ITDNet.net/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--strip-all"
LINGUAS="en"
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 X aac acl acpi alsa apache2 avi bash-completion berkdb bitmap-fonts
bonobo cdr crypt cups curl doc dvd dvdr eds emboss encode flac foomaticdb gd
gdbm gif gnome gpm gstreamer gtk gtk2 guile hal howl imagemagick imlib ipv6
ithreads java jpeg junit kde kdeenablefinal ldap libg++ libwww mad mikmod mmap
mmx motif mozilla mp3 mpeg mysql ncurses nls nptl nvidia ogg oggvorbis opengl
pam pdflib perl pic plotutils png postgres pthreads python qt quicktime readline
sdl session sharedmem slang spell sse sse2 ssl svga symlink tcltk tcpd tetex
threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis xml xml2 xv
zlib linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET
Comment 1 Luca Barbato gentoo-dev 2005-05-21 12:40:30 UTC
CFLAGS="-g0 -O2 -march=pentium4 -mtune=pentium4 -msse2 -pipe
-fomit-frame-pointer -momit-leaf-frame-pointer -funit-at-a-time -ftracer
-mfpmath=sse"

LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--strip-all"

I'm sorry your system have a problem, probably you'll have to clean up the
LDFLAGS and then rethink about the CFLAGS (-msse2 should be implied by pentium4
IIRC and -g0 should never be used that way) 

Marked ad invalid
Comment 2 Ivan Yosifov 2005-05-21 13:12:57 UTC
Needless to say I am willing to get this solved.

-msse2 is NOT implied by -march=pentium4, proof:

obelix@home ~/temp $ gcc -march=pentium4 -Q -v test.c -o test
<snip>
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129225
options passed:  -v -mno-sse2 -march=pentium4 -auxbase
options enabled:  -feliminate-unused-debug-types -fpeephole -ffunction-cse
 -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm -fgcse-las
 -fsched-interblock -fsched-spec -fsched-stalled-insns
 -fsched-stalled-insns-dep -fbranch-count-reg -fcommon -fargument-alias
 -fzero-initialized-in-bss -fident -fmath-errno -ftrapping-math -m80387
 -mhard-float -mno-soft-float -mieee-fp -mfp-ret-in-387
 -maccumulate-outgoing-args -mmmx -msse -mno-red-zone -mtls-direct-seg-refs
 -mtune=pentium4 -march=pentium4
<snip>


I have commented the LDFLAGS line in make.conf . 

Yet before I run emerge -e world I want to ask you
what is the wrong with using -g0 in CFLAGS ?
Comment 3 Luca Barbato gentoo-dev 2005-05-21 13:38:03 UTC
IIRC, may be wrong as I was for sse2, it should set debug level to zero, and
override previous settings.

Should not of any use. Again, I'm not sure it is one of the origin of your
system issue, I'm quite sure that isn't common set it system wide.

Comment 4 Ivan Yosifov 2005-05-22 02:10:13 UTC
Ok, I've removed the -g0 anyway.
Running emerge -e world, will report back when it completes.
Comment 5 Jan Kunzmann 2005-05-22 13:24:26 UTC
Very same problem here with my plain ~x86 installation using these settings: 
 
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.5-r0, 
2.6.11-gentoo-r8 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1700MHz 
Gentoo Base System version 1.6.12 
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    1.2.8 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/binutils:  2.16 
sys-devel/libtool:   1.5.18 
virtual/os-headers:  2.6.11 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/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="-march=pentium4 -O3 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig buildpkg distcc distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/" 
LINGUAS="de en" 
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 X X509 aac aalib acpi aim alsa apache2 apm arts avi berkdb 
bitmap-fonts bluetooth cdparanoia cdr crypt css cups curl directfb divx4linux 
dvb dvd emboss encode ethereal fam fbcon flac flash foomaticdb gd gdbm gif gpm 
gtk gtk2 icq imagemagick imlib ipv6 jabber jack java jpeg junit kde 
kdeenablefinal kerberos ldap libcaca libg++ libwww mad maildir mikmod ming 
mjpeg mmx motif mp3 mpeg mysql nas ncurses nls nptl ogg oggvorbis opengl oscar 
pam pcmcia pdflib perl php png python qt quicktime readline real samba sdl 
slang snmp spell sqlite sse sse2 ssl svga tcltk tcpd tidy tiff truetype 
truetype-fonts type1-fonts unicode vorbis wifi wxwindows xine xml xml2 xmms xv 
xvid yahoo zlib linguas_de linguas_en userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS 
 
 
Comment 6 Erik Zeek 2005-05-24 04:42:20 UTC
I'm getting a similar error with splashutils on PPC.  (I'm unsure whether to
file a separate bug report)  The error message is almost identical.  Could this
be a glibc issue?

<snip/>
  CC      list.o
  CC      effects.o
  CC      ttf.o
  LD      splash_util
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3-20050110/../../../../powerpc-unknown-linux-gnu/bin/ld:
__libc_er
rno: TLS definition in
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3-20050110/../../../libc.a(errno.o)
section
 .tbss mismatches non-TLS reference in
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3-20050110/../../../libc.a(
check_fds.o)
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3-20050110/../../../libc.a: could not
read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [splash_util] Error 1

!!! ERROR: media-gfx/splashutils-1.1.9.6 failed.
!!! Function src_compile, Line 139, Exitcode 2
!!! failed to build splashutils
!!! If you need support, post the topmost build error, NOT this status message.


> emerge info
Portage 2.0.51.22-r1 (default-linux/ppc/2004.3, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r9 ppc)
=================================================================
System uname: 2.6.11-gentoo-r9 ppc 750CXe
Gentoo Base System version 1.6.12
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -pipe -mcpu=750"
CHOST="powerpc-unknown-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.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -pipe -mcpu=750"
DISTDIR="/home/gentoo/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://mirrors.tds.net/gentoo
http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://mirrors.tds.net/gentoo
http://adelie.polymtl.ca/ http://gentoo.mirrors.pair.com/
http://gentoo.osuosl.org/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j3"
PKGDIR="/home/gentoo/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/gentoo/portage"
PORTDIR_OVERLAY="/home/gentoo/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="ppc X Xaw3d a52 aac aalib acl activefilter alsa amd apache2 arts
artswrappersuid artworkextra atlas auctex bash-completion bcmath berkdb
bitmap-fonts blas bonobo bzip2 bzlib c++ cddb cdf cdinstall cdparanoia cdr cjk
codecs cpdflib crypt css ctype cups curl curlwrappers dba debugger dga dhcp dio
dmx dpms dv dvd dvdr dvdread ecc editor edl eds emboss emul-linux encode esd
exif f2c faad fam fame fastcgi fb fbcon fbdev ffmpeg fftw flac flatfile
font-server foomaticdb fortran freetype freewnn ftp gb gcj gd gdbm ggi gif gimp
gimpprint ginac glade glut gmp gmtfull gmthigh gmtsuppl gmttria gnome gnomedb
gnuplot gphoto2 gpm gps graphviz gs gsl gstreamer gtk gtk2 gtkhtml guile hal
hdf5 httpd hub iconv icq idea ieee1394 imagekits imagemagick imap imlib imlib2
inifile itcl jabber jack java javacomm javamail javascript jbig jce jmx jp2 jpeg
jpeg2k jta junit jython kcal kde kdexdeltas ladcca lapack lcms libcaca libclamav
libdsk libsamplerate libwww live lzo lzw lzw-tiff mad maildir mailwrapper maps
md5sum mhash mikmod milter mime ming mjpeg mng monkey motif mozilla moznocompose
moznoirc moznomail moznoxft mozsvg mp3 mpeg mpeg4 mpi mplayer msn multitarget
music mysql nas native ncurses netcdf nethack network nfsv4 nls no-old-linux
nocd nowin nptl nptlonly ntlm numeric nviz oav objc octave offensive ofx ogdi
ogg oggvorbis openal opengl operanom2 oscar oss pam parse-clocks pcntl pcre pdf
pdfkit pdflib perl php physfs pic pie plotutils plugin png portaudio posix
povray ppds print private python qemu-fast qhull qt quicktime quotas quotes
readline rhino rogue rrdtool rtc samba scanner screenshot sdl session shared
sheep silc simplexml skey slang slp smime sndfile sockets softmmu sox
spamassassin speedo speex spell spl ssl stencil-buffer stream subject-rewrite
svg symlink sysvipc szip tcltk tcpd tetex tga theora threads tidy tiff tokenizer
toolbar transcode truetype truetype-fonts type1 type1-fonts ucs2 unicode usb
userlocales utf8 uudeview v4l v4l2 vcd vcdimager videos vidix vim-with-x
virus-scan vlm vnc voice vorbis winbind withsamplescripts wma123 wmf wsconvert
wxwindows xanim xatrix xbase xface xforms xfs xine xml xml2 xmlrpc xmms xosd xpm
xprint xscreensaver xsl xslt xv xvid yahoo yaz yv12 zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 7 Luca Barbato gentoo-dev 2005-05-24 12:22:14 UTC
everybody emerge -vp glibc
Comment 8 Erik Zeek 2005-05-24 22:28:21 UTC
I have the following for emerge -pv glibc

[ebuild   R   ] sys-libs/glibc-2.3.5  -build -debug -erandom -hardened
(-multilib) +nls -nomalloccheck +nptl +nptlonly +pic +userlocales 0 kB
Comment 9 Luca Barbato gentoo-dev 2005-05-24 23:09:49 UTC
looks like a problem from the glibc
Comment 10 Luca Barbato gentoo-dev 2005-05-24 23:18:32 UTC
bumping the severity accordingly.
Comment 11 Ivan Yosifov 2005-05-25 00:55:12 UTC
The emerge -e world is complete, the problem is still.

home ~ # emerge -pv glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-libs/glibc-2.3.5  -build -debug -erandom -hardened
(-multilib) +nls -nomalloccheck +nptl +nptlonly +pic -userlocales 0 kB

Total size of downloads: 0 kB
home ~ # emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -msse2 -fomit-frame-pointer
-momit-leaf-frame-pointer -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -msse2 -fomit-frame-pointer
-momit-leaf-frame-pointer -mfpmath=sse -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ITDNet.net/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="en"
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 X aac acl acpi alsa apache2 avi bash-completion berkdb bitmap-fonts
bonobo cdr crypt cups curl doc dvd dvdr eds emboss encode flac foomaticdb gd
gdbm gif gnome gpm gstreamer gtk gtk2 guile hal howl imagemagick imlib ipv6
ithreads java jpeg junit kde kdeenablefinal ldap libg++ libwww mad mikmod mmap
mmx motif mozilla mp3 mpeg mysql ncurses nls nptl nvidia ogg oggvorbis opengl
pam pdflib perl pic plotutils png postgres pthreads python qt quicktime readline
sdl session sharedmem slang spell sse sse2 ssl svga symlink tcltk tcpd tetex
threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis xml xml2 xv
zlib linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 12 Pat Double 2005-05-25 11:18:45 UTC
Same happening here.: 
 
sys-libs/glibc-2.3.5  -build -debug -erandom -hardened (-multilib) +nls 
-nomalloccheck +nptl -nptlonly +pic -userlocales 
sys-devel/gcc-3.4.3.20050110-r2  (-altivec) -bootstrap -boundschecking -build 
-debug +fortran +gcj +gtk -hardened -ip28 (-multilib) -multislot (-n32) (-n64) 
+nls -nocxx -objc -static (-uclibc) 
 
CFLAGS="-O3 -pipe -march=pentium4 -mfpmath=sse -fexpensive-optimizations 
-fschedule-insns2 -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop 
-frerun-loop-opt -falign-functions=4 -fprefetch-loop-arrays" 
 
Note: I have built qemu-0.7.0 several times before this successfully. 
Comment 13 Luca Barbato gentoo-dev 2005-05-25 11:30:22 UTC
Eventually reproduced. It IS a glibc/headers problem.
Comment 14 Luca Barbato gentoo-dev 2005-05-25 14:01:31 UTC
Added a workaround in qemu, yet I'd track the issue with the system headers to
avoid spurious errno.h includes
Comment 15 Ivan Yosifov 2005-05-26 13:32:45 UTC
Emerged the updated qemu 0.7 ebuild with no problems. Thanks.
Comment 16 SpanKY gentoo-dev 2005-05-27 18:49:58 UTC
try downgrading binutils ... `emerge '<binutils-2.16'`
Comment 17 SpanKY gentoo-dev 2005-05-27 19:04:49 UTC
FYI, luca was correct about -march=pentium4 implying sse2

we patch all of gcc-3.4.3 to force -nosse2 since sse2 handling is broken in that
version
Comment 18 Ivan Yosifov 2005-05-28 01:06:43 UTC
I see... Ok, two things
1) What is wrong with sse handling in 3.4.3 ?
2) Is still wrong in 3.4.4 ?
Comment 19 SpanKY gentoo-dev 2005-05-28 01:16:19 UTC
unrelated, this bug is about the TLS issue

see Bug 57602 and Bug 75067 ... gcc-3.4.4 should fix sse handling, i just havent
tested it yet (i'll prob push it into ~x86 and lets users test it :P)
Comment 20 SpanKY gentoo-dev 2005-05-28 02:06:05 UTC
ok, dont downgrade your binutils ... just edit your /usr/include/linux/unistd.h
and change the 'extern int errno;' line to '#include <errno.h>'
Comment 21 Ivan Yosifov 2005-05-28 02:15:32 UTC
@19: I'll be giving 3.4.4 a try about now, and I'll make sure you get the bugs
first, if any :P

@20: I can do that, but how do I test it ? qemu already has a workaround and
builds (#14,#15), and I have not seen anything else fail with such an error.
Comment 22 Luca Barbato gentoo-dev 2005-10-26 16:50:58 UTC
the problem should be fixed now.