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

Are there any plans to support "x86_64-unknown-linux-musl"? #41

Closed
saks opened this issue Apr 17, 2020 · 3 comments
Closed

Are there any plans to support "x86_64-unknown-linux-musl"? #41

saks opened this issue Apr 17, 2020 · 3 comments

Comments

@saks
Copy link

saks commented Apr 17, 2020

When I build my project under alpine linux I get this message:

error: cannot produce proc-macro for `fehler-macros v1.0.0` as the target `x86_64-unknown-linux-musl` does not support these crate types

Please suggest if there is any workaround.
Thank you.

@ubnt-intrepid
Copy link
Contributor

@saks The musl targets are statically linked to the native C runtime by default and you should explicitly disable the linking as follows (related issue: rust-lang/cargo#7563):

$ RUSTFLAGS="-C target-feature=-crt-static" cargo build

Note: this workaround was no longer needed by rust-lang/rust#69519 and the patch is contained in 1.44.0 (the current beta channel).

@withoutboats
Copy link
Owner

Thanks for finding the solution to this @ubnt-intrepid. This isn't an issue with fehler specifically, so I'll close it.

@saks
Copy link
Author

saks commented Apr 27, 2020

Thanks for the context and explanation @ubnt-intrepid !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants