-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Build fails on -musl
targets because of proc_macro
#52
Comments
Yes unfortunately this can't be solved in the near future, you'll want to be sure that when cross-compiling you're not enabling the |
@alexcrichton Unfortunately I'm pretty sure it also doesn't work without The best solution for now is probably to add a |
Oh oops right! Forgot that there were stable things in In that case yeah, let's have an on-by-default feature for that perhaps? |
Yeah, I think that's probably the best option we've got right now. Technically a breaking change for anyone using --no-default-features though. |
Thanks for casting some light on this. I'll see what the status quo is in rustc. Is there any workaround I can introduce in a fork of this repo and the dependent crates in my project? |
@drozdziak1 maybe this documentation will help? Also out of curiosity, what's your use case for using the proc-macro2 crate on musl? |
@alexcrichton Thank you! I'm sure this will come in handy I'm working on Althea, an incentivized mesh network project. We're building a router firmware using OpenWrt and we're using Rust for the most part. My role was to set up a package definition in OpenWrt to cross-build our Rust binaries and it was going pretty well when this issue creeped out. AFAIR it was OpenWrt itself uses |
@drozdziak1 hm are you parsing Rust code on the device itself? If not this may be a mistake actually, Do you have a way to reproduce this error? |
It's pretty convoluted to reproduce. But from what |
@drozdziak1 it may be due to this perhaps? |
@alexcrichton Yeah, but |
@drozdziak1 I think |
The released version of |
@dtonlay This is the |
I think it used to show |
I'm using a workspace in my package and also some dependencies have their version unspecified ( |
Okay. I've seen many things and read a lot of docs. Why doesn't this crate specify |
@drozdziak1 the |
@alexcrichton But doesn't using |
@drozdziak1 I'm getting sort of lost in this and I'm not sure it's going anywhere. Is there still a bug for you? Did removing the linkage to |
Hi there,
I'm cross-building (OpenWrt with
musl
, nightly from 2018-01-09) a package that indirectly depends on this crate. Unfortunately the build fails due to the crateproc_macro
missing. AFAIK this is due to a Rust compiler gimmick but I'm not sure how to approach this problem. I've got a couple questions:I'd really appreciate your thoughts on this.
Thank you,
Stanisław
The text was updated successfully, but these errors were encountered: