Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91620 - binutils fails compiling glibc
Summary: binutils fails compiling glibc
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
: 100551 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-05 15:02 UTC by Simone Piunno
Modified: 2005-07-28 04:29 UTC (History)
2 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 Simone Piunno 2005-05-05 15:02:55 UTC
I've just switchef to 2005.0 profile and, according to doc, I have to re-emerge glibc.  Problem is, glibc compilations fails because of gas internal bug.

Reproducible: Always
Steps to Reproduce:
1. emerge glibc
2.
3.

Actual Results:  
make[2]: Entering directory `/var/tmp/portage/glibc-2.3.5/work/glibc-2.3.5/math'
x86_64-pc-linux-gnu-gcc
/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/math/m_frexp.S
-c -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include -I.
-I/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/math
-I.. -I../libio 
-I/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads
-I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include -isystem /usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED
-DNOT_IN_libc=1 -DIS_IN_libm=1    -DASSEMBLER  -DGAS_SYNTAX  -Wa,--noexecstack 
-o
/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/math/m_frexp.os
-MD -MP -MF
/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/math/m_frexp.os.dt
-MT
/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/math/m_frexp.os
../include/../sysdeps/i386/fpu/s_frexp.S: Assembler messages:
../include/../sysdeps/i386/fpu/s_frexp.S:67: Error: suffix or operands invalid
for `pop'
../include/../sysdeps/i386/fpu/s_frexp.S:68: Internal error, aborting at
/var/tmp/portage/binutils-2.15.92.0.2-r7/work/binutils-2.15.92.0.2/gas/config/tc-i386.c
line 3500 in output_imm
Please report this bug.
make[2]: ***
[/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/math/m_frexp.os]
Error 1


Expected Results:  
should compile

Portage 2.0.51.21 (default-linux/amd64/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.11
distcc 2.18.3 x86_64-pc-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.5
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.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8 -funit-at-a-time -frename-registers -fweb"
CHOST="x86_64-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 /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -pipe -march=k8 -funit-at-a-time -frename-registers -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks fixpackages parallel-fetch sandbox strict"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="en it"
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="amd64 X a52 aalib acl acpi adns alsa apache2 app-crypt/gnupg:idea
app-crypt/gpgme:smime arts artswrappersuid audiofile avi bash-completion berkdb
bidi bigger-fonts bitmap-fonts bootsplash caps cdda cddb cdio cdparanoia cdr
cluster crypt cups curl dba dev-dotnet/mono:nptl dev-util/eric:idl directfb doc
dts dv dvd dvdr dvdread encode esd faad fam fbcon ffmpeg flac font-server
fortran fpx freetype gd gdbm gdm gif gimpprint gnutls gphoto2 gpm graphviz
gstreamer gtk gtk2 guile hal httpd icq imagemagick imap imlib innodb ipv6
ithreads jabber jack java jbig jp2 jpeg jpeg2k junit kde
kde-base/kdeadmin:foreign-package kde-base/kdeadmin:foreign-sysvinit
kde-base/kdemultimedia:cdparanoia ladcca lcms ldap libcaca libwww live lzo lzw
lzw-tiff mad maildir makecheck media-sound/museseq:fluidsynth mikmod motif
mozilla mp3 mpeg mysql ncurses net-misc/openssh:X509 net-misc/openssh:chroot
net-misc/openssh:sftplogging net-misc/openssh:skey net-www/apache:threads
net-www/mozilla-firefox:xprint net-www/mozilla:mozp3p net-www/mozilla:mozsvg
network nls nptl nsl nvidia ogg oggvorbis openexr opengl oss pam pcre pdflib
perl png python qt readline rrdtool rtc samba sasl sdl slang speex spell ssl
stream svg sys-devel/libperl:threads tcltk tcpd tetex tga theora threads tiff
truetype truetype-fonts type1-fonts unicode usb userlocales utf8 vcd vim-with-x
vorbis wmf xine xml xml2 xmms xpm xprint xrandr xv xvid xvmc zeo zlib linguas_en
linguas_it userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 SpanKY gentoo-dev 2005-05-07 18:16:14 UTC
remove the crap from your CFLAGS ... try with just CFLAGS="-O2 -pipe -march=k8"
Comment 2 Simone Piunno 2005-05-08 04:30:48 UTC
Done.
Now the problem is no more in binutils, but it's not a big step forward...

x86_64-pc-linux-gnu-gcc nscd_nischeck.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -march=k8 -pipe -mpreferred-stack-boundary=2     -I../include -I. -I/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu -linuxthreads/nscd -I.. -I../libio -I/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DNOT_IN_libc=1    -o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd_nischeck.o -MD -MP -MF /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd_nischeck.o.dt -MT /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux -gnu-linuxthreads/nscd/nscd_nischeck.o x86_64-pc-linux-gnu-gcc   -pie -Wl,-O1 \
   -Wl,-dynamic-linker=/lib/ld-linux.so.2 -Wl,-z,relro -Wl,-z,now \   -B/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthread
s/csu/ \
    \
    \
-L/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads
-L/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/math -L/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/elf  -L/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/dlfcn -L/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nss -L/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nis -L/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/rt -L/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/resolv -L/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/crypt -L/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads -Wl,-rpath-link=/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads:/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/math:/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/elf:/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/dlfcn:/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nss:/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nis:/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/rt:/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/resolv:/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/crypt:/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads \
-o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/connections.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/pwdcache.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/getpwnam_r.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/getpwuid_r.o
/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/grpcache.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/getgrnam_r.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/getgrgid_r.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/hstcache.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/gethstbyad_r.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/gethstbynm2_r.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/dbg_log.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd_conf.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd_stat.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/cache.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/mem.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd_setup_thread.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/xmalloc.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/xstrdup.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/aicache.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/initgrcache.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/gai.o /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/rt/librt.so
/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_nonshared.a /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nis/libnsl.so  /var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/libc_nonshared.a
/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: undefined reference to `errno@GLIBC_PRIVATE'
/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: undefined reference to `__libc_dl_error_tsd@GLIBC_PRIVATE'
/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: undefined reference to `__resp@GLIBC_PRIVATE'
/var/tmp/portage/glibc-2.3.5/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: undefined reference to `h_errno@GLIBC_PRIVATE'
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-13 14:58:16 UTC
Please see the "common problems" section of the upgrade doc which explains how
to fix this problem.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-07-28 03:43:19 UTC
*** Bug 100551 has been marked as a duplicate of this bug. ***
Comment 5 Alexander Rigbo 2005-07-28 04:20:35 UTC
@jeremy: what upgrade docs are you talking about? 
Comment 6 Herbie Hopkins (RETIRED) gentoo-dev 2005-07-28 04:29:23 UTC
(In reply to comment #5)
> @jeremy: what upgrade docs are you talking about? 

He means the 2005.0 upgrade doc:
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=1