-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
firecracker compilation issue on openSUSE Tumbleweed x86_64 #3584
Comments
Hey Paolo, thanks for the report! I've had a quick look at this, and I think this is a bindgen-rs issue. The compilation error happens when the Could you check if you run into the same error if you only try to compile the userfaultfd crate in the same setup? If so, then As for an immediate fix, you could try downgrading clang to a version prior to 16, as that's when the change in clang got introduced. As an aside, I noticed that on Leap you're compiling firecracker 1.2, but on tumbleweed its 1.3.1, is that intended? |
Yes, I just started working on packaging 1.3.1 :) first I've gotta push it to TW, then I can forward it to Leap 15.5. Currently, on TW we have 1.2, but that also fails to compile on x86_64. |
Not sure how to do that. I'm kinda new to Rust, so my Cargo knowledge is limited. If you could kindly provide me with a branch that contains this fix, I can simply download it and test whether the compilation works 😄
Unfortunately, that it's not possible. |
So to verify that the issue is indeed in git clone https://github.com/bytecodealliance/userfaultfd-rs
cd userfaultfd-rs
cargo build which should fail with the same error you were getting above. There is no fixed branch yet that I'm aware of, but the patch for that crate should be diff --git userfaultfd-sys/Cargo.toml userfaultfd-sys/Cargo.toml
index 840d295..b08dd39 100644
--- userfaultfd-sys/Cargo.toml
+++ userfaultfd-sys/Cargo.toml
@@ -13,7 +13,7 @@ build = "build.rs"
cfg-if = "^1.0.0"
[build-dependencies]
-bindgen = { version = "^0.60.1", default-features = false, features = ["runtime"] }
+bindgen = { version = "^0.64.0", default-features = false, features = ["runtime"] }
cc = "1.0"
[features] You can try applying that to that repository and run Sorry for not checking all this myself btw, but I don't really know how to get my hands on clang 16 easily >.> |
thank you, I'll try your solution :) |
@paolostivanin does the solution provided above work for you? Thanks! |
the issue is fixed with the latest 1.3.2 update, thanks |
While compiling firecracker for openSUSE Tumbleweed x86_64, the compilation fails with:
please note that:
Please find attached logs both for Leap 15.5 x86_64 compiling fine and Tumbleweed x86_64 not compiling due to the aforementioned error.
leapOK.txt
tumbleweedFAIL.txt
The text was updated successfully, but these errors were encountered: