Summary: | sys-apps/likwid-3.1.3: ./GCC/store_mem.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC ./GCC/store_mem.o: error adding symbols: Bad value | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Brendan Horan <brendan> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | aoaaxy+gentoobugzilla, hardened, proxy-maint, zazdxscf+bugs.gentoo.org |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge log
likwid-3.1.3-r1.ebuild |
Description
Toralf Förster
2015-03-31 13:23:30 UTC
I am honesty not sure what the cause of this is. I can't reproduce it on my non hardened Gentoo install(s). The main diffrence seems to be that the reporter is using hardened profiles, but I could be missing something too. I don't feel biulding the entire source with -fpic is correct? Then again I am not sure. Some help or guidance :) failing that I will set up a hardened gentoo install later on and try repoduce this. It is definitely a hardened problem. Today I set up few fresh ~amd64 tinderbox chroot images, at 2 unstable it emerged fine, but not at a hardened unstable. FWIW the setup was amde with http://www.zwiebeltoralf.de/pub/tbs.sh Created attachment 401144 [details]
likwid-3.1.3-r1.ebuild
I've attached an ebuild that forces likwid to build as shared lib not static.
Not sure if this will solve your problem.
Let me know if you can test it, otherwise I will try create a test environment with your script.
(In reply to Brendan Horan from comment #4) > Let me know if you can test it, otherwise I will try create a test > environment with your script. tested it, but same result: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/ld: ./GCC/store_mem.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC ./GCC/store_mem.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status Makefile:198: recipe for target 'likwid-perfctr' failed make: *** [likwid-perfctr] Error 1 * ERROR: sys-apps/likwid-3.1.3-r1::toralf failed (compile phase): * emake failed (In reply to Toralf Förster from comment #5) > (In reply to Brendan Horan from comment #4) > > > Let me know if you can test it, otherwise I will try create a test > > environment with your script. > > tested it, but same result: > Thanks for your time to test. I will need to keep looking, I will try ask the hardened guys as well. Well, here's a similar with at games-emulation/yabause-0.9.14 : /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/ld: ../libyabause.a(linkage_x64.s.o): relocation R_X86_64_32S against `master_ip' can not be used when making a shared object; recompile with -fPIC ../libyabause.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status src/gtk/CMakeFiles/yabause-gtk.dir/build.make:659: recipe for target 'src/gtk/yabause' failed make[2]: *** [src/gtk/yabause] Error 1 make[2]: Leaving directory '/var/tmp/portage/games-emulation/yabause-0.9.14/work/yabause-0.9.14_build' CMakeFiles/Makefile2:194: recipe for target 'src/gtk/CMakeFiles/yabause-gtk.dir/all' failed make[1]: *** [src/gtk/CMakeFiles/yabause-gtk.dir/all] Error 2 make[1]: Leaving directory '/var/tmp/portage/games-emulation/yabause-0.9.14/work/yabause-0.9.14_build' Makefile:136: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: games-emulation/yabause-0.9.14::gentoo failed (compile phase): * emake failed ----------------------------------------------------------------- This is an stable amd64 chroot image (named amd64-hardened-stable_20150621-115101) at a hardened host acting as a tinderbox. Thanks for more examples Toralf. I am still not sure the best way to fix this yet to be honest :) I would love to fix it. Version is not in tree anymore. |