Closed jtesta closed 1 week ago
FYI, I dusted off an old Ubuntu 20.04 VM, and managed to successfully install c2rust with the above instructions.
Thanks for the detailed report. This kind of breakage happens after new versions of clang are released since we rely on internals of the clang AST. I don't have access to a ubuntu 24.04 box right now but I bet if you try with an older version, it will build correctly on 24.04. That is not to say that we don't need to fix this issue; we definitely should.
@jtesta can you try PR #1100 and let me know if it fixes the issue for you?
Yep, that works!:
$ git clone https://github.com/immunant/c2rust.git
$ git fetch origin pull/1100/head:pr1100
$ git checkout pr1100
$ cargo install --git file:///home/user/c2rust c2rust
[...]
Compiling c2rust v0.18.0 (/home/user/.cargo/git/checkouts/c2rust-c49f1e3fd59cf9fe/d81b148/c2rust)
Finished release [optimized] target(s) in 4m 14s
Installing /home/user/.cargo/bin/c2rust
Installing /home/user/.cargo/bin/c2rust-transpile
Installed package `c2rust v0.18.0 (file:///home/user/c2rust#d81b1483)` (executables `c2rust`, `c2rust-transpile`)
warning: be sure to add `/home/user/.cargo/bin` to your PATH to be able to run the installed binaries
Thanks for the quick fix!
On a fresh and fully updated Ubuntu 24.04 VM, building and installing directly from git fails.
I installed the documented prerequisites with:
Then I ran:
I've attached the full output of the above command, as it is too long to include inline: ubuntu24_git_build_failure_output.txt