-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: invalid offset for DS form load/store 00376 while building kubernetes binaries on ppc64le platform #42181
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
Looks like it is storing the arg into the wrong offset before a call. |
@dr2chase may be related to call lowering. Maybe we didn't put the right offset in some case? |
Looks plausible that this is related to call lowering. Does reproducing this require that I run it on a PPC, or can I just specify GOARCH and GOLANG? |
Since it is a compile-time error, you probably can reproduce by doing a cross compilation. On the other hand, building Kubernetes is a painful process... |
I am learning that. I like how the "cross" target doesn't tell me where to find the list of all the stuff it cross-compiles for -- who would ever need to know that?. I've been git-grepping and editing, thus far with no success in pruning the build. |
This looks wrong. Consider what happens if a boolean field precedes a pointer:
There is nonetheless something peculiar about PPC here, versus the other architectures. |
Maybe the file you are looking for is hack/lib/golang.sh? I have been able to isolate the failing compile command on a ppc64le, but not sure how to get anything useful from there since the compile fails. If there is something I can generate let me know. |
I have what looks like a fix, testing it now to see if it broke anything else. |
I am a little mystified at the code I included above; perhaps in the AUTO case it simply does not matter. The bug in my code is that it ONLY uses that loop-computed offset, which is clearly going to go wrong. What's unclear is if there is any problem in not using that loop-computed offset -- I have to assume we never did use it, else PPC would fail a lot more. |
Change https://golang.org/cl/265277 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes seeing the issue post c3fe874
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
$ git clone https://github.com/kubernetes/kubernetes.git $ cd kubernetes $ make cross
this runs underneath the following command which is failing:
What did you expect to see?
clean run
What did you see instead?
The text was updated successfully, but these errors were encountered: