Skip to content
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

c2rust-bitfields-derive not compatible with musl libc? #243

Closed
samuela opened this issue Feb 26, 2020 · 3 comments
Closed

c2rust-bitfields-derive not compatible with musl libc? #243

samuela opened this issue Feb 26, 2020 · 3 comments
Labels
building Build/compile errors or build system-related

Comments

@samuela
Copy link
Contributor

samuela commented Feb 26, 2020

Per this error (samuela/rustybox#24 (comment)) it sounds like c2rust-bitfields-derive doesn't work with musl libc. But the Cargo.toml doesn't have anything that seems to indicate this (https://github.com/immunant/c2rust/blob/master/c2rust-bitfields-derive/Cargo.toml). Why is cargo complaining exactly? Is there any way to get c2rust-bitfields-derive compiling on musl libc?

@rinon
Copy link
Contributor

rinon commented Feb 26, 2020

This is because of an upstream incompatibility between proc macros and static linking. See rust-lang/rust#40174.

@kkysen kkysen changed the title c2rust-bitfields-derive not compatible with musl libc? c2rust-bitfields-derive not compatible with musl libc? Jun 29, 2022
@kkysen kkysen added the building Build/compile errors or build system-related label Jun 29, 2022
@kkysen
Copy link
Contributor

kkysen commented Jun 29, 2022

rust-lang/rust#40174 is now fixed. @samuela, is this still an issue?

@kkysen
Copy link
Contributor

kkysen commented Jun 29, 2022

cd c2rust-bitfields-derive && cargo build --target x86_64-unknown-linux-musl and cargo build --target x86_64-unknown-linux-musl in a test crate using #[derive(c2rust_bitfields::BitfieldStruct)] both worked, so I'm closing this as complete.

@kkysen kkysen closed this as completed Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build/compile errors or build system-related
Projects
None yet
Development

No branches or pull requests

3 participants