zkLLVM icon indicating copy to clipboard operation
zkLLVM copied to clipboard

[Possible bug] Symlinks creation doesn't take in count CMAKE_INSTALL_PREFIX

Open nemothenoone opened this issue 1 year ago • 2 comments

Describe the bug A CMAKE_INSTALL_PREFIX pre-configured installation fails with:

CMake Error at zkllvm/cmake/create-symlinks.cmake:12 (file): 
file failed to create symbolic link '/usr/bin/assigner': Operation not permitted
Call Stack (most recent call first): cmake_install.cmake:45 (include)

This means that the installation was only supposed to be done with root privileges, which is not always true.

To Reproduce How to reproduce the behavior:

cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=~/zkllvm/relwithdebinfo -DCMAKE_BUILD_TYPE=RelWithDebInfo -S zkllvm -B ~/zkllvm/relwithdebinfo && make -j$(nproc) install

Expected behavior Installation was supposed to succeed without requesting for root privileges

Toolchain versions https://github.com/NilFoundation/zkLLVM/commit/4e1357ac1f2b53127344b9fdfff13fab3eb09d0a

nemothenoone avatar Jan 02 '24 00:01 nemothenoone

PRs, synced with the current issue:

Note: Please do not edit this comment; it's generated automatically.

A fix worked partially, but unfortunately, still not fixed.

nemothenoone avatar Jan 19 '24 15:01 nemothenoone