ROCm / rocm-cmake

CMake modules used within the ROCm libraries
https://rocm.docs.amd.com/projects/ROCmCMakeBuildTools/en/latest/
MIT License
62 stars 43 forks source link

Error installing rocm-cmake #98

Closed JBBIntel closed 2 years ago

JBBIntel commented 2 years ago

I am trying to install rocm-cmake on Ubuntu 20.04. I am getting the following error;

:~/rocm-cmake/build$ cmake --build . --target install Install the project... -- Install configuration: "" -- Up-to-date: /opt/rocm/./share CMake Error at cmake_install.cmake:41 (file): file INSTALL cannot set permissions on "/opt/rocm/./share": Operation not permitted.

make: *** [Makefile:119: install] Error 1

cgmb commented 2 years ago

/opt is typically owned by root. The instructions in rocm-cmake's README should probably say sudo cmake --build . --target install

cgmb commented 2 years ago

I believe your problem will be resolved by using sudo cmake --build . --target install and have updated the documentation accordingly. If that does not fix the error you're seeing, please feel free to reopen.