Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79711 - Kdebase and arts fails to compile with the latest stable binutils.
Summary: Kdebase and arts fails to compile with the latest stable binutils.
Status: RESOLVED DUPLICATE of bug 78720
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-27 06:12 UTC by Simon Strandman
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Strandman 2005-01-27 06:12:44 UTC
Kdebase and arts fails to compile with binutils 2.15.92.0.2 on AMD64. Kdebase fails with this:

/bin/sh ../../../libtool --silent --mode=link --tag=CXX x86_64-pc-linux-gnu-g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -Wl,-O1 -O2 -march=athlon64 -pipe -fomit-frame-pointer -ffast-math -fweb -fPIC -DPIC -fvisibility-inlines-hidden -fno-enforce-eh-specs -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE   -Wl,-O1 -o libkfontinst.la -rpath /usr/kde/3.3/lib -L/usr/lib64 -L/usr/qt/3/lib -L/usr/kde/3.3/lib  -R /usr/kde/3.3/lib -R /usr/qt/3/lib -R /usr/lib64   -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined CompressedFile.lo Encodings.lo FontEngine.lo Fontmap.lo GetPid.lo Global.lo KfiConfig.lo Misc.lo XConfig.lo ../../fonts/libkxftconfig.la -lfontenc -lkio -lfontconfig   -lfreetype -lz -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/Fontmap.o: relocation R_X86_64_PC32 against `std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(char const*, std::_Ios_Openmode)@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [libkfontinst.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/kdebase-3.3.2-r1/work/kdebase-3.3.2/kcontrol/kfontinst/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdebase-3.3.2-r1/work/kdebase-3.3.2/kcontrol/kfontinst'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdebase-3.3.2-r1/work/kdebase-3.3.2/kcontrol'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdebase-3.3.2-r1/work/kdebase-3.3.2'
make: *** [all] Error 2

!!! ERROR: kde-base/kdebase-3.3.2-r1 failed.
!!! Function kde_src_compile, Line 142, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.

And arts fails with a similar message. More info about this problem can be found in these forum threads:
http://forums.gentoo.org/viewtopic.php?p=2025714
http://forums.gentoo.org/viewtopic.php?t=284001

The solution is to downgrade binutils to the last stable: 2.15.90.0.1. I'm setting this bug to "major" since it's the stable binutils that fails.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.10-ck5 x86_64)
=================================================================
System uname: 2.6.10-ck5 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 26 2005, 16:31:09)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-Wl,-O1 -O2 -march=athlon64 -pipe -fomit-frame-pointer -ffast-math -fweb
-fPIC -DPIC"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Wl,-O1 -O2 -march=athlon64 -pipe -fomit-frame-pointer -ffast-math
-fweb -fPIC -DPIC -fvisibility-inlines-hidden -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.pudas.net/gentoo ftp://ftp.rhnet.is/pub/gentoo/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.rhnet.is/pub/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa artswrappersuid berkdb bitmap-fonts caps cdr crypt
dga dvd dvdr dvdread eds f77 fam fbcon font-server fortran gif gphoto2 gpm gtk
gtk2 hal ipv6 jack jack-tmpfs java javascript jp2 jpeg kde lzw lzw-tiff mad
mikmod mng motif mozilla mpeg multilib ncurses nls nptl nptlonly nvidia objc
offensive oggvorbis opengl pam perl pic png pnp python qt quicktime readline
real samba ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb
userlocales xine xml xml2 xmms xpm xrandr xv xvid zlib video_cards_nvidia
linguas_sv"
Unset:  ASFLAGS, CBUILD, CTARGET
Comment 1 SpanKY gentoo-dev 2005-01-27 09:27:31 UTC
drop the PIC and linker crap from your CFLAGS and try again
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2005-01-27 10:07:02 UTC
This is possibly a duplicate of BUG #78720. Investigating...
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2005-01-27 11:21:32 UTC

*** This bug has been marked as a duplicate of 78720 ***