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

cmd/link: go install of shared std fails #39777

Closed
jcajka opened this issue Jun 23, 2020 · 4 comments
Closed

cmd/link: go install of shared std fails #39777

jcajka opened this issue Jun 23, 2020 · 4 comments
Labels
Milestone

Comments

@jcajka
Copy link
Contributor

@jcajka jcajka commented Jun 23, 2020

What version of Go are you using (go version)?

$ go version
go version devel +e92be18fd8 Wed Jun 10 14:56:01 2020 +0000 linux/s390x
go version devel +968e18eebd Tue Jun 23 00:10:24 2020 +0000 linux/s390x

Observed both on master and go1.15beta1

Does this issue reproduce with the latest release?

No, go1.14.x doesn't seems to be affected.

What operating system and processor architecture are you using (go env)?

Observed both on linux/amd64 and linux/s390x. I would assume that all linux/* are affected.
For the record that is with gcc-10.1.1 and binutils-2.34(should these have any impact).

What did you do?

go install --buildmode=shared std

What did you expect to see?

Install finishing successfully, creating the libstd.so.

What did you see instead?

#go install --buildmode=shared std
# /tmp/go-build251444969/b203/libstd.so
/root/jcajka/go/pkg/tool/linux_s390x/link: fingerprint mismatch: errors has 0000000000000000, import from archive/tar expecting 1cce8eaa5db90f7e
@dmitshur
Copy link
Member

@dmitshur dmitshur commented Jun 23, 2020

Thank you for testing beta 1 and reporting this.

I'm not sure if this is a problem, and if so, where the problem is, but the error is coming from the linker, so that might be involved. /cc @aclements @cherrymui

/cc @cagedmantis @toothrot

@dmitshur dmitshur added this to the Go1.15 milestone Jun 23, 2020
@dmitshur dmitshur changed the title go install of shared std fails cmd/link: go install of shared std fails Jun 23, 2020
@thanm
Copy link
Member

@thanm thanm commented Jun 23, 2020

This does appear to be reproducible on our s390x gomote.

@gopherbot
Copy link

@gopherbot gopherbot commented Jun 23, 2020

Change https://golang.org/cl/239517 mentions this issue: cmd/link: skip zero values in fingerprint check

@jcajka
Copy link
Contributor Author

@jcajka jcajka commented Jun 24, 2020

Thank you for quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.