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

Bug 87546

Summary: gdesklets-core will only compile with -fPIC
Product: Gentoo Linux Reporter: Ioannis Aslanidis (RETIRED) <deathwing00>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: VERIFIED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ioannis Aslanidis (RETIRED) gentoo-dev 2005-04-01 04:58:57 UTC
I've tried compiling gdesklets-core with my standard cflags and it failed, telling me to compile _with_ -fPIC. Could anyone update the ebuild so it uses that flag by default?

x86_64-pc-linux-gnu-gcc -shared  .libs/utils.o  -L/usr/lib -L/usr/lib64 /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so  -march=k8 -momit-leaf-frame-pointer -Wl,--export-dynamic -Wl,-soname -Wl,libutils.so -o .libs/libutils.so
/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3-20050110/x86_64-pc-linux-gnu-gcc: gcc-wrapper: -m64 detected on the command line overrides implicit -m64 added by the wrapper.
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/utils.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
.libs/utils.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
distcc[15879] ERROR: compile (null) on localhost failed
make[2]: *** [libutils.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/gdesklets-core-0.33.1/work/gDesklets-0.33.1/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gdesklets-core-0.33.1/work/gDesklets-0.33.1'
make: *** [all] Error 2

!!! ERROR: gnome-extra/gdesklets-core-0.33.1 failed.
!!! Function gnome2_src_compile, Line 40, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Always
Steps to Reproduce:
1.




Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 29 2005, 15:58:35)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -pipe -momit-leaf-frame-pointer -fomit-frame-pointer
-ftracer -fforce-addr"
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/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -pipe -momit-leaf-frame-pointer -fomit-frame-pointer
-ftracer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks sandbox
userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.caliu.info/pub/gentoo/
http://linuv.uv.es/mirror/gentoo/ http://mirror.switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa arts audiofile avi bash-completion berkdb
bitmap-fonts bzlib ccache cdparanoia cdr crypt ctype cups curl directfb
divx4linux dvd dvdr dvdread encode esd ethereal fam fastcgi fbcon flac flash
font-server foomaticdb fortran ftp gdbm ggi gif gnome gpm gstreamer gtk gtk2 icq
imagemagick imlib ipv6 java jp2 jpeg junit kde lcms ldap lzw lzw-tiff mad mime
motif mozilla mp3 mpeg msn ncurses nls nptl offensive oggvorbis openal opengl
oss pam pdflib perl png portaudio posix ppds python qt quicktime readline recode
ruby samba scanner sdl sndfile spell ssl tcltk tcpd tiff truetype truetype-fonts
type1-fonts unicode usb userlocales wmf xine xml xml2 xmlrpc xmms xpm xrandr xv
xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-04-01 05:05:24 UTC
Looks like suddenly some ebuilds ask me for that...marking invalid for now.
Comment 2 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-04-01 12:29:33 UTC
It was a distcc problem.
Comment 3 bugs-gentoo.anon 2005-04-01 14:24:09 UTC
The distcc-ERROR is OK (Compile's failing so distcc reports an error).

Are you using 2005.0? Then you do have the -m64 Flag enabled by default. Except when using no-multilib-profil.

The solution is to remerge gcc-config 1.3.10-r2 or 1.4.0. In there the warning of the gcc-wrapper ("gcc-wrapper: -m64 detected on the command line overrides implicit -m64 added by the wrapper.") is removed. The warning confuses Configure.
Comment 4 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-04-01 15:37:01 UTC
There was no need to cross the commend, but thank you. I'll give that a shot as it looks like a functional workaround.