Notes: * Busybox 1.1.2 failed as well. * See also Bug #130943. * I am using GCC 4.1.0 and glibc-2.4-r3. ------ >>> Emerging (2 of 6) sys-apps/busybox-1.1.3 to / ... LINK busybox_unstripped /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../lib64/libieee.a:(.data+0x0): multiple definition of `_LIB_VERSION' /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../lib64/libm.a(s_lib_version.o):(.data+0x0): first defined here /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/libbb/libbb.a(inet_common.o): In function `INET6_resolve': inet_common.c:(.text+0xdb): 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): In function `gethostbyaddr_wrapper': nslookup.c:(.text+0x54): 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): In function `ifconfig_main': ifconfig.c:(.text+0x36b): 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): In function `arping_main': arping.c:(.text+0x57f): 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): In function `INET_rresolve': inet_common.c:(.text+0x222): 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): In function `INET_resolve': inet_common.c:(.text+0x316): 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): In function `traceroute_main': traceroute.c:(.text+0x847): 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): In function `fakeidentd_main': fakeidentd.c:(.text+0x2fd): 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): In function `snprint_ip_port': netstat.c:(.text+0x5ef): 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.3/work/busybox-1.1.3/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 collect2: ld returned 1 exit status make: *** [busybox_unstripped] Error 1 # emerge --info Portage 2.1_rc1-r3 (default-linux/amd64/2005.1, gcc-4.1.0, glibc-2.4-r3, 2.6.16-gentoo-r6 x86_64) ================================================================= System uname: 2.6.16-gentoo-r6 x86_64 AMD Turion(tm) 64 Mobile Technology MT-32 Gentoo Base System version 1.12.0_pre19 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-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r1 dev-util/confcache: 0.4.2 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.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Wall -march=k8 -mieee-fp -pipe -O2 -fno-strict-aliasing -frename-registers -fweb -ffast-math" 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.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control /var/service" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-Wall -march=k8 -mieee-fp -pipe -O2 -fno-strict-aliasing -frename-registers -fweb -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo http://distfiles.gentoo.org" MAKEOPTS="-j2" PKGDIR="/etc/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.namerica.gentoo.org/gentoo-portage" USE="amd64 X alsa apache2 avi berkdb bitmap-fonts cli crypt cups doc dri eds emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jikes jpeg kde ldap lzw lzw-tiff mp3 mpeg ncurses nls nptl nptlonly nsplugin opengl pam pcre pdflib perl pic png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb xml xml2 xorg xpm xv zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Switch to a proper (supported) toolchain (ie not gcc-4.x) and try again please.
Please forward/copy this bug to the GCC 4.1 team *if* you think it is GCC 4.1 related. (I don't because of Bug #130943.)
I asked you to test with a supported compiler. Nobody is asserting that is where the problem lies. But before we spend time tracking it down. You the bug reporter need to help us along in solving the bug you filed.
Notes: * # gcc -v Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/specs Configured with: /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.6 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.6/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/include/g++-v3 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --enable-java-awt=gtk --enable-languages=c,c++,java,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9) * Still with glibc-2.4-r1 LINK busybox_unstripped /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../lib64/libieee.a:(.data+0x0): multiple definition of `_LIB_VERSION' /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../lib64/libm.a(s_lib_version.o):(.data+0x0): first defined here /var/tmp/portage/busybox-1.1.3/work/busybox-1.1.3/libbb/libbb.a(inet_common.o): In function `INET6_resolve': inet_common.c:(.text+0x256): 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): In function `gethostbyaddr_wrapper': nslookup.c:(.text+0x171): 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): In function `ifconfig_main': ifconfig.c:(.text+0x35c): 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): In function `arping_main': arping.c:(.text+0x580): 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): In function `INET_rresolve': inet_common.c:(.text+0x1a4): 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): In function `INET_resolve': inet_common.c:(.text+0x57): 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): In function `traceroute_main': traceroute.c:(.text+0x811): 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): In function `fakeidentd_main': fakeidentd.c:(.text+0x312): 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): In function `snprint_ip_port': netstat.c:(.text+0xac): 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.3/work/busybox-1.1.3/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 collect2: ld returned 1 exit status make: *** [busybox_unstripped] Error 1 # emerge --info Portage 2.1_rc1-r3 (default-linux/amd64/2005.1, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r6 x86_64) ================================================================= System uname: 2.6.16-gentoo-r6 x86_64 AMD Turion(tm) 64 Mobile Technology MT-32 Gentoo Base System version 1.12.0_pre19 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-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r1 dev-util/confcache: 0.4.2 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.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Wall -march=k8 -mieee-fp -pipe -O2 -fno-strict-aliasing -frename-registers -fweb -ffast-math" 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.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control /var/service" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-Wall -march=k8 -mieee-fp -pipe -O2 -fno-strict-aliasing -frename-registers -fweb -ffast-math" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo http://distfiles.gentoo.org" MAKEOPTS="-j2" PKGDIR="/etc/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.namerica.gentoo.org/gentoo-portage" USE="amd64 X alsa apache2 avi berkdb bitmap-fonts cli crypt cups doc dri eds emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jikes jpeg kde ldap lzw lzw-tiff mp3 mpeg ncurses nls nptl nptlonly nsplugin opengl pam pcre pdflib perl pic png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb xml xml2 xorg xpm xv zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
It didn't emerge using gcc-4.1.0, instead it works using gcc-4.1.1-pre20060517 on ~ppc. Portage 2.1_rc1-r3 (default-linux/ppc/ppc32/2006.0/G4, gcc-4.1.1-pre20060517, glibc-2.4-r3, 2.6.16-gentoo-r7 ppc) ================================================================= System uname: 2.6.16-gentoo-r7 ppc 7447A, altivec supported Gentoo Base System version 1.12.0_pre19 dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] 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-r1, 2.16.92 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r4 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-Os -mtune=G4 -mcpu=G4 -maltivec -mabi=altivec -pipe" CHOST="powerpc-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="-Os -mtune=G4 -mcpu=G4 -maltivec -mabi=altivec -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.ngi.it" LANG="it_IT.utf8" LC_ALL="it_IT.utf8" LDFLAGS="-Wl,--as-needed" LINGUAS="it" MAKEOPTS="-j2 -s" 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" PORTDIR_OVERLAY="/usr/local/portage /usr/local/ipl_ebuilds" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc X a52 aac aiglx alsa altivec amuled apache2 apm arts asf automount bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 cairo cddb cdio cdr cli cpudetection crypt css cups curl custom-cflags dbus dri dts dvd dvdr dvdread emboss encode escreen exif exscalibar ffmpeg fftw firefox flac foomaticdb fortran freetype gif glitz gphoto2 gpm gtk2 hal ibam ieee1394 imagemagick imlib input_devices_keyboard input_devices_mouse insecure-savers ipod isdnlog java jpeg kde kdeenablefinal kipi lcms libg++ libwww logrotate mad matroska max-idx-128 mikmod motif mozilla mozsvg mp3 mpeg musepack musicbrainz ncurses nls no-old-linux nptl nptlonly nsplugin offensive ogg opengl oss pam pcre pdf pdflib perl pmu png pppd python qt quicktime readline reflection remote roundrobin ruby samba sametime sdl session sheep skins spell spl ssl stream svg symlink sysfs syslog tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode urandom usb userlocales v4l video_cards_ati video_cards_radeon vidix visualization vorbis wifi wxwindows xcomposite xine xinerama xorg xosd xscreensaver xv xvid zlib elibc_glibc kernel_linux linguas_it userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
As I said.. With a supported compiler. pitr busybox-1.1.3 # gcc -v 2>&1 | tail -n1 gcc version 3.4.5 (Gentoo Hardened 3.4.5, HTB-3.4.4-1.00, ssp-3.4.5-1.0, pie-8.7.9) pitr busybox-1.1.3 # ./busybox 2>&1 | head -n1 BusyBox v1.1.3 (2006.05.20-14:15+0000) multi-call binary pitr busybox-1.1.3 # file bb busybox busybox_unstripped bb: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.1, statically linked, not stripped busybox: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.1, statically linked, stripped busybox_unstripped: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
Reopening bug
Reassigning bug
Looks like it happens with 3.4 (comment #4) and 4.1, so it isn't a gcc porting issue.
gcc version 3.4.5 is the current stable gcc and I can't reproduce this. Perhaps your libc sucks?
1.1.3 works fine for me with gcc-4.1.x and glibc-2.4 perhaps if you dropped your extensive CFLAGS to something sane it'd work fine
(In reply to comment #11) > 1.1.3 works fine for me with gcc-4.1.x and glibc-2.4 > > perhaps if you dropped your extensive CFLAGS to something sane it'd work fine > Are you refering to my CFLAGS? If so, which option(s) do you think is/are causing the problem? (BTW, Ive been using these options without apparent problems, for months now, including when I switched to gcc 4.1.0.)
dont really care, that's up to you to debug