<html><head><meta content="text/html; charset=windows-1252" http-equiv="Content-Type"></head><body><div><div style="font-family: Calibri,sans-serif; font-size: 11pt;">Hi everyone, sorry to bother you guys. I’m moving a linux application that uses LLVM from version 3.0 to 3.2, and I’m getting a relocation error that I didn’t used to get with the older version of LLVM. I believe that I correctly turned on fPIC, but I’m getting this warning anyway:<br><br>/usr/bin/ld: /scratch/thirdparty/default/lib/libLLVMBitReader.a(BitcodeReader.o): relocation R_X86_64_PC32 against `llvm::Use::set(llvm::Value*)' can not be used when making a shared object; recompile with -fPIC<br><br>/usr/bin/ld: final link failed: Bad value<br><br>Does anyone have an idea what the issue might be? <br><br>// make command line for BitCodeReader.o<br><br>if g++ -I/home/damien/llvm32/build2/include -I/home/damien/llvm32/build2/lib/Bitcode/Reader -I/home/damien/llvm32/llvm-3.2.src/include -I/home/damien/llvm32/llvm-3.2.src/lib/Bitcode/Reader -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fvisibility-inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fPIC -c -MMD -MP -MF "/home/damien/llvm32/build2/lib/Bitcode/Reader/Release/BitcodeReader.d.tmp" -MT "/home/damien/llvm32/build2/lib/Bitcode/Reader/Release/BitcodeReader.o" -MT "/home/damien/llvm32/build2/lib/Bitcode/Reader/Release/BitcodeReader.d" /home/damien/llvm32/llvm-3.2.src/lib/Bitcode/Reader/BitcodeReader.cpp -o /home/damien/llvm32/build2/lib/Bitcode/Reader/Release/BitcodeReader.o ; \<br><br> then /bin/mv -f "/home/damien/llvm32/build2/lib/Bitcode/Reader/Release/BitcodeReader.d.tmp" "/home/damien/llvm32/build2/lib/Bitcode/Reader/Release/BitcodeReader.d"; else /bin/rm "/home/damien/llvm32/build2/lib/Bitcode/Reader/Release/BitcodeReader.d.tmp"; exit 1; fi<br><br>g++ version is 4.6.3<br> <br>Thanks,<br><br> Damien<br></div></div></body></html>