[all-commits] [llvm/llvm-project] 26d659: [polly][cmake] Don't build LLVMPolly.so without PIC
rorth via All-commits
all-commits at lists.llvm.org
Thu Aug 27 02:01:48 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 26d659bbe08028c0e04ddc3f4c698a995f41a131
https://github.com/llvm/llvm-project/commit/26d659bbe08028c0e04ddc3f4c698a995f41a131
Author: Rainer Orth <ro at gcc.gnu.org>
Date: 2020-08-27 (Thu, 27 Aug 2020)
Changed paths:
M polly/CMakeLists.txt
M polly/cmake/CMakeLists.txt
M polly/lib/CMakeLists.txt
Log Message:
-----------
[polly][cmake] Don't build LLVMPolly.so without PIC
A build on `sparcv9-sun-solaris2.11` with `-DLLVM_ENABLE_PIC=Off` failed
linking `LLVMPolly.so`:
[2277/2297] Linking CXX shared module lib/LLVMPolly.so
FAILED: lib/LLVMPolly.so
[...]
ld: fatal: relocation error: R_SPARC_H44: file tools/polly/lib/CMakeFiles/obj.Polly.dir/Analysis/DependenceInfo.cpp.o: symbol .data._ZL16__gthread_active (section): invalid shared object relocation type: ABS44 code model unsupported
[...]
As on many other targets, one cannot link non-PIC objects into a shared
object on Solaris/sparcv9.
The following patch avoids this by not building the library without PIC.
It allowed the build to finish.
Differential Revision: https://reviews.llvm.org/D85627
More information about the All-commits
mailing list