-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
This happens during osxcross build, but I assume it should be filed here:
[100%] Linking CXX shared library ../../../../lib/libtapi.so
/usr/bin/ld: ../../../../lib/libLLVMSupport.a(regcomp.c.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../../../../lib/libLLVMSupport.a(regerror.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile
with -fPIC
/usr/bin/ld: ../../../../lib/libLLVMSupport.a(regexec.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -
fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [projects/libtapi/tools/libtapi/CMakeFiles/libtapi.dir/build.make:157: lib/libtapi.so.6.0.1] Error 1
I suppose there are two answers to this - add -fPIC to the building of libLLVMSupport.a (this I did), or disable the building of shared libtapi.so and make sure the rest works with a static libtapi.a
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels