gdc-0.23 x86_64 can't create shared objects?

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Tue Mar 6 06:59:52 PST 2007


Neal Becker wrote:
> gdc-0.23 x86_64 can't create shared objects?
> cd /home/nbecker/
> gdc -g -o test2.so -shared -fpic -v test2.d -Wall
[snip]
> /usr/bin/ld: /home/nbecker/gdc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../lib64/libgphobos.a(deh.o): relocation R_X86_64_32 against `_D39TypeInfo_AS3gcc3deh18OurUnwindException6__initZ' can not be used when making a shared object; recompile with -fPIC

Did you try it with -fPIC instead of -fpic like the error message suggests?
(Or if that doesn't work, perhaps try recompiling libgphobos with that 
option; I'm not sure what exactly the message means)


More information about the D.gnu mailing list