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
cmd/link: build failure with Openshift on ppc64le with recent merge of dev.link into master #38849
Comments
How does it build the binary exactly? The |
Not sure how much you want. I generated the full log by doing this: Here are the first two spots where this error occurs:
|
I mostly need to know how the shell script invokes the go command. Maybe you could run it with Also it might be useful if you could attach one of the object file it complains, like v1beta1.a. |
Here's what seems to be the main go command, but it doesn't fail if I run it manually (outside of script).
Build of package.
|
Thanks. Looks like something weird going on with that script. The .a file looks fine to me, and it does contain a fingerprint that the compiler expects. Maybe try this patch and see what error it prints?
|
I also printed out len(fingerprint) after n since that is what is being tested before printing the error.
|
Change https://golang.org/cl/232317 mentions this issue: |
Thanks! That is useful. Does the CL above fix it? (fingerprint is [8]byte so len(fingerprint) is constant 8. So I didn't ask for it.) |
The CL fixes the build error. I'm running the testcases and I am getting a few SIGILLs:
Trying to track down where they are. |
Thanks. The CL is in. My hunch is that the SIGILL is a different problem. Could you try running it with the old linker? |
Don't fail on partial read. May fix golang#38849. Change-Id: Icf075d454e1bfe9299b07eea47bbc4d448c3bd5e Reviewed-on: https://go-review.googlesource.com/c/go/+/232317 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputBuild of Openshift with latest golang on ppc64le:
mkdir $HOME/openshift // Any directory name is fine
export GOPATH=$HOME/openshift
mkdir -p $GOPATH/src/github.com/openshift; cd $GOPATH/src/github.com/openshift
git clone https://github.com/openshift/origin
cd origin
export PERMISSIVE_GO=y
make all
What did you expect to see?
This is a recent commit that works:
What did you see instead?
@cherrymui @jeremyfaller
The text was updated successfully, but these errors were encountered: