[LLVMdev] Linking Debug+Asserts Shared Library libclang.so: final link failed: Bad value

Raghavendra K raghavendrak at huawei.com
Wed May 22 09:06:58 PDT 2013


I downloaded latest 3.2 release of llvm and clang.
used configure to generate the make files
options used:
 ../configure --enable-debug-symbols=yes --enable-keep-symbols=yes --enable-pic=yes  --enable-keep-symbols=yes --enable-debug-runtime=yes --enable-optimized=no --enable-targets=x86 --enable-embed-stdcxx=yes --enable-jit=no CXXFLAGS=-fPIC CFLAGS=-fPIC

Now i get this strange error,cannot link, pls help...how to proceed.

llvm[4]: Linking Debug+Asserts Shared Library libclang.so
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: /home1/ragha/llvmsrc/llvm-3.2.src/build/tools/clang/tools/libclang/Debug+Asserts/ARCMigrate.o: relocation R_X86_64_PC32 against `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::data() const@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status


More information about the llvm-dev mailing list