[llvm-bugs] [Bug 45612] New: "make install" uses /usr/lib/ocaml/llvm, not CMAKE_INSTALL_PREFIX
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Apr 19 13:18:01 PDT 2020
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: unassignedbugs at nondot.org
Reporter: alexey.salmin at gmail.com
CC: llvm-bugs at lists.llvm.org
$ 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200419/3c7683e9/attachment.html>
More information about the llvm-bugs
mailing list