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

Symbiotic may fail to start when wrong clang binary is in PATH #216

Open
lzaoral opened this issue Feb 16, 2022 · 0 comments
Open

Symbiotic may fail to start when wrong clang binary is in PATH #216

lzaoral opened this issue Feb 16, 2022 · 0 comments
Labels

Comments

@lzaoral
Copy link
Contributor

lzaoral commented Feb 16, 2022

For example, if we use a Debian based system with a suitable ccache symlink disguised as clang and without unversioned LLVM binaries in PATH, the initial sanity clang check in environment.py will succeed, however, the check for the rest of LLVM binaries in runtime.py will fail. Even though the correct ones are linked in install/llvm-${VERSION}/bin.

symbiotic --debug=all --dump-env-cmd
[DBG] Argv: /home/runner/work/symbiotic/symbiotic/tests/../scripts/symbiotic --debug=all --dump-env-cmd
[DBG] Symbiotic dir: /home/runner/work/symbiotic/symbiotic
[DBG] Did not find a build of LLVM, checking the system LLVM
|> clang -v
[DBG] 'clang' is '/usr/lib/ccache/clang'
ERROR: Could not find 'opt' executable

Probably the safest solution is to warn the user that ccache was detected, try to remove it from PATH and restart the whole procedure.

@lzaoral lzaoral self-assigned this Feb 16, 2022
@lzaoral lzaoral added the bug label Dec 19, 2022
@lzaoral lzaoral removed their assignment Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant