Red Hat Bugzilla – Bug 455502
[PATCH] llvm interpreter needs -fPIC
Last modified: 2009-03-13 14:35:39 EDT
Description of problem:
LLVMInterpreter.o is compiled without relocation and cannot be used in shared
libraries (e.g. OpenGTL).
Version-Release number of selected component (if applicable):
2.2 - 2.3-2
Steps to Reproduce:
1. Download OpenGTL sources (http://opengtl.org/Download.html)
2. Attempt to build OpenGTL
Linking CXX shared library libGTLCore.so
/usr/bin/ld: /usr/lib64/llvm/LLVMInterpreter.o: relocation R_X86_64_32 against
`a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/llvm/LLVMInterpreter.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
There is a patch also available at http://opengtl.org/Download.html.
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.
More information and reason for this action is here:
This is needed for compiling pure as well. I'll issue an update.
llvm-2.4-3.fc10 has been submitted as an update for Fedora 10.
llvm-2.4-4.fc10 has been submitted as an update for Fedora 10.
llvm-2.4-4.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update llvm'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-2395
llvm-2.4-4.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.