Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102844 - glibc-2.3.5-r1 emerge failed
Summary: glibc-2.3.5-r1 emerge failed
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-17 07:47 UTC by Tiago Freire
Modified: 2005-08-21 04:34 UTC (History)
2 users (show)

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


Attachments
'find /emul -type f' command output (find.txt,22.17 KB, text/plain)
2005-08-19 04:09 UTC, Tiago Freire
Details
Output of find /emul -type f > /tmp/out (out,32.05 KB, text/plain)
2005-08-20 20:14 UTC, Edwin de Jong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago Freire 2005-08-17 07:47:31 UTC
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-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/csu/ 
\ 
    \ 
    \ 
  
-L/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads 
-L/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/math 
-L/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/elf 
-L/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/dlfcn 
-L/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nss 
-L/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nis 
-L/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/rt 
-L/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/resolv 
-L/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/crypt 
-L/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads 
-Wl,-rpath-link=/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads:/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/math:/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/elf:/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/dlfcn:/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nss:/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nis:/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/rt:/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/resolv:/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/crypt:/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads 
\ 
  
-o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/connections.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/pwdcache.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/getpwnam_r.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/getpwuid_r.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/grpcache.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/getgrnam_r.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/getgrgid_r.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/hstcache.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/gethstbyad_r.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/gethstbynm2_r.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/dbg_log.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd_conf.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd_stat.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/cache.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/mem.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd_setup_thread.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/xmalloc.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/xstrdup.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/aicache.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/initgrcache.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/gai.o /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/rt/librt.so /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread_nonshared.a /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nis/libnsl.so  /var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/libc_nonshared.a 
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: 
undefined reference to `__libc_malloc_pthread_startup@GLIBC_PRIVATE' 
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: 
undefined reference to `_errno@GLIBC_2.0' 
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/linuxthreads/libpthread.so: 
undefined reference to `_h_errno@GLIBC_2.0' 
collect2: ld returned 1 exit status 
make[2]: *** 
[/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/nscd/nscd] 
Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5/nscd' 
make[1]: *** [nscd/others] Error 2 
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5' 
make: *** [all] Error 2 
 
!!! ERROR: sys-libs/glibc-2.3.5-r1 failed. 
!!! Function toolchain-glibc_src_compile, Line 226, Exitcode 2 
!!! (no error message) 
!!! If you need support, post the topmost build error, NOT this status 
message. 
 

Reproducible: Always
Steps to Reproduce:
1. emerge -uD system 
 
 
Actual Results:  
emerge failed 

Expected Results:  
new glibc 

Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 
2.6.12-gentoo-r6 x86_64) 
================================================================= 
System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+ 
Gentoo Base System version 1.6.13 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    1.2.12 
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-r10 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-O2 -march=k8 -pipe" 
CHOST="x86_64-pc-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/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=k8 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ 
http://mirror.phy.olemiss.edu/mirror/gentoo 
ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.zie.pg.gda.pl 
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" 
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 3dnowex X aac acl acpi alsa apache2 arts artswrappersuid avi berkdb 
bidi bitmap-fonts bonobo browserplugin bzip2 bzlib calendar canna caps 
cdparanoia cdr cjk crypt cups curl curlwrappers dba dga doc dts dv dvb dvd 
dvdr dvdread eds encode esd ethereal evo fam fbcon ffmpeg flac foomaticdb 
fortran ftp gd gdbm gif gmp gnome gnutls gpm gstreamer gtk gtk2 gtkhtml i8x0 
iconv imagemagick imap imlib innodb interbase ipv6 java jpeg jpeg2k junit kde 
kdeenablefinal lcms ldap libwww lm_sensors lzw lzw-tiff mad maildir 
mailwrapper mbox mcal mhash mime mmap mng motif mozdevelop mozilla mozsvg mp3 
mpeg mpm-prefork mppe-mppc mysql nas ncurses nls nptl nvidia oav odbc 
offensive ogg oggvorbis openal opengl oss pam pcntl pcre pda pdflib perl php 
pic plotutils png posix postgres ppds prelude profile python qt quicktime 
rdesktop readline samba sasl scanner sdl session shared sharedmem slang 
sndfile soap sockets sox speex spell spl sqlite ssl svg symlink tcltk tcpd 
theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode 
usb userlocales utf8 vhosts vorbis wddx wifi win32 wmf xine xml xml2 xmlrpc 
xmms xpm xprint xsl xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-17 14:12:24 UTC
Was this during an upgrade from 2004.3 or were you already on 2005.0?  Can you
try this in /etc/make.conf:

CFLAGS_x86="-m32"
Comment 2 Tiago Freire 2005-08-18 10:53:31 UTC
I am already on 2005.0. In fact, I couldn't for the life of me fix the 32 bit  
support after I did the upgrade from 2004.3 to 2005.0, so I used a chrooted 
2005.0 clean install to redo my system.  
Comment 3 Tiago Freire 2005-08-18 13:18:17 UTC
After setting 'CFLAGS_x86="-m32"' glibc compiled without problems. 
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-19 00:32:53 UTC
Ok, that means you've got some leftover libc.so or something in /emul which is
causing problems.  Please attach the output of:

find /emul -type f
Comment 5 Tiago Freire 2005-08-19 04:09:53 UTC
Created attachment 66306 [details]
'find /emul -type f' command output
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-19 14:30:38 UTC
Yeah, you've got /emul/linux/x86/usr/lib/libpthread.so which means portage
didn't unmerge it when it was supposed to... odd... please delete that file.
Comment 7 Edwin de Jong 2005-08-20 20:13:10 UTC
(In reply to comment #6) 
> Yeah, you've got /emul/linux/x86/usr/lib/libpthread.so which means portage 
> didn't unmerge it when it was supposed to... odd... please delete that file. 
 
Have the exact same problem, but removing this file has not the desired 
effect, the bug persists. The added flag makes glibc compile 
(CFLAGS_x86="-m32) 
 
-- 
 
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 
2.6.12-gentoo-r8 x86_64) 
================================================================= 
System uname: 2.6.12-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+ 
Gentoo Base System version 1.12.0_pre6 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
dev-lang/python:     2.3.5, 2.4.1-r1 
sys-apps/sandbox:    1.2.12 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-O3 -fweb -fforce-addr -march=athlon64 -fomit-frame-pointer -pipe" 
CHOST="x86_64-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/env.d" 
CXXFLAGS="-O3 -fweb -fforce-addr -march=athlon64 -fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig ccache distlocks fixpackages sfperms strict" 
GENTOO_MIRRORS="ftp://ftp.student.utwente.nl/pub/linux/gentoo 
http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
LINGUAS="nl" 
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 aalib alsa applypatches arts avi berkdb bitmap-fonts bonobo cdr 
crypt cups curl dba dga dvd dvdread eds encode esd fam flac foomaticdb fortran 
gd gdbm ggi gif glx gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile 
imagemagick imlib ipv6 jack java joystick jpeg junit kde kdepim ldap libwww 
lzw lzw-tiff mad mikmod motif mozilla mp3 mpeg mysql nas ncurses nls nojython 
ogg opengl pam pdflib perl png ppds python qt quicktime readline samba scanner 
sdl session simplexml snmp speex spell ssl svg tcltk tcpd tetex tiff truetype 
truetype-fonts type1-fonts usb userlocales vorbis xft xine xml xml2 xmms xpm 
xv zlib zvbi linguas_nl userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS 
 
 
Comment 8 Edwin de Jong 2005-08-20 20:14:33 UTC
Created attachment 66446 [details]
Output of find /emul -type f > /tmp/out

See above comment
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-20 21:19:47 UTC
Yeah Edwin, you've got a bunch of other emul-glibc files there... see /emul/linux/x86/lib/libc-2.3.5.so, 
etc...

Why are those there?  Is /lib or /lib32 a symlink to /emul/...?  How did you upgrade?  Did you unmerge 
emul-glibc at the end of the upgrade?
Comment 10 Edwin de Jong 2005-08-21 04:32:52 UTC
(In reply to comment #9)  
> Yeah Edwin, you've got a bunch of other emul-glibc files there...  
see /emul/linux/x86/lib/libc-2.3.5.so,   
> etc...  
  
Yes, it seemed obvious to me that these might be the problem.  
 
> Why are those there?  Is /lib or /lib32 a symlink to /emul/...?  How did you  
upgrade?  Did you unmerge   
> emul-glibc at the end of the upgrade?  
  
I upgraded only yesterday to 2005.0. This error existed right from the start  
when I did the normal (scripted) upgrade. However, for reasons in other  
packages, the -fpic flag was in make.conf. Trying to eliminate the problem I  
started the upgrade process again, now without the helper script. However, it  
might be the case that I accidently synced (and updated) against the 2005.0  
repository. That might be the reason, as app-emulation/emul-linux-x86-glibc is 
at version 1000 right now (Latest version available: 1000). 
  
In any case, what would be the correct way of tackling this problem?