[LLVMdev] llvm trunk build failed in cmake_install.cmake on ARM platform
Brad King
brad.king at kitware.com
Fri Feb 14 10:41:48 PST 2014
On 2/13/2014 3:58 PM, Rafael Avila de Espindola wrote:
> We try to change cmake's behaviour so that it uses $ORIGIN
> in the rpath, making the binaries relocatable. That might
> be falling in here for some reason.
Yes, we can see from the reported output:
>>>> [26815s] -- Installing: /home/abuild/rpmbuild/BUILDROOT/llvm-3.4.99-336.1.arm/usr/lib/libLLVMSupport.so
>>>> [26815s] CMake Error at lib/Support/cmake_install.cmake:45 (FILE):
>>>> [26815s] file RPATH_CHANGE could not write new RPATH:
>>>> [26815s]
>>>> [26815s] $ORIGIN/../lib
>>>> [26815s]
>>>> [26815s] to the file:
>>>> [26815s]
>>>> [26815s] /home/abuild/rpmbuild/BUILDROOT/llvm-3.4.99-336.1.arm/usr/lib/libLLVMSupport.so
>>>> [26815s]
>>>> [26815s] No valid ELF RPATH or RUNPATH entry exists in the file;
that CMake is trying to update the installed binary file's
RPATH to contain the $ORIGIN/../lib value. It complains
that no RPATH field at all is found in the file. The linker
may be dropping it for some reason, which is why I asked
Mathias to try:
>> just add -DCMAKE_BUILD_WITH_INSTALL_RPATH=1 to the cmake command line
We need to know whether this works. Either way, we also need
to see what the linker command line used to create the binary
in the build tree looks like.
-Brad
More information about the llvm-dev
mailing list