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

Build failed on Ubuntu 2310 with llvm-16.0.6 #1048

Open
ahaoboy opened this issue Dec 3, 2023 · 2 comments
Open

Build failed on Ubuntu 2310 with llvm-16.0.6 #1048

ahaoboy opened this issue Dec 3, 2023 · 2 comments
Labels
building Build/compile errors or build system-related

Comments

@ahaoboy
Copy link

ahaoboy commented Dec 3, 2023

Using llvm-15 as an alternative option runs successfully. #1042

apt install llvm-15 clang-15 libclang-15-dev -y
LLVM_CONFIG_PATH=llvm-config-15 LIBCLANG_PATH=/usr/lib/llvm-15/lib/libclang.so cargo install c2rust

Error log

log,txt

@kkysen
Copy link
Contributor

kkysen commented Dec 3, 2023

Hi! You shouldn't need to set LIBCLANG_PATH. Is it still erroring if you don't set that?

@kkysen kkysen added the building Build/compile errors or build system-related label Dec 3, 2023
@ahaoboy
Copy link
Author

ahaoboy commented Dec 4, 2023

Hi! You shouldn't need to set LIBCLANG_PATH. Is it still erroring if you don't set that?

Yes, the default LLVM version for Ubuntu 2310 is 16. When trying to directly use 'cargo install c2rust,' an error occurs. To successfully install it, I need to install LLVM-15 and set the LLVM_CONFIG_PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build/compile errors or build system-related
Projects
None yet
Development

No branches or pull requests

2 participants