Bug 17107 – Runnign phobos unittests do not work with PIE
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2017-01-18T15:09:04Z
Last change time
2017-12-12T06:21:43Z
Keywords
pull
Assigned to
No Owner
Creator
deadalnix
Comments
Comment #0 by deadalnix — 2017-01-18T15:09:04Z
$ make -f posix.mak
[...]
/usr/bin/ld: generated/linux/debug/64/unittest/test_runner.o: relocation R_X86_64_32 against symbol `__dmd_personality_v0' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Comment #1 by greeenify — 2017-02-15T00:31:39Z
- What compiler do you use as a host?
- Did you try to recompile with -fPIC?
- Did you clean your entire local cache (maybe finding left over from non fPIC builds?)