Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171905 - [binutils] version 2.17.50.0.13 installs libiberty.a into /usr/lib64/binutils/$CHOST/lib64/ instead of /.../$CHOST/$PV
Summary: [binutils] version 2.17.50.0.13 installs libiberty.a into /usr/lib64/binutils...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR16513
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-23 10:53 UTC by David Watzke
Modified: 2007-03-24 07:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
binutils-2.17.50.0.13-libiberty-multilib-changes.patch (binutils-2.17.50.0.13-libiberty-multilib-changes.patch,2.85 KB, patch)
2007-03-24 06:42 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Watzke 2007-03-23 10:53:55 UTC
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA   -DwxUSE_GUI=0 -I./libs -Ilibs -DEC_REMOTE -DECSOCKET_USE_EVENTS=0 -O2 -march=k8 -pipe -msse3 -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2  -MT amulecmd-OtherFunctions.o -MD -MP -MF ".deps/amulecmd-OtherFunctions.Tpo" -c -o amulecmd-OtherFunctions.o `test -f 'OtherFunctions.cpp' || echo './'`OtherFunctions.cpp; \
        then mv -f ".deps/amulecmd-OtherFunctions.Tpo" ".deps/amulecmd-OtherFunctions.Po"; else rm -f ".deps/amulecmd-OtherFunctions.Tpo"; exit 1; fi
x86_64-pc-linux-gnu-g++  -O2 -march=k8 -pipe -msse3 -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2   -lpthread -o amulecmd  amulecmd-TextClient.o amulecmd-ExternalConnector.o amulecmd-OtherFunctions.o -Llibs/common -Llibs/ec -lmulecommon -lec_noevt -L/usr/lib64 -pthread   -L/usr/X11R6/lib64  -lwx_baseu_net-2.6 -lwx_baseu-2.6  -lreadline -lz  -lbfd -liberty
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -liberty
collect2: ld returned 1 exit status
make[3]: *** [amulecmd] Error 1
make[3]: Leaving directory `/20GB/var/tmp/portage/net-p2p/amule-2.1.3/work/aMule-2.1.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/20GB/var/tmp/portage/net-p2p/amule-2.1.3/work/aMule-2.1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/20GB/var/tmp/portage/net-p2p/amule-2.1.3/work/aMule-2.1.3'
make: *** [all] Error 2


I've found that libiberty should be probably provided by binutils package, so I tried to downgrade binutils from 2.17.50.0.13 to 2.17.50.0.12 and it compiles and works now...


Portage 2.1.2.2 (default-linux/amd64/dev/2007.0/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.21-rc3-git2 x86_64)
=================================================================
System uname: 2.6.21-rc3-git2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.13.0_alpha12
Timestamp of tree: Fri, 23 Mar 2007 05:30:07 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.5-r1
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.20_alpha2
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.12
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -pipe -msse3"
DISTDIR="/300GB/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.mirror.web4u.cz/ ftp://ftp.linux.cz/pub/linux/gentoo"
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/20GB/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes --progress --prune-empty-dirs"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/20GB/var/tmp"
PORTDIR="/20GB/portage"
PORTDIR_OVERLAY="/20GB/overlay /usr/local/portage/dave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apache2 asf avi bitmap-fonts bzip2 cairo cdparanoia cdr cli css cups curl curlwrappers custom-cflags cvs dbus dga dts dvd dvdr dvdread emboss enca encode fbcon ffmpeg flac flash ftp fuse gd gif gpm hal iconv id3 id3v2 imagemagick ithreads jabber javascript jpeg kde kdeenablefinal kdehiddenvisibility kdexdeltas lame lcms libg++ mad matroska midi mmx mmxext mp3 mpeg mplayer musepack ncurses nls no-suexec nowebdav nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl pic png posix ppds pppd print python qt qt3 quicktime readline reflection sdl session sockets spl sse sse2 sse3 ssl subversion svg symlink theora threads truetype truetype-fonts type1-fonts unicode usb vorbis wma x264 xcomposite xine xml xorg xv xvid xvmc zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Neil Cathey 2007-03-24 02:38:16 UTC
I just noticed the same thing, but with kde-base/kmtrace-3.5.5.  It seems that binutils-2.17.50.0.13 installs libiberty.a in

/usr/lib64/binutils/x86_64-pc-linux-gnu/lib64/

instead of

/usr/lib64/binutils/x86_64-pc-linux-gnu/2.17.50.0.13/

but only on amd64.  (My x86 box installed libiberty.a in the correct directory).  Once I moved libiberty.a to the correct directory, I was able to emerge kmtrace.
Comment 2 Neil Cathey 2007-03-24 04:18:22 UTC
(In reply to comment #1)

Oh, and this seems to be new to .13.  .12 & 2.17 both install libiberty.a to the correct directory.  Something must have changed in .13, but I'm afraid I don't know what.
Comment 3 SpanKY gentoo-dev 2007-03-24 06:42:52 UTC
Created attachment 114203 [details, diff]
binutils-2.17.50.0.13-libiberty-multilib-changes.patch

here's the change in question that is causing this
Comment 4 SpanKY gentoo-dev 2007-03-24 07:12:07 UTC
toolchain-binutils.eclass now handles this new behavior ... no revbump; re-emerge and/or upgrade to 2.17.50.0.14