Hello, busybox won't compile (link) on PPC64 correctly: [...] AR cru libbb/libbb.a LINK busybox_unstripped STRIP busybox LINK busybox_unstripped /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/libbb/libbb.a(inet_common.o):(.text+0x168): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/networking/networking.a(nslookup.o):(.text+0x60): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/networking/networking.a(ifconfig.o):(.text+0x37c): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/networking/networking.a(arping.o):(.text+0x738): warning: Using 'gethostbyname2' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/libbb/libbb.a(inet_common.o):(.text+0x31c): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/libbb/libbb.a(inet_common.o):(.text+0x4a0): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/networking/networking.a(traceroute.o):(.text+0x9d8): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/networking/networking.a(fakeidentd.o):(.text+0x4cc): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/networking/networking.a(netstat.o):(.text+0x860): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/libpwdgrp/libpwdgrp.a(getgrnam_r.o): warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/powerpc64-unknown-linux-gnu/4.1.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc64-unknown-linux-gnu/4.1.0/../../../../lib64/libc.a(bsd-_setjmp.o)(.text+0x4): sibling call optimization to `__vmx__sigsetjmp_ent' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `__vmx__sigsetjmp_ent' extern /usr/lib/gcc/powerpc64-unknown-linux-gnu/4.1.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc64-unknown-linux-gnu/4.1.0/../../../../lib64/libc.a(bsd-_setjmp.o)(.text+0x2c): sibling call optimization to `__vmx__sigsetjmp_ent' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `__vmx__sigsetjmp_ent' extern /usr/lib/gcc/powerpc64-unknown-linux-gnu/4.1.0/../../../../powerpc64-unknown-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make: *** [busybox_unstripped] Error 1 !!! ERROR: sys-apps/busybox-1.1.2 failed. Call stack: ebuild.sh, line 1532: Called dyn_compile ebuild.sh, line 929: Called src_compile busybox-1.1.2.ebuild, line 143: Called die !!! static build failed !!! If you need support, post the topmost build error, and the call stack if relevant. The only reason why this works with current stable versions of out toolchain are this lines in the busybox ebuild (they are just ignoring the error): [...] if has_version '<sys-libs/glibc-2.3.5' ; then eerror "Your glibc has broken static support, ignorning static build failure." eerror "See http://bugs.gentoo.org/94879" cp busybox_unstripped bb else die "static build failed" fi [...] $ emerge --info Portage 2.1_pre7-r5 (default-linux/ppc/ppc64/2006.0/64bit-userland, gcc-4.1.0, glibc-2.4-r1, 2.6.12.2-vios ppc64) ================================================================= System uname: 2.6.12.2-vios ppc64 POWER5 (gr) Gentoo Base System version 1.12.0_pre17 dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 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-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="ppc64 ~ppc64" AUTOCLEAN="yes" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -pipe -mtune=power5 -mcpu=power5" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mtune=power5 -mcpu=power5" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc64 X alsa apache2 apm arts berkdb bitmap-fonts clamav cli crypt cups dri eds emboss encode esd foomaticdb fortran gdbm gif glitz gnome gnutls gpm gstreamer gtk gtk2 ibm imap imlib ipv6 jpeg kde kdeenablefinal libg++ libwww mad maildir mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdf pdflib perl png python qt quicktime readline reflection samba sasl sdl session spamassassin spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xml xmms xv zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY Markus
http://bugs.gentoo.org/show_bug.cgi?id=122992#c5
*** Bug 137153 has been marked as a duplicate of this bug. ***
Same thing in here (ppc64). CC libbb/xgethostbyname2.o AR cru applets/applets.a AR cru archival/archival.a AR cru archival/libunarchive/libunarchive.a AR cru coreutils/coreutils.a AR cru debianutils/debianutils.a AR cru editors/editors.a AR cru findutils/findutils.a AR cru init/init.a AR cru miscutils/miscutils.a AR cru modutils/modutils.a AR cru networking/networking.a AR cru procps/procps.a AR cru loginutils/loginutils.a AR cru shell/shell.a AR cru sysklogd/sysklogd.a AR cru util-linux/util-linux.a AR cru e2fsprogs/e2fsprogs.a AR cru libbb/libbb.a LINK busybox_unstripped /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/libbb/libbb.a(inet_common.o): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/networking/networking.a(nslookup.o): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/networking/networking.a(ifconfig.o): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/networking/networking.a(arping.o): warning: Using 'gethostbyname2' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/libbb/libbb.a(inet_common.o): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/libbb/libbb.a(inet_common.o): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/networking/networking.a(traceroute.o): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/networking/networking.a(fakeidentd.o): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/networking/networking.a(netstat.o): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../lib64/libc.a(dl-open.o): warning: definition of `_dl_tls_static_size' overriding common /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../lib64/libc.a(libc-tls.o): warning: common is here /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../powerpc64-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../lib64/libc.a(bsd-_setjmp.o)(.text+0x4): sibling call optimization to `.__vmx__sigsetjmp_ent' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `.__vmx__sigsetjmp_ent' extern /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../powerpc64-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../lib64/libc.a(bsd-_setjmp.o)(.text+0x2c): sibling call optimization to `.__vmx__sigsetjmp_ent' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `.__vmx__sigsetjmp_ent' extern /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../powerpc64-unknown-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make: *** [busybox_unstripped] Error 1 !!! ERROR: sys-apps/busybox-1.1.3 failed. Call stack: ebuild.sh, line 1540: Called dyn_compile ebuild.sh, line 940: Called src_compile busybox-1.1.3.ebuild, line 143: Called die --- my emerge --info: crete lib # emerge --info Portage 2.1.1_pre1-r1 (default-linux/ppc/ppc64/2006.0/64bit-userland, gcc-3.4.6/vanilla, glibc-2.3.6-r4, 2.6.16-gentoo-r9+4GB+SMP ppc64) ================================================================= System uname: 2.6.16-gentoo-r9+4GB+SMP ppc64 POWER5 (gr) Gentoo Base System version 1.12.1 ccache version 2.4 [disabled] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r1 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 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-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="ppc64 ~ppc64" AUTOCLEAN="yes" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -mcpu=power5 -mtune=power5 -pipe" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -mcpu=power5 -mtune=power5 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apache2 apm arts berkdb bitmap-fonts cdr cli cups dri eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 ibm imlib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png ppc64 pppd python qt quicktime readline reflection sdl session spell spl ssl tcltk tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xml xmms xorg xv zlib elibc_glibc kernel_linux userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY -Ippokratis.
Created attachment 90044 [details, diff] busybox-1.1.0.ebuild.patch this change to the busybox ebuild would ignore the error (as we currently do with stable glibc). this is not meant to be a fix, but it let's everybody who runs ~ppc64 compile busybox! ;-)
tgall added -mminimal-toc to CFLAGS if busybox is compiled on ppc64. that fixed it. Thanks a lot tom! :-D P.S.: tom: you only added the patch to 1.1.0. I'll add the fix to version 1.1.1 and 1.1.2, too.
is that the correct fix ?
*** Bug 140301 has been marked as a duplicate of this bug. ***
Still broken in 1.2.0 - see Bug 140301
adding CFLAGS to the ebuild ignores the real issue ... the ppc64 toolchain appears to be broken
*** Bug 142738 has been marked as a duplicate of this bug. ***
ok.. 1.2.1 does not even build with -mminimal-toc ...
it seems like busybox-1.2.1 does not allow 'unknown' CGLAGS. in Rules.mak only known CGLAGS get added to the build. unfortunatly -mminimal-toc is not part of those, so the build will fail on PPC64. if I add -mminimal-toc to Rules.mak then I'm still getting warnings, but it compiles: [...] LINK busybox_unstripped STRIP busybox LINK busybox_unstripped /var/tmp/portage/busybox-1.2.1/work/busybox-1.2.1/libbb/libbb.a(inet_common.o): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.2.1/work/busybox-1.2.1/networking/networking.a(nslookup.o): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.2.1/work/busybox-1.2.1/networking/networking.a(ifconfig.o): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.2.1/work/busybox-1.2.1/networking/networking.a(arping.o): warning: Using 'gethostbyname2' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.2.1/work/busybox-1.2.1/libbb/libbb.a(inet_common.o): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.2.1/work/busybox-1.2.1/libbb/libbb.a(inet_common.o): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.2.1/work/busybox-1.2.1/networking/networking.a(traceroute.o): warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.2.1/work/busybox-1.2.1/networking/networking.a(fakeidentd.o): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /var/tmp/portage/busybox-1.2.1/work/busybox-1.2.1/networking/networking.a(netstat.o): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../lib64/libc.a(dl-open.o): warning: definition of `_dl_tls_static_size' overriding common /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.6/../../../../lib64/libc.a(libc-tls.o): warning: common is here STRIP busybox >>> Source compiled.
this is the patch I made to Rules.mak: --- busybox-1.2.1/Rules.mak.orig 2006-09-26 09:39:35.000000000 +0000 +++ busybox-1.2.1/Rules.mak 2006-09-26 09:40:20.000000000 +0000 @@ -176,6 +176,7 @@ CHECKED_CFLAGS+=$(call check_cc,$(CC),-funsigned-char,) CHECKED_CFLAGS+=$(call check_cc,$(CC),-mmax-stack-frame=256,) CHECKED_CFLAGS+=$(call check_cc,$(CC),-fno-builtin-strlen) +CHECKED_CFLAGS+=$(call check_cc,$(CC),-mminimal-toc) # Preemptively pin this too. PROG_CFLAGS:=
it'd be better to simply have busybox utilize CFLAGS and LDFLAGS from the env i thought i checked that it worked before, but maybe i missed something also, the ppc64 toolchain is still broken regardless
gcc 4.1.1 also shows this error. With minimal toc things still build. I'll get together with one of the gcc development team after thanksgiving and take up this "bug" with them.
busybox-1.2.2.1 builds with gcc-4.1.1-r1 on default-linux/ppc/ppc64/2006.0/64bit-userland/970/pmac
*** Bug 167552 has been marked as a duplicate of this bug. ***
(In reply to comment #17) > *** Bug 167552 has been marked as a duplicate of this bug. *** > based on your feedback i rebuilt the tool chain(or what i image the toolchain is), emerge world -e now works. specifically: i rebuilt all the packages that were in the original emerge gcc -up (of which gcc was #3 of 6 or something that i thought was strange) and then reran the upgrade procedure (standard compiler upgrade). thanks for the help. and just a thought, like there is `emerge system`, perhaps there could be an `emerge toolchain`?
bb-1.1.* no longer exists in portage. I'm going to close this.
you cant close it until the -mminmal-toc crap is dropped from the bb ebuilds
@spanky; you think we should start yanking the TOC stuff from these ebuilds with gcc-4.3.x stable for ppc64 now?
(In reply to comment #21) > @spanky; you think we should start yanking the TOC stuff from these ebuilds > with gcc-4.3.x stable for ppc64 now? > If you don't need the cflag anymore for gcc-4.3, yank it from the ebuilds and we can close this :)
(In reply to comment #20) > you cant close it until the -mminmal-toc crap is dropped from the bb ebuilds > Fixed in latest: + 05 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> busybox-1.16.0.ebuild: + Remove -mminimal-toc wrt #130943. Tested on ppc64 (64ul) and "gcc version 4.3.4 (Gentoo 4.3.4 p1.1, pie-10.1.5)" that it's not required anymore. The rest should go away with time.
seems some are still hitting it
*** Bug 355501 has been marked as a duplicate of this bug. ***
I can confirm that sys-apps/busybox-1.17.4 DOES emerge for me on ppc64 IFF I add '-mminimal-toc' to CFLAGS
(In reply to comment #26) > I can confirm that sys-apps/busybox-1.17.4 DOES emerge for me on ppc64 IFF > I add '-mminimal-toc' to CFLAGS > try with gcc 4.4 selected instead of 4.3 as your emerge --info revealed. gcc-config ...
Still fails with 4.4.5 # emerge -pqv =sys-apps/busybox-1.17.4 * IMPORTANT: 3 config files in '/etc/portage' need updating. * See the CONFIGURATION FILES section of the emerge * man page to learn how to update config files. [ebuild R ] sys-apps/busybox-1.17.4 USE="ipv6 mdev pam -debug -make-symlinks -savedconfig (-selinux) -static" # emerge --info =sys-apps/busybox-1.17.4 Portage 2.1.9.25 (default/linux/powerpc/ppc64/10.0/64bit-userland/desktop, gcc-4.4.5, glibc-2.11.2-r3, 2.6.31-gentoo-r10-sl ppc64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.31-gentoo-r10-sl-ppc64-PPC970FX,_altivec_supported-with-gentoo-1.12.14 Timestamp of tree: Sat, 19 Feb 2011 13:00:01 +0000 app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.14-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.6.3-r1, 1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.3.4, 4.4.5 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="ppc64" ACCEPT_LICENSE="* -@EULA IBM-J1.6" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mirror.mcs.anl.gov/pub/gentoo/ http://distfiles.gentoo.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl altivec audio berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus doc dri dts dvd dvdr emboss encode examples exif extensions fam fftw firefox flac fontconfig gconf gdbm gdu gif gnome gnutls gpm gstreamer gtk guile hal ibm iconv ieee1394 ipv6 jpeg jpeg2k lcms ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppc64 ppds pppd pulseaudio python qt3support qt4 readline sdl session sip spell sqlite ssl startup-notification stun svg sysfs tcl tcpd tiff truetype udev unicode usb v4l v4l2 video vim vorbis wav xcb xml xorg xulrunner xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sys-apps/busybox-1.17.4 was built with the following: USE="ipv6 mdev pam -debug -make-symlinks -savedconfig (-selinux) -static" CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -mminimal-toc -fno-strict-aliasing" CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -mminimal-toc -fno-strict-aliasing" # tail -33 /var/tmp/portage/sys-apps/busybox-1.17.4/temp/build.log AR libbb/lib.a LINK busybox_unstripped Trying libraries: crypt m Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group Output of: powerpc64-unknown-linux-gnu-gcc -O2 -pipe -mcpu=970 -mtune=970 -maltivec -mabi=altivec -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -static -Wl,-O1 -Wl,--as-needed -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libunarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libunarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group ========== networking/lib.a(nslookup.o):(.text.print_host+0x64): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libbb/lib.a(inet_common.o):(.text.INET_rresolve+0x148): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking util-linux/lib.a(mount.o):(.text.nfsmount+0x128): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libbb/lib.a(inet_common.o):(.text.INET_rresolve+0x1dc): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libbb/lib.a(inet_common.o):(.text.INET_resolve+0xd4): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libbb/lib.a(xconnect.o):(.text.bb_lookup_port+0x90): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking networking/lib.a(netstat.o):(.text.ip_port_str+0xac): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/powerpc64-unknown-linux-gnu/4.4.5/../../../../powerpc64-unknown-linux-gnu/bin/ld: /usr/lib/gcc/powerpc64-unknown-linux-gnu/4.4.5/../../../../lib64/libc.a(kill.o)(.text+0xc): sibling call optimization to `__syscall_error' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `__syscall_error' extern /usr/lib/gcc/powerpc64-unknown-linux-gnu/4.4.5/../../../../powerpc64-unknown-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make: *** [busybox_unstripped] Error 1 emake failed * ERROR: sys-apps/busybox-1.17.4 failed: * static build failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2796: Called die * The specific snippet of code: * emake CONFIG_STATIC=y busybox || die "static build failed"; * * If you need support, post the output of 'emerge --info =sys-apps/busybox-1.17.4', * the complete build log and the output of 'emerge -pqv =sys-apps/busybox-1.17.4'. * The complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.17.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.17.4/temp/environment'. * S: '/var/tmp/portage/sys-apps/busybox-1.17.4/work/busybox-1.17.4'
NOTE: the --info above is slightly deceiving in that some info comes from /etc/make.conf but the "package settings" part came from the version I have installed which was comipled with the -minimal-toc option set. The failure with 4.3.4 and 4.4.5 were when -mminimal-toc was NOT set I also tried 4.3.4 with -fno-optimize-sibling-calls instead and it too failed to link.
+ 20 Feb 2011; Kacper Kowalik <xarthisius@gentoo.org> busybox-1.17.4.ebuild: + Workaround TOC issue wrt #130943 +
I have had the same problem on an almost stable amd64 system (some masked packages) for several months by now. I still have the 1.15.3 release installed. It never bothered me, because I never used bb anyway and when my system doesn't start for any reason I usually use some livecd to restore it. But now, the 1.15.3 version has been removed from the portage tree, but 1.17.4, although it's been marked stable for a couple of months still doesn't compile. The same is true for the masked 1.18.3 release. AR util-linux/lib.a LINK busybox_unstripped Trying libraries: crypt m Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group Output of: x86_64-pc-linux-gnu-gcc -O2 -pipe -Wall -march=amdfam10 -mmmx -mieee-fp -msse3 - msse4a -m3dnow -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstr ict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmi ssing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-styl e-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sec tions -fno-guess-branch-probability -funsigned-char -static-libgcc -static -Wl,- O1 -Wl,--as-needed -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,al ignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libunarchiv e/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianu tils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/l ib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linu x/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libunarchive/bui lt-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/bui lt-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils /built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/bui lt-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking /built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printut ils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built -in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group ========== /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../lib64/libieee.a:(.data+0x0): multiple definition of `_LIB_VERSION' /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../lib64/libm.a(s_lib_version.o) :(.data+0x0): first defined here For me, it looks like the last two lines are where the problem starts. So maybe it's an gcc internal issue, rather than a busybox problem? I'll go and add an attachment for the complete build log. If you need anything more feel free to give me hint. my emerge --info Portage 2.1.9.42 (default/linux/amd64/10.0/desktop, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.37-gentoo-r4-x86_64-AMD_Athlon-tm-_7850_Dual-Core_Processor-with-gentoo-2.0.2 Timestamp of tree: Sun, 08 May 2011 09:45:02 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r2::sage-on-gentoo, 2.7.1-r1::sage-on-gentoo, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.5 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 sys-kernel/linux-headers: 2.6.36.1 sys-libs/glibc: 2.11.3 virtual/os-headers: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA @FREE @EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -Wall -march=amdfam10 -mmmx -mieee-fp -msse3 -msse4a -m3dnow" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/torque" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -Wall -march=amdfam10 -mmmx -mieee-fp -msse3 -msse4a -m3dnow" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--buildpkg y --with-bdep y" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe -Wall -march=amdfam10 -mmmx -mieee-fp -msse3 -msse4a -m3dnow" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://de-mirror.org/distro/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://mirror.netcologne.de/gentoo/ " LANG="de_DE" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/sage-on-gentoo /var/lib/layman/dotnet /var/lib/layman/science /var/lib/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 avahi bash-completion beagle berkdb bluetooth branding bzip2 cairo caps cdr cli consolekit cracklib crypt cups curl cxx dbus dga dri dts dvd dvdr eds emacs emboss encode exif expat fam ffmpeg firefox flac fontconfig fortran fuse galago gconf gcrypt gd gdbm gdu gif glade gmp gnome gnome-keyring gnome-print gnutls gpm gstreamer gtk gzip iconv inotify ipv6 jadetex java jpeg jpeg2k kerberos kipi kpathsea latex lcms ldap libnotify lua lzma mad mmap mmx mng modules mono motif mp3 mp4 mpeg mudflap multilib mysql nautilus ncurses networkmanager nls nptl nptlonly nsplugin odbc offensive ogg openal openexr opengl openmp pam pango pch pcre pdf perl png policykit ppds pulseaudio python qt3support qt4 quicktime readline samba sdl semantic-desktop session skey slp smp source speex spell sse sse2 ssl ssse3 startup-notification svg sysfs syslog tcl tcpd threads tiff tk truetype udev unicode usb vorbis wmf x264 xattr xcb xft xinerama xml xorg xpm xulrunner xv xvid zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia nv vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 272891 [details] busybox-1.17.4 build log
Comment on attachment 272891 [details] busybox-1.17.4 build log no, this error is not like this report at all
Sorry to have bothered you. For me the output looked so similar to the one on my machine on the first glance that I didn't checked every line. I will open a new bug then.
Not reproducible right now. Feel free to reopen if necessary