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

Bug 140033

Summary: klibc-1.4.9 fails to build on AMD64
Product: Gentoo Linux Reporter: Vladimir G. Ivanovic <vgivanovic>
Component: New packagesAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: VERIFIED INVALID    
Severity: normal    
Priority: High    
Version: 2005.1   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vladimir G. Ivanovic 2006-07-11 13:45:16 UTC
strip: -R option supports only .comment section
Try `strip --help' or `strip --usage' for more information.
scripts/Kbuild.klibc:315: target `usr/kinit/ipconfig' given more than once in the same rule.
scripts/Kbuild.klibc:315: target `usr/kinit/nfsmount' given more than once in the same rule.
scripts/Kbuild.klibc:315: target `usr/kinit/run-init' given more than once in the same rule.
scripts/Kbuild.klibc:315: target `usr/kinit/fstype' given more than once in the same rule.
  KLIBCCC usr/kinit/nfsmount/main.o
  KLIBCCC usr/kinit/ipconfig/main.o
  KLIBCCC usr/kinit/nfsmount/mount.o
  KLIBCCC usr/kinit/nfsmount/portmap.o
  KLIBCCC usr/kinit/ipconfig/netdev.o
  KLIBCCC usr/kinit/nfsmount/dummypmap.o
  KLIBCCC usr/kinit/ipconfig/packet.o
  KLIBCCC usr/kinit/nfsmount/sunrpc.o
  KLIBCCC usr/kinit/ipconfig/dhcp_proto.o
  LD      usr/kinit/nfsmount/lib.a
  KLIBCLD usr/kinit/nfsmount/static/nfsmount
strip: -R option supports only .comment section
Try `strip --help' or `strip --usage' for more information.
make[3]: *** [usr/kinit/nfsmount/static/nfsmount] Error 64
make[2]: *** [usr/kinit/nfsmount] Error 2
make[2]: *** Waiting for unfinished jobs....
  KLIBCCC usr/kinit/ipconfig/bootp_proto.o
  LD      usr/kinit/ipconfig/lib.a
  KLIBCLD usr/kinit/ipconfig/static/ipconfig
  KLIBCLD usr/kinit/ipconfig/shared/ipconfig
strip: -R option supports only .comment section
Try `strip --help' or `strip --usage' for more information.
make[3]: *** [usr/kinit/ipconfig/shared/ipconfig] Error 64
make[3]: *** Waiting for unfinished jobs....
strip: -R option supports only .comment section
Try `strip --help' or `strip --usage' for more information.
make[3]: *** [usr/kinit/ipconfig/static/ipconfig] Error 64
make[2]: *** [usr/kinit/ipconfig] Error 2
make[1]: *** [all] Error 2
make: *** [klibc] Error 2

I've tried usig gcc 4.1.1 with and without "-ffastmath" and gcc 3.4.6 with "-ffastmath". All fail in the same way.

# emerge --info
Portage 2.1.1_pre2-r6 (default-linux/amd64/2005.1, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo x86_64)
=================================================================
System uname: 2.6.17-gentoo x86_64 AMD Turion(tm) 64 Mobile Technology MT-32
Gentoo Base System version 1.12.1
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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, 2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Wall -march=k8 -msse3 -pipe -O2 -ffast-math"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /var/bind /var/service"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Wall -march=k8 -msse3 -pipe -O2 -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.llarian.net/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://gentoo.llarian.net/pub/gentoo"
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 dlloader doc dri eds emboss encode firefox foomaticdb fortran gif glibc-omitfp 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 pdf pdflib perl pic png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd tiff truetype truetype-fonts type1 type1-fonts unicode usb xml xml2 xorg xpm xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2006-07-11 22:59:44 UTC
Well, unless there is some output that pointed to another error, it seems to be because your strip is acting weird.  Usually for klibc strip is run with '--strip-all -R .comment -R .note' as arguments, and in your case it only seem to support .comment section, and not .note.

Try to add a more detailed log, or maybe add V=1 to the make lines, and attach that output here.
Comment 2 Vladimir G. Ivanovic 2006-07-19 15:06:51 UTC
Well, ...

Cockpit error. I had a version of strip from 2005 in /usr/local/bin. (I have deleted the entire set of binutils that was lurking in /usr/local/bin.)

I have marked the bug INVALID.

Sorry.
Comment 3 Vladimir G. Ivanovic 2006-07-19 15:07:22 UTC
See above.