Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nemothenoone opened this issue Jan 2, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nemothenoone
Copy link
Member

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
4e1357a

@nemothenoone nemothenoone added the bug Something isn't working label Jan 2, 2024
@nil-foundation-cicd-bot
Copy link

nil-foundation-cicd-bot bot commented Jan 10, 2024

PRs, synced with the current issue:

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

@nemothenoone
Copy link
Member Author

nemothenoone commented Jan 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants