after emerge workrave compilation fails and complains about -fPIC Reproducible: Always Steps to Reproduce: 1. echo "app-misc/workrave ~amd64" >> /etc/portage/package.keywords 2. emerge workrave Actual Results: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/libkworkraveapplet_la-kworkraveapplet.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC .libs/libkworkraveapplet_la-kworkraveapplet.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[5]: *** [libkworkraveapplet.la] Error 1 make[5]: Leaving directory `/var/tmp/portage/workrave-1.8.1-r1/work/workrave-1.8.1/frontend/gtkmm/src/kde_applet' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/workrave-1.8.1-r1/work/workrave-1.8.1/frontend/gtkmm/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/workrave-1.8.1-r1/work/workrave-1.8.1/frontend/gtkmm' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/workrave-1.8.1-r1/work/workrave-1.8.1/frontend' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/workrave-1.8.1-r1/work/workrave-1.8.1' make: *** [all] Error 2 !!! ERROR: app-misc/workrave-1.8.1-r1 failed. !!! Function gnome2_src_compile, Line 48, Exitcode 2 !!! compile failure !!! If you need support, post the topmost build error, NOT this status message. Expected Results: compile cleanly well adding -fPIC to /etc/make.conf solves the problem Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.12-gentoo-r10 x86_64) ================================================================= System uname: 2.6.12-gentoo-r10 x86_64 AMD Turion(tm) 64 Mobile Technology ML-28 Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -mtune=athlon64 -O2 -pipe -fprefetch-loop-arrays -DNDEBUG -DG_DISABLE_ASSERT" 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/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -mtune=athlon64 -O2 -pipe -fprefetch-loop-arrays -DNDEBUG -DG_DISABLE_ASSERT" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://src.gentoo.pl" LANG="pl_PL@euro" LC_ALL="pl_PL.UTF-8" LINGUAS="pl en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X a52 aac aalib acl acpi alsa apache2 avi bash-completion bitmap-fonts blas bzip2 cdparanoia cdr crypt cscope cups doc dri dvd dvdr dvdread eds emboss emul-linux-x86 encode examples fam fastcgi ffmpeg fftw flac foomaticdb fortran gdbm gif gpm gstreamer gtk2 guile iconv imap imlib ipv6 jabber jpeg kde lapack libwww lm_sensors lzw lzw-tiff mad mbox memlimit mime mmap motif mp3 mpeg mpi nas ncurses netcdf nls nptl nptlonly ogg opengl pcmcia pcre pdflib perl php pic plotutils png posix postgres python qt quicktime readline ruby sasl sdl slang source spell sqlite ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd vorbis wifi wmf wxwindows xinerama xml xml2 xpm xv xvid ytruetype zlib linguas_pl linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Lukasz: Please always name the ebuild you're referring to in the summary.
Could you amd64 guys help me testing and providing a fix for this? Thanks.
not able to reproduce this with exactly the same use flags :/
Lukasz, can you still reproduce this error?
(In reply to comment #4) > Lukasz, can you still reproduce this error? > I've made a fresh install of workrave-1.8.1-r1 and it failed exactly at the same file.
Lukasz, please try it again with a newer version of binutils (2.16.1 is latest stable) and if it still fails, attach /var/tmp/portage/workrave-1.8.1-r1/work/workrave-1.8.1/config.log to the bug. I'm not able to reproduce this even with the same USE and CFLAGS, so I suspect it is binutils that causes problems
resolving as NEEDINFO for now, please reopen with the config.log if upgrading binutils doesn't help