Raghavendra K
2013-May-22 16:06 UTC
[LLVMdev] Linking Debug+Asserts Shared Library libclang.so: final link failed: Bad value
Hi, 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 regards ragha
Caldarale, Charles R
2013-May-22 17:50 UTC
[LLVMdev] Linking Debug+Asserts Shared Library libclang.so: final link failed: Bad value
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Raghavendra K > Subject: [LLVMdev] Linking Debug+Asserts Shared Library libclang.so: final link failed: Bad value> llvm[4]: Linking Debug+Asserts Shared Library libclang.so > /usr/lib64/gcc/x86_64-suse-linux/4.1.2You might want to consider trying a version of gcc that's less than six years old. Note that there are several entries for problems with that version of gcc: http://llvm.org/docs/GettingStarted.html#broken-versions-of-gcc-and-other-tools but not enough detail to know if any of those are related to what you're seeing. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Raghavendra K
2013-May-23 05:02 UTC
[LLVMdev] Linking Debug+Asserts Shared Library libclang.so: final link failed: Bad value
Thanks. I removed the following entry in Makefile.config and everything is built. # Use -fvisibility-inlines-hidden? ENABLE_VISIBILITY_INLINES_HIDDEN := 0 regards ragha ________________________________________ From: Caldarale, Charles R [Chuck.Caldarale at unisys.com] Sent: Wednesday, May 22, 2013 11:20 PM To: Raghavendra K; llvmdev at cs.uiuc.edu Cc: Arvind Saraswat; Linxiaowen Subject: RE: [LLVMdev] Linking Debug+Asserts Shared Library libclang.so: final link failed: Bad value> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Raghavendra K > Subject: [LLVMdev] Linking Debug+Asserts Shared Library libclang.so: final link failed: Bad value> llvm[4]: Linking Debug+Asserts Shared Library libclang.so > /usr/lib64/gcc/x86_64-suse-linux/4.1.2You might want to consider trying a version of gcc that's less than six years old. Note that there are several entries for problems with that version of gcc: http://llvm.org/docs/GettingStarted.html#broken-versions-of-gcc-and-other-tools but not enough detail to know if any of those are related to what you're seeing. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Maybe Matching Threads
- [LLVMdev] Linking Debug+Asserts Shared Library libclang.so: final link failed: Bad value
- [LLVMdev] Getting strcut member attributes
- Is there a C++ API for libclang to have full access to the AST ?
- [LLVMdev] libclang parsing bug
- [LLVMdev] Building clang + libc++ + libc++abi