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

ppc64le build issue #3626

Open
sumitd2 opened this issue Jul 14, 2023 · 6 comments
Open

ppc64le build issue #3626

sumitd2 opened this issue Jul 14, 2023 · 6 comments

Comments

@sumitd2
Copy link

sumitd2 commented Jul 14, 2023

What version of rules_go are you using?

0.41.0

What version of gazelle are you using?

0.31.1

What version of Bazel are you using?

6.1.0

Does this issue reproduce with the latest releases of all the above?

Yes

What operating system and processor architecture are you using?

Linux, ppc64le

Any other potentially useful information about your toolchain?

What did you do?

Build envoyproxy/envoy master

What did you expect to see?

Our build to succeed.

What did you see instead?

Our build is failing due to an "exec format error"

Hi team,

We are building a package (for the ppc64le architecture) called envoyproxy/envoy which uses bazel and rules_go. During the build it compiles a go binary, and then later executes it. We get an "exec format error" with the last tagged version of rules_go, but if we remove the following line it builds fine:
https://github.com/bazelbuild/rules_go/blob/d2a3cf2d6b18f5be19adccc6a6806e0c3b8c410b/go/private/platforms.bzl#L33

Please also note that this used to work fine with rules_go v0.33.0
https://github.com/bazelbuild/rules_go/blob/8a362829c17b92266f5e1e79cdc1cfc38ec3f86a/go/private/platforms.bzl#L29-L34

Can you please identify and fix the issue? Thanks.

@sumitd2
Copy link
Author

sumitd2 commented Jul 14, 2023

cc: @seth-priya

@sumitd2
Copy link
Author

sumitd2 commented Jul 18, 2023

cc: @clnperez

@clnperez
Copy link
Contributor

looks like another good reason to get our CI working on ppc64le again

#3336 introduced this for big endian support, so if we remove it we'd break that. i'm not sure how to make bazel build against the correct target if we overload that for both. maybe someone from the bazel team could help

@clnperez
Copy link
Contributor

@jayconrod do you still happen to be active here? you were super helpful getting ppc64le working several years ago :)

@evanj
Copy link
Contributor

evanj commented Jul 27, 2023

This seems to be at least tangentially related to #3531 where ppc64le cross-compile targets fail. That issue mentions something about CPU platforms and those same lines of code.

@clnperez
Copy link
Contributor

Thanks @evanj . It does seem related.

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