Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179744 - dev-util/kdesvn-0.12 fails to emerge on AMD64 with gcc-4.2.0
Summary: dev-util/kdesvn-0.12 fails to emerge on AMD64 with gcc-4.2.0
Status: RESOLVED DUPLICATE of bug 186089
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-25 12:42 UTC by Thomas Veith
Modified: 2007-07-26 19:19 UTC (History)
3 users (show)

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


Attachments
buildlog (kdesvn-0.12.0.log,25.15 KB, text/plain)
2007-05-25 12:46 UTC, Thomas Veith
Details
emerge --info (emerge.info,4.09 KB, text/plain)
2007-07-06 14:37 UTC, Duncan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Veith 2007-05-25 12:42:08 UTC
Hi,

kdesvn-0.12 fails to build on amd64, but works on x86. See detailed build log attached. The same PIC-related build-error happened with another package, but I cant remember now which one :(

Anyway, here the error:

[ 91%] Building CXX object src/CMakeFiles/kdesvnpart.dir/kdesvnview.o
[ 91%] Building CXX object src/CMakeFiles/kdesvnpart.dir/commandline_part.o
Linking CXX shared module ../lib/kde3/libkdesvnpart.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-util/kdesvn-0.12.0/work/kdesvn-0.12.0/lib/kde3/libsvnfrontend.a(svnitem.o): relocation R_X86_64_PC32 against `vtable for svn::ref_count' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/kde3/libkdesvnpart.so] Error 1
make[1]: *** [src/CMakeFiles/kdesvnpart.dir/all] Error 2
make: *** [all] Error 2



emerge --info:

homer ~ # emerge --info
Portage 2.1.2.8 (default-linux/amd64/2006.1, gcc-4.2.0, glibc-2.5-r2, 2.6.18-gentoo x86_64)
=================================================================
System uname: 2.6.18-gentoo x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System release 1.12.10
Timestamp of tree: Fri, 25 May 2007 11:20:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.3.6-r2, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
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
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-ggdb -march=athlon64 -O2 -ftracer -pipe"
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/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-ggdb -march=athlon64 -O2 -ftracer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://194.117.143.69 ftp://130.59.10.34/mirror/gentoo/"
LANG="de_DE@euro"
LC_ALL="C"
LINGUAS="de en ru"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/armagetron /usr/portage/local/layman/wtk-mono /usr/local/portage /usr/local/sci"
SYNC="rsync://server/gentoo-portage"
USE="X a52 aac acl acpi akode alsa amd64 apache2 arts artworkextra atlas audiofile avahi bash-completion beagle berkdb bitmap-fonts blas bzip2 cairo caps cddb cdr cg cli clisp cracklib crypt css cups curl daap dbus devil doc dri dts dv dvd dvdr dvdread eds emacs encode esd examples exif expat fame fbcon ffmpeg fftw firefox flac flash font-server fortran fpx galago gcj gd gdbm gif ginac glitz glut gmp gnokii gnome gnomedb gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal howl ical iconv icq idn ieee1394 imagemagick imap imlib irc isdnlog java javascript jbig jpeg jpeg2k kcal kde lapack latex lcms ldap libcaca libg++ libnotify lirc lj lm_sensors logitech-mouse lua lzo mad mcal midi mikmod mjpeg mmap mng mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mpeg msn mudflap musepack mysql nas ncurses network nfs nls nntp nptl nptlonly nsplugin nvidia objc odbc offensive ogg oggvorbis opengl openmp pam pascal pcre pda perl plotutils png postgres ppds pppd print python qhull qt qt3 quotas rdesktop readline reflection rss samba sample sasl sbcl sblive scanner sdl session slang slp smp sms sndfile snmp speex spell spl sql sqlite ssl subversion svg tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd visualization vorbis wifi winbind wmf xbase xcomposite xine xinerama xml xml2 xorg xprint xscreensaver xvid 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en ru" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Veith 2007-05-25 12:46:34 UTC
Created attachment 120278 [details]
buildlog
Comment 2 Thomas Veith 2007-05-25 13:13:42 UTC
OOPS.. MY FAULT! When compiling with gcc-4.1.2 it all works! So its a problem related to gcc-4.2.0! Sorry!
Comment 3 Duncan 2007-07-06 13:46:52 UTC
According to an announcement on gentoo-dev, gcc-4.2.0 is about to go ~arch including ~amd64.  Thus, this bug should be reopened and fixed for gcc-4.2.0.
FWIW, on ~amd64 I'm failing with gcc-4.2.0 but succeeding with 4.1.2 as well.  I hadn't filed a bug however as 4.2 was masked and I couldn't provide a patch.

Note that according to bug #184087 there's a new version out, kdesvn-0.12.1, that fixes a linker problem on Mac OSX.  It's possible that fix works for the linker problem here too.  I expect to test that theory shortly and report my results.  (The sources location changed too, so it's not just version bumping the ebuild.)

Duncan
Comment 4 Duncan 2007-07-06 14:16:03 UTC
The kdesvn-0.12.1 from upstream, using the updated Gentoo 0.12.0 ebuild, does /not/ fix the gcc-4.2.0 linking problem as I had hoped.

Please reopen this bug and make bug #162167 (the gcc-4.2.0 tracker bug) depend on it.

I'll attach my emerge --info output shortly.

Duncan
Comment 5 Duncan 2007-07-06 14:37:13 UTC
Created attachment 124050 [details]
emerge --info

Here's my emerge --info.  Note that with gcc-4.1.2, kdesvn-0.12 emerges fine.  With 4.2.0, it doesn't.  I tried generic C(XX)FLAGS="-march=k8 -O2 -pipe" and even -O instead of -O2, same issue.  I blew away the confcache in case that was causing the problem.  It wasn't.  As stated above, I just tried kdesvn-0.12.1 too, hoping it was fixed upstream.  It wasn't.  I don't really know what else to try, so I've just been using the gcc-4.1.2 compiled version.

I DO note that it seems to be attempting to link against the static *.a, which AFAIK won't be -fPIC, rather than the dynamic *.so, which should be.  Why, I'm not sure, but obviously, gcc-4.2 is screwing up something somewhere.

Duncan
Comment 6 SpanKY gentoo-dev 2007-07-06 15:10:08 UTC
gcc-4.2 bugs need to be tracked
Comment 7 Neil Cathey 2007-07-08 12:35:12 UTC
Try using binutils-2.17.50.0.17 (in package.mask).  kdesvn-0.12.1 compiled for me with gcc-4.2.0 and the masked binutils.

I had several packages fail (I don't remember which ones, sorry) with following error message:

relocation R_X86_64_PC32 against `xxx' can not be used when making a shared object; recompile with -fPIC

until I upgraded binutils when I was trying gcc-4.2 snapshots.  Upgrading binutils fixed all of those errors except for one- enigmail.  Fortunately, I don't use enigmail and I added the following line:

mail-client/mozilla-thunderbird -crypt

to my package.use and forgot about it until now.
Comment 8 Neil Cathey 2007-07-08 12:41:12 UTC
I forgot to mention that I only encountered the relocation errors on my amd64 machine- not on my x86 machine.  Maybe gcc-4.2 requires a newer binutils on amd64?

This was also discussed on the forums.  See

http://forums.gentoo.org/viewtopic-t-452816-postdays-0-postorder-asc-start-250.html
Comment 9 Duncan 2007-07-13 19:19:53 UTC
(In reply to comment #7)
> Try using binutils-2.17.50.0.17 (in package.mask).
> kdesvn-0.12.1 compiled for me with gcc-4.2.0 and the masked binutils.

Just confirming, binutils-2.17.15.0.17 did it (with kdesvn-0.12.1, see comment #3) for me here.  It's up and running, compiled with gcc-4.2.0, now. =8^)

Thanks, Neil!  Looks like there may need to be an amd64 and gcc-4.2.0 conditional dependency on a newer binutils.

Duncan
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-07-26 19:19:59 UTC

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