c2rust icon indicating copy to clipboard operation
c2rust copied to clipboard

Build failed on Ubuntu 2310 with llvm-16.0.6

Open ahaoboy opened this issue 2 years ago • 2 comments

Using llvm-15 as an alternative option runs successfully. https://github.com/immunant/c2rust/issues/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

ahaoboy avatar Dec 03 '23 09:12 ahaoboy

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

kkysen avatar Dec 03 '23 09:12 kkysen

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.

ahaoboy avatar Dec 04 '23 01:12 ahaoboy