Build error kdebase on amd64 platform: relocation R_X86_64_32S against `a local symbol'
esken at kde.org
Sun May 18 23:39:09 BST 2008
Am Montag, 19. Mai 2008 schrieb Christian Esken:
> Am Montag, 19. Mai 2008 schrieb Christian Esken:
> > Hello,
> > I receive the following error message when building trunk:
> > kde at firefly:/SVN/kdebase/obj> make
> > Linking CXX shared module ../../../lib/kcm_pci.so
> > /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../lib64/libpci.a(access.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> > /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../lib64/libpci.a: could not read symbols: Bad value
> > collect2: ld returned 1 exit status
> > make: *** [lib/kcm_pci.so] Fehler 1
> > make: *** [apps/kinfocenter/pci/CMakeFiles/kcm_pci.dir/all] Fehler 2
> > make: *** [all] Fehler 2
> > The message suggests to build with -fPIC. OK, as a workaround I changed the CMAKE_BUILD_TYPE from "debugfull" to "Release", and the compiler c++ now uses -fPIC . The build error, though, is the same. Is there a known workaround for this issue?
> > BTW: The page http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/69efa81af7fc0bf5 reports similar issues with kdepim under amd64, so it seems not to be specific to CPU architecture and not me.
> Correction - removing the 'not': "[...] seems to be specific to CPU architecture and not me."
OK, I found Thiagos post on kde-devel from 2008-04-25 21:50:49 (complier bug). Looks I need to find myself a newer compiler than "g++-4.2 (GCC) 4.2.1 (SUSE Linux)". It's probably easier to wait for SuSE11.0 (one month to go).
Things should be made as simple as possible, but no simpler.
- Albert Einstein
More information about the kde-core-devel