-
-
Notifications
You must be signed in to change notification settings - Fork 680
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
Linux cross-compilation fails on Windows when golang.google.org/grpc is imported #1675
Comments
Does this work with |
Compiling from darwin has same issue, specifying In our case, our use of gRPC v1.13 does not have that import so as a work-around you can define |
@jayconrod quickly tested, getting
in the repository linked in the issue. Out of a hunch, I also tried with Will not dig deeper myself right now, but let me know if I can provide more information. |
I have the same error on MacOS
|
@Xjs I just tried to reproduce this again, but I ran into a crash (reported bazelbuild/bazel#6169). I'll look into this further soon. @arguile- Unfortunately, @mishudark Are you building this with a |
Although
third_party/org_golang_google_grpc/internal/channelz/BUILD.bazel.in
actually declares thegolang.org/x/sys/unix
dependency as a conditional dependency (https://github.com/bazelbuild/rules_go/blob/4f3399d8ff00b1fa20d8619cc13edece1420cbd0/third_party/org_golang_google_grpc/internal/channelz/BUILD.bazel.in#L33), when trying to build a linux_amd64 binary on a Windows host, I get the error message:(reproducable with https://github.com/Xjs/protoTest/tree/grpc_dependency)
I'm not sure why the conditional
select()
statement is not honoured in this case, but I get the feeling that it could lead to problems in other places as well.The text was updated successfully, but these errors were encountered: