[cfe-dev] `_ZNSsD1Ev' can not be used when making a shared object; recompile with -fPIC
James K. Lowden
jklowden at schemamania.org
Mon Apr 16 14:42:10 PDT 2012
I am attempting to build clang 3.0.99, as currently in pkgsrc-wip.
The build is interrupted by complaints about -fPIC, which *is* used.
The above discussion indicates a problem with "visibility".
I tried deleting the offending .o and restarting the build. That
inexplicably worked the first time the problem cropped up, but not for
the next file, Indexing.o:
gmake: Leaving directory
Linking Release Shared Library libclang.so
relocation R_X86_64_PC32 against `_ZNSsD1Ev' can not be used when
making a shared object; recompile with -fPIC ld: final link failed: Bad
value gmake: ***
[/usr/pkgsrc/wip/clang/work/llvm/Release/lib/libclang.so] Error 1
Apparently this is something that works for 32-bit mode but sometimes
not in 64-bit. Suggestions?
$ gcc -v
Using built-in specs.
Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure
--enable-long-long --disable-multilib --enable-threads
--host=x86_64--netbsd --target=x86_64--netbsd --enable-__cxa_atexit
Thread model: posix
gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)
More information about the cfe-dev