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

don't use buildmode=pie on ppc64 #42514

Merged
merged 1 commit into from Jun 11, 2021
Merged

Conversation

gyakovlev
Copy link
Contributor

- What I did
made sure buildmode=pie is not passed on ppc64 (big-endian)
- How I did it
added exception in hack/make/.binary
It's already omitted for ppc64 in
hack/dockerfile/install/install.sh
not using wildcard, because GOARCH=ppc64le supports pie

- How to verify it
apply provided patch and #42172
docker now builds and works on big-endian ppc64
- Description for the changelog

don't pass buildmode=pie on ppc64be

- A picture of a cute animal (not mandatory but encouraged)

@gyakovlev gyakovlev requested a review from tianon as a code owner June 11, 2021 00:26
@samuelkarp
Copy link
Member

made sure buildmode=pie is not passed on ppc64 (big-endian)

Why? Does Go not support this build mode on ppc64?

@gyakovlev
Copy link
Contributor Author

made sure buildmode=pie is not passed on ppc64 (big-endian)

Why? Does Go not support this build mode on ppc64?

it does not on big-endian ppc64.
but supports on ppc64le just fine

@gyakovlev
Copy link
Contributor Author

https://github.com/golang/go/blob/2ebe77a2fda1ee9ff6fd9a3e08933ad1ebaea039/src/cmd/internal/sys/supported.go#L88-L99

hack/make/.binary Outdated Show resolved Hide resolved
@gyakovlev
Copy link
Contributor Author

oops, I rebased too much. will fix soon.

It's already omitted for ppc64 in
hack/dockerfile/install/install.sh
not using wildcard, because GOARCH=ppc64le supports pie

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Copy link
Member

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@samuelkarp
Copy link
Member

CI failure appears to be another instance of #42459

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AkihiroSuda AkihiroSuda merged commit 7125e60 into moby:master Jun 11, 2021
@gyakovlev gyakovlev deleted the ppc64-buildmode branch June 11, 2021 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants