Cannot link with libphobos2.a with GCC 6.2 on Ubuntu 16.10

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 13 10:02:32 PDT 2016


I just upgraded my Ubuntu to 16.10 and now my rebuilding of dmd 
from git master fails as

/usr/bin/ld: idgen.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: 
/usr/lib/x86_64-linux-gnu/libphobos2.a(object_a_66e.o): 
relocation R_X86_64_32 against symbol `__dmd_personality_v0' can 
not be used when making a shared object; recompile with -fPIC

What's wrong?

Am I using the wrong GCC version? Should I use GCC 5 instead?

GCC 6.2 is default on 16.10.


More information about the Digitalmars-d-learn mailing list