Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339798 - kde-base/solid - ld: CMakeFiles/kcm_solid.dir/kcmsolid.o: relocation R_X86_64_32 against `KcmSolid::staticMetaObject' can not be used when making a shared object; recompile with -fPIC
Summary: kde-base/solid - ld: CMakeFiles/kcm_solid.dir/kcmsolid.o: relocation R_X86_64...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-05 09:43 UTC by Oleh Kravchenko
Modified: 2010-11-14 20:51 UTC (History)
0 users

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


Attachments
build.log (build.log,21.93 KB, text/plain)
2010-10-06 09:14 UTC, Oleh Kravchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh Kravchenko 2010-10-05 09:43:42 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/kcm_solid.dir/kcmsolid.o: relocation R_X86_64_32 against `KcmSolid::staticMetaObject' can not be used when making a shared object; recompile with -fPIC
CMakeFiles/kcm_solid.dir/kcmsolid.o: could not read symbols: Bad value

Reproducible: Always

Steps to Reproduce:
1. emerge -1 =dev-util/cmake-2.8.1-r2
2. emerge -1 kde-base/solid




emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.35-ck-r3 x86_64)
=================================================================
System uname: Linux-2.6.35-ck-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 05 Oct 2010 09:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -mtune=core2  -mcx16 -msahf -msse4.1     -fomit-frame-pointer    --param l1-cache-size=32        --param l1-cache-line-size=64   --param l2-cache-size=6144"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core2 -mtune=core2  -mcx16 -msahf -msse4.1   -fomit-frame-pointer    --param l1-cache-size=32        --param l1-cache-line-size=64   --param l2-cache-size=6144"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news noinfo parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.linux.kiev.ua/pub/Linux/Gentoo"
LANG="uk_UA.UTF-8"
LC_ALL="uk_UA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru uk us en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kaa /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 berkdb bzip2 cli consolekit cracklib crypt cups custom-cflags custom-cpuopts custom-optimization cxx dbus dri fortran gallium gdbm gnutls gpm hal iconv kde lm_sensors logrotate mmx modules mudflap multilib ncurses nls nptl nptlonly nss opengl openmp pam pch pcre ppp pppd qt3support qt4 readline reflection semantic-desktop session sse sse2 sse3 sse4 ssl ssse3 sysfs tcpd threads thumbnail unicode vim-syntax xinerama xorg xscreensaver zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru uk us en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa fbdev intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-10-05 18:38:34 UTC
Please attach the entire kde-base/solid build log.
Comment 2 Oleh Kravchenko 2010-10-06 09:14:56 UTC
Created attachment 249730 [details]
build.log
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2010-11-14 14:27:47 UTC
Maybe you should try to simplify your CFLAGS, and see if this helps. 

You dont need to run the actual compile phase, it's enough to do the configure and check if the line "Linker flags: Shared" contains -fPIC

No idea why this happens though...


-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -O2 -pipe -march=core2 -mtune=core2  -mcx16 -msahf -msse4.1 	-fomit-frame-pointer 	--param l1-cache-size=32 	--param l1-cache-line-size=64 	--param l2-cache-size=6144 
C++             -O2 -pipe -march=core2 -mtune=core2  -mcx16 -msahf -msse4.1 	-fomit-frame-pointer 	--param l1-cache-size=32 	--param l1-cache-line-size=64 	--param l2-cache-size=6144 
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2010-11-14 14:34:33 UTC
(In reply to comment #3)
> Maybe you should try to simplify your CFLAGS, and see if this helps. 
> 

err.. forget about the remarks about the Linker flags, that's nonsense, sorry
Comment 5 Oleh Kravchenko 2010-11-14 20:48:48 UTC
Hm.. I think i found the solution :)

make.conf CFLAGS was:
CFLAGS="-O2 -pipe -march=core2 -mtune=core2  -mcx16 -msahf -msse4.1 \
<TAB>-fomit-frame-pointer \
<TAB>--param l1-cache-size=32 \
<TAB>--param l1-cache-line-size=64 \
<TAB>--param l2-cache-size=6144"

make.conf CFLAGS now is:
CFLAGS="-O2 -pipe -march=core2 -mtune=core2  -mcx16 -msahf -msse4.1 \
<SPACE>-fomit-frame-pointer \
<SPACE>--param l1-cache-size=32 \
<SPACE>--param l1-cache-line-size=64 \
<SPACE>--param l2-cache-size=6144"

Now kde-base/solid compiled ok :)