Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98820 - module-init-tools-3.2_pre7 fails with nptlonly
Summary: module-init-tools-3.2_pre7 fails with nptlonly
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-12 14:41 UTC by meyerm
Modified: 2005-07-13 07:55 UTC (History)
1 user (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 meyerm 2005-07-12 14:41:44 UTC
The following error occurs on my ~ppc system. I used nptl and nptlonly for the  
glibc.  
 
... 
In file included from modinfo.c:50:   
./../include/util.h:43: warning: built-in function 'log' declared as   
non-function   
powerpc-unknown-linux-gnu-gcc -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec   
-pipe -I./../include -D_GNU_SOURCE -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"   
-DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"   
-DCONFIG_ROOT_CHECK_OFF=0   -DCOMMON_3264 -DELF_MACHINE_H='"elf_ppc64.h"'   
-DARCH_ppc64 -DONLY_64    
-DTAINT_URL='"http://www.tux.org/lkml/#export-tainted"' -DCOMBINE_rmmod   
-DCOMBINE_modprobe -DCOMBINE_lsmod -DCOMBINE_ksyms -DCOMBINE_kallsyms -c -o   
modinfo_64.o modinfo.c   
In file included from modinfo.c:50:   
./../include/util.h:43: warning: built-in function 'log' declared as   
non-function   
powerpc-unknown-linux-gnu-gcc -static -O2 -mcpu=G4 -mtune=G4 -maltivec   
-mabi=altivec -pipe -o insmod.static insmod.o insmod_64.o kallsyms_64.o   
rmmod.o modprobe.o lsmod.o ksyms.o   
kallsyms.o ../obj/libobj.a ../util/libutil.a   
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../../powerpc-unknown-linux-gnu/bin/ld:   
__libc_errno: TLS definition   
in /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../libc.a(errno.o)   
section .tbss mismatches non-TLS reference   
in /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../libc.a(check_fds.o)   
/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/../../../libc.a: could not read   
symbols: Bad value   
collect2: ld returned 1 exit status   
make[1]: *** [insmod.static] Error 1   
make[1]: *** Waiting for unfinished jobs....   
make[1]: Leaving directory   
`/var/tmp/portage/module-init-tools-3.2_pre7/work/modutils-2.4.27/insmod'   
make: *** [all] Error 2   
   
!!! ERROR: sys-apps/module-init-tools-3.2_pre7 failed.   
!!! Function src_compile, Line 87, Exitcode 2   
!!! emake modutils 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/ppc/2004.3, gcc-3.4.4, glibc-2.3.5-r0, 
2.6.11-pegasos-r5-pegasos ppc) 
================================================================= 
System uname: 2.6.11-pegasos-r5-pegasos ppc 7447/7457, altivec supported 
Gentoo Base System version 1.6.12 
ccache version 2.4 [disabled] 
dev-lang/python:     2.3.5, 2.4.1-r1 
sys-apps/sandbox:    1.2.10 
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="ppc ~ppc" 
AUTOCLEAN="yes" 
CBUILD="powerpc-unknown-linux-gnu" 
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -pipe" 
CHOST="powerpc-unknown-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 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig buildpkg distlocks fixpackages sandbox sfperms strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
LINGUAS="de" 
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="ppc X aalib acl adns alsa altivec apache2 arts bash-completion berkdb 
bitmap-fonts cdr chroot crypt cups curl dbus dvb dvd dvdr eds emboss encode 
esd evo exif fam flac font-server fortran ftp gd gdbm gif gnome gphoto2 gpm 
gstreamer gtk gtk2 hal ieee1394 imagemagick imap imlib innodb ipv6 jabber jack 
java jpeg kde kdeenablefinal ldap libwww mad maildir memlimit mng motif 
mozilla mp3 mpeg mysql nas ncurses nls nptl offensive ogg oggvorbis openal 
opengl oscar oss pam pcre pda pdflib perl php pic pie png posix postgres ppds 
prelude python qt readline recode samba scanner sdl shared sharedmem snmp 
sockets socks5 spell sqlite ssl svg sysvipc tcpd tetex theora tiff truetype 
truetype-fonts type1-fonts unicode usb vhosts vorbis xine xinerama xml2 xosd 
xprint xv xvid zlib video_cards_radeon linguas_de userland_GNU kernel_linux 
elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 SpanKY gentoo-dev 2005-07-12 15:32:23 UTC
i'm pretty sure module-init-tools is just fine, your glibc is broken

try re-emerging it
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-13 03:26:08 UTC
Works fine on x86 and amd64 with nptlonly ...
Comment 3 meyerm 2005-07-13 05:15:20 UTC
Interesting. I reemerged my glibc with the old useflags (nptl and nptlonly)  
[why do linuxthreads no longer work together with nptl??] and the same version  
and now the other programs like module-init-tools work. What could have 
happened? 
Comment 4 SpanKY gentoo-dev 2005-07-13 06:02:19 UTC
older versions of strip from binutils incorrectly destroyed TLS information
which manifested itself as the error you saw
Comment 5 meyerm 2005-07-13 07:55:10 UTC
(In reply to comment #4) 
> older versions of strip from binutils incorrectly destroyed TLS information 
> which manifested itself as the error you saw 
OK, that could be. I updated my system not long ago. Thank you very much.