Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87761 - updating to sys-libs/glibc-2.3.4.20050125-r1 fails...can't find a register in class `BREG' while reloading `asm'
Summary: updating to sys-libs/glibc-2.3.4.20050125-r1 fails...can't find a register in...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-03 04:21 UTC by Gour
Modified: 2005-04-03 05:55 UTC (History)
0 users

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 Gour 2005-04-03 04:21:43 UTC
Attempt to update from 2004.3 --> 2005.0 via script fails, i.e.:

[...]
../nptl/sysdeps/unix/sysv/linux/i386/../fork.c: In function `__libc_fork':
../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:203: error: can't find a register in class `BREG' while reloading `asm'
make[3]: *** [/var/tmp/portage/glibc-2.3.4.20050125-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/posix/fork.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20050125-r1/work/glibc-2.3.4/posix'
make[2]: *** [posix/subdir_lib] Error 2
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20050125-r1/work/glibc-2.3.4'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20050125-r1/work/build-x86-x86_64-pc-linux-gnu-nptl'

!!! ERROR: sys-libs/glibc-2.3.4.20050125-r1 failed.
!!! Function toolchain-glibc_src_compile, Line 241, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

make: *** [step5] Error 1


Reproducible: Always
Steps to Reproduce:
1.mkdir /usr/tmp/profile-update && cd /usr/tmp/profile-update
2. wget http://amd64.gentoo.org/Makefile-profile_update-2005.0 && lynx -source http://amd64.gentoo.org/Makefile-profile_update-2005.0.md5sum | md5sum -c -
3. make -f Makefile-profile_update-2005.0

Actual Results:  
The above error. 


Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, 
glibc-2.3.4.20050125-r1, 2.6.10-gentoo-r7 x86_64) 
================================================================= 
System uname: 2.6.10-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+ 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 23 2005, 09:35:24)] 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.4 [enabled] 
dev-lang/python:     2.3.5 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r6 
sys-devel/libtool:   1.5.14 
virtual/os-headers:  2.6.8.1-r4 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-march=k8 -O2 -pipe -funroll-loops -fPIC" 
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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=k8 -O2 -pipe -funroll-loops -fPIC" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox userpriv" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
LANG="en_US.utf8" 
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/portage/local" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib acpi alsa amd64 apache2 arts audiofile avi bash-completion berkdb 
bitmap-fonts bzip2 caps cddb cdparanoia cdr crypt cups curl dar64 directfb 
divx4linux doc dvd dvdr dvdread emul-linux-x86 encode esd fam fbcon flac 
font-server foomaticdb fortran gdbm gif gimpprint gnome gnutls gpm gstreamer 
gtk gtk2 gtkhtml hal haskell i8x0 ieee1394 imagemagick imlib innodb ipv6 java 
jikes jp2 jpeg jpeg2k kde kdeenablefinal kdexdeltas koffice-plugin lcms ldap 
libwww lm_sensors logitech-mouse lzo lzw lzw-tiff mad mmap mmqt motif 
mozdevelop mozilla mozsvg mp3 mpeg mysql ncurses nls noamazon nptl nvidia 
oggvorbis openexr opengl oss pam pcre pda perl php pic png ppds pslib python qt 
readline ruby sasl scanner slang speex spell sqlite ssl svg tcltk tcpd tetex 
theora tidy tiff truetype truetype-fonts type1-fonts unicode usb userlocales 
vim-with-x wxwindows xface xine xml xml2 xmms xpm xprint xrandr xv zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2005-04-03 05:55:11 UTC
Gour: Please remove -fPIC from your CFLAGS.
a) some sources need a -DPIC as well. Especially assembler source need to be PIC
aware.
b) it hides BUGs. Everytime you encounter a package that doesn't build on amd64
due to "please add -fPIC": PLEASE report a BUG on that.

Reopen this BUG if glibc still doesn't build without -fPIC in your CFLAGS.