-
Notifications
You must be signed in to change notification settings - Fork 1k
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
0.2.138 breaks FreeBSD build (using cross) of cargo-hack #3025
Comments
cargo-hack builds fine for me in a real FreeBSD environment with libc 0.2.138. But your CI pipeline looks like it cross-builds from Linux. I don't know the cross-build process well enough to go further. |
@asomers Thanks for confirming. I could also build cargo-hack with setup-cross-toolchain-action/rust-cross-toolchain (taiki-e/cargo-hack#176), so this seems to be an issue specific to some cross-compilation environments. |
Filed cross-rs/cross#1166 to fix cross's build image. Also, it seems that a patch has been submitted to rust-lang/rust to make the same fix (rust-lang/rust#105222). |
1166: freebsd: include memstat in build image r=Emilgardis a=taiki-e libc 0.2.138 added memstat_* functions, but the build with cross fails because the build image does not contain the corresponding library. See rust-lang/libc#3025 for more context. See also rust-lang/rust#105222 which is the same fix to rust-lang/rust's build image. Co-authored-by: Taiki Endo <[email protected]>
The fix to cross has been merged -- closing as an issue of the cross-compilation environment. |
This does beg the question though: do we really want to put the libmemstat functions in libc? Or is it just bloat? They could always be moved to a new crate. |
After updating libc from 0.2.137 to 0.2.138, the FreeBSD build (using cross) of cargo-hack started failing.
Repro
With the following commands:
cargo install cross git clone https://github.com/taiki-e/cargo-hack.git cd cargo-hack git checkout ee05b26a764fe11f33da5e8eee30da7b11e2d8ae cross build --target x86_64-unknown-freebsd
I get the following error (full log: https://github.com/taiki-e/cargo-hack/actions/runs/3608985912/jobs/6081906097):
It seems this is related to #2998 that added memstat_* functions.
cc @devnexen
The text was updated successfully, but these errors were encountered: