https://bugs.llvm.org/show_bug.cgi?id=45612
Bug ID: 45612
Summary: "make install" uses /usr/lib/ocaml/llvm, not
CMAKE_INSTALL_PREFIX
Product: Build scripts
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: cmake
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
$ git clone https://github.com/llvm/llvm-project.git
$ mkdir build install
$ cd build
$ cmake -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=$(readlink -f $PWD/../install) -G "Unix Makefiles"
../llvm-project/llvm
$ make -j 32
$ make install
. . .
-- Installing: /home/salmin/screen/llvm-build/install/lib/libLLVMXRay.a
-- Installing:
/home/salmin/screen/llvm-build/install/lib/libLLVMWindowsManifest.a
CMake Error at bindings/ocaml/llvm/cmake_install.cmake:49 (file):
file cannot create directory: /usr/lib/ocaml/llvm. Maybe need
administrative privileges.
Call Stack (most recent call first):
bindings/ocaml/cmake_install.cmake:42 (include)
cmake_install.cmake:71 (include)
Makefile:61: recipe for target 'install' failed
make: *** [install] Error 1
I'm running Linux Ubuntu 18.04.3
Reproducible with both Debug and RelWithDebInfo builds.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs