How to build on Ubuntu 25 #1354
jorendorff
started this conversation in
General
Replies: 1 comment
-
based on the error message, it seem you try to compile 0.18 version. try using version from master |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I think the manual is out of date. The "installation" page says "C2Rust requires LLVM 6 or 7 and its corresponding libraries and clang compiler" and offers instructions for how to install C2Rust on Ubuntu 16.04, 18.04, and 18.10.
I have Ubuntu 25.04. The distribution packages LLVM versions 14, 15, 17, 18, 19, and 20. I think it should still be possible to build
c2rust
at least, but I haven't yet figured out how to do it. It definitely isn't compatible with the LLVM 20 include files.I tried every environment variable I could think of to convince the build to use LLVM 17, but
c2rust-ast-exporter
still fails to build with errors indicating it's incorrectly including LLVM 20 files:I was able to build C2Rust in a
buster
VM, but it seems like since this project has folks actively working on it, it ought to build on current OSes; what am I missing? Thanks.Beta Was this translation helpful? Give feedback.
All reactions