Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 98340

Summary: sys-apps/busybox-1.00-r4 fails to link on SPARC
Product: Gentoo Linux Reporter: Karl-Johan Karlsson <creideiki+gentoo-bugzilla>
Component: [OLD] Core systemAssignee: Sparc Porters <sparc>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: Sparc   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Karl-Johan Karlsson 2005-07-08 05:01:19 UTC
sys-apps/busybox-1.00-r4 compiles fine on an Ultra10, but fails to link with the 
following error:

sparc-unknown-linux-gnu-gcc -static -o busybox -Wl,--start-group /var/tmp/
portage/busybox-1.00-r4/work/busybox-1.00/applets/applets.a /var/tmp/portage/
busybox-1.00-r4/work/busybox-1.00/archival/archival.a /var/tmp/portage/busybox-
1.00-r4/work/busybox-1.00/archival/libunarchive/libunarchive.a /var/tmp/portage/
busybox-1.00-r4/work/busybox-1.00/coreutils/coreutils.a /var/tmp/portage/
busybox-1.00-r4/work/busybox-1.00/console-tools/console-tools.a /var/tmp/
portage/busybox-1.00-r4/work/busybox-1.00/debianutils/debianutils.a /var/tmp/
portage/busybox-1.00-r4/work/busybox-1.00/editors/editors.a /var/tmp/portage/
busybox-1.00-r4/work/busybox-1.00/findutils/findutils.a /var/tmp/portage/
busybox-1.00-r4/work/busybox-1.00/init/init.a /var/tmp/portage/busybox-1.00-r4/
work/busybox-1.00/miscutils/miscutils.a /var/tmp/portage/busybox-1.00-r4/work/
busybox-1.00/modutils/modutils.a /var/tmp/portage/busybox-1.00-r4/work/busybox-
1.00/networking/networking.a /var/tmp/portage/busybox-1.00-r4/work/busybox-1.00/
networking/libiproute/libiproute.a /var/tmp/portage/busybox-1.00-r4/work/
busybox-1.00/networking/udhcp/udhcp.a /var/tmp/portage/busybox-1.00-r4/work/
busybox-1.00/procps/procps.a /var/tmp/portage/busybox-1.00-r4/work/busybox-1.00/
loginutils/loginutils.a /var/tmp/portage/busybox-1.00-r4/work/busybox-1.00/
shell/shell.a /var/tmp/portage/busybox-1.00-r4/work/busybox-1.00/sysklogd/
sysklogd.a /var/tmp/portage/busybox-1.00-r4/work/busybox-1.00/util-linux/util-
linux.a /var/tmp/portage/busybox-1.00-r4/work/busybox-1.00/libpwdgrp/libpwdgrp.a 
/var/tmp/portage/busybox-1.00-r4/work/busybox-1.00/coreutils/libcoreutils/
libcoreutils.a /var/tmp/portage/busybox-1.00-r4/work/busybox-1.00/libbb/libbb.a 
/var/tmp/portage/busybox-1.00-r4/work/busybox-1.00/e2fsprogs/e2fsprogs.a -lm -
lcrypt -lcrypt -Wl,--end-group
/usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.6/../../../../sparc-unknown-linux-
gnu/bin/ld: __libc_errno: TLS definition in /usr/lib/gcc-lib/sparc-unknown-
linux-gnu/3.3.6/../../../libc.a(errno.o) section .tbss mismatches non-TLS 
reference in /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.6/../../../libc.
a(check_fds.o)
/usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.6/../../../libc.a: could not read 
symbols: Bad value
collect2: ld returned 1 exit status
make: *** [busybox] Error 1

I've removed the hard mask from and installed glibc-2.3.5, since having 
userlocales make a huge difference in installation time and the comment in /usr/
portage/profiles/default-linux/sparc/sparc64/2005.0/package.mask indicates that 
the only problem is with blackdown-jdk, which I don't need. Kernel is sys-
kernel/sparc-sources-2.4.30, so it's not NPTL related like most other Busybox 
bugs I could find.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.51.22-r1 (default-linux/sparc/sparc64/2005.0, gcc-3.3.6, glibc-2.3.
5-r0, 2.4.30-sparc sparc64)
=================================================================
System uname: 2.4.30-sparc sparc64 sun4u
Gentoo Base System version 1.6.12
ccache version 2.4 [enabled]
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.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=ultrasparc -O2 -pipe"
CHOST="sparc-unknown-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/terminfo /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks sandbox sfperms strict 
userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.gentoo.se/ http://distfiles.gentoo.org http://www.
ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="sparc aac audiofile avi bash-completion berkdb bitmap-fonts crypt cups 
dlloader emacs encode flac foomaticdb gcc64 gdbm gif imlib jpeg kerberos libwww 
mad mikmod mmap mpeg ncurses nls ogg oggvorbis opengl pam pdflib perl png python 
readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis 
xml2 xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Gustavo Zacarias (RETIRED) gentoo-dev 2005-07-08 05:31:46 UTC
glibc has a hard mask on sparc for many reasons.