-
Notifications
You must be signed in to change notification settings - Fork 257
Unable to link grpcio on musl #327
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
Comments
This should be a known problem of rustc (rust-lang/rust#36710) and it's the expected behavior. |
@ice1000 thank you for your reply. Just to be clear: are you saying that grpc-rs cannot be linked on musl due to a known limitation of rustc? |
It's possible to have workarounds (there are many comments saying that they have successfully linked musl (not sure if they're using GNU C runtime as well) in the rustc issue), but I haven't spent any effort on trying to do so so the answer is "I'm not sure". |
I've followed the proposed workaround, unfortunately it didn't work out, as I got the following error:
I created a repository with all the necessary files to automatically setup a reproducible environment: https://github.com/gliderkite/grpcrs-musl If there is any error in my setup, or this is indeed expected behavior, please let me know. |
I am also having this same issue. Do we have a workaround? Do we know the root cause? If we pointed to a grpc built specifically for musl, do we expect the error to go away? Are there any gotchas I should be aware of in case I try to do this? |
Heads up this is still an issue with musl:
|
I am unable to link any crate that uses
grpc-rs
as dependency, when using the targetx86_64-unknown-linux-musl
.The error that I get involves multiples
undefined references to __dso_handle
:The minimal working cargo project example to reproduce the issue is the following.
Project structure:
Cargo.toml
build.rs
proto/service.proto
src/main.rs
src/protos/mod.rs
I am using
rustc 1.35.0 (3c235d560 2019-05-20)
, and building the crate withcargo build --target=x86_64-unknown-linux-musl
.The text was updated successfully, but these errors were encountered: