Linker error for d.o: relocation R_X86_64_32 against `__dmd_personality_v0'

rcorre via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 20 05:04:45 PDT 2016


===
$ dmd /tmp/d.d
/usr/bin/ld: d.o: relocation R_X86_64_32 against 
`__dmd_personality_v0' can not be used when making a shared 
object; recompile with -fPIC
d.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
--- errorlevel 1
===

I'm seeing the above trying to compile a simple d program.

/tmp/d.d:
===
void main() { }
===

Any idea what this might be? I'm on dmd 2.071.0 on Archlinux.



More information about the Digitalmars-d-learn mailing list