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

Bug 624006

Summary: app-emulation/vice-2.4.31 : /.../ld: ../.../libresid.a(sid.o): relocation R_X86_64_32S against `.rodata.cst16' can not be used when making a shared object; recompile with -fPIC
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: adam, gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 648890    
Bug Blocks:    
Attachments: emerge-info.txt
app-emulation:vice-2.4.31:20170706-074154.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2017-07-06 16:15:55 UTC
Making all in p64
Making all in platform
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/resid/libresid.a(sid.o): relocation R_X86_64_32S against `.rodata.cst16' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/resid/libresid.a(wave.o): relocation R_X86_64_32 against symbol `_ZN5reSID17WaveformGenerator10model_waveE' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/resid/libresid.a(envelope.o): relocation R_X86_64_32 against symbol `_ZN5reSID17EnvelopeGenerator9model_dacE' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/resid/libresid.a(filter.o): relocation R_X86_64_32 against symbol `_ZN5reSID6Filter12model_filterE' can not be used when making a shared object; recompile with -fPIC

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-systemd_20170627-203711

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 *
Comment 1 Toralf Förster gentoo-dev 2017-07-06 16:15:59 UTC
Created attachment 481262 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-06 16:16:01 UTC
Created attachment 481264 [details]
app-emulation:vice-2.4.31:20170706-074154.log
Comment 3 Toralf Förster gentoo-dev 2017-07-06 16:16:05 UTC
Created attachment 481266 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-07-06 16:16:08 UTC
Created attachment 481268 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-07-06 16:16:11 UTC
Created attachment 481270 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-06 16:16:14 UTC
Created attachment 481272 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-07-06 16:16:17 UTC
Created attachment 481274 [details]
temp.tbz2
Comment 8 Torsten Kurbad 2018-01-01 16:48:37 UTC
FYI: vice-3.1 (cf. #618698) builds just fine with the 17.0 profile.

I just renamed the existing ebuild and it compiled cleanly against gtk2.
Comment 9 Ulf Dambacher 2018-01-07 14:56:05 UTC
I installed this by manually setting -fPIC within the c-flags:

export CFLAGS=-fPIC
export CXXFLAGS=-fPIC
export LDFLAGS=-fPIC

and then I manually ran the ebuild using

ebuid /usr/portag/app-emulation/vice/vice-2.4.31.ebuild configure compile install qmerge clean
Comment 10 Pacho Ramos gentoo-dev 2018-06-27 15:00:03 UTC
please retest with 3.1, it compiles ok for me
Comment 11 Torsten Kurbad 2018-07-03 16:39:25 UTC
(In reply to Pacho Ramos from comment #10)
> please retest with 3.1, it compiles ok for me

Works, thank you!