-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: install "-a -buildmode=shared std" not reproducible #69464
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
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
Change https://go.dev/cl/612396 mentions this issue: |
And-ZJ
added a commit
to And-ZJ/go
that referenced
this issue
Sep 19, 2024
This is similar to CL 478196 and CL 477296, but this is for -buildmode=shared. When using "go install -buildmode=shared std", because the gold linker is used by default on Linux arm64, it will cause temporary paths to be included in libstd.so. Based on the changes of CL 478196, I speculate that this may also have issues on other platforms. So, this change is for all platform. But I don't have any other platforms and don't know what the file name for verification, so the testcase are only for the Linux platform. I hope someone can improve this testcase. Thanks! Fixes golang#69464
And-ZJ
added a commit
to And-ZJ/go
that referenced
this issue
Sep 19, 2024
This is similar to CL 478196 and CL 477296, but this is for -buildmode=shared. When using "go install -buildmode=shared std", because the gold linker is used by default on Linux arm64, it will cause temporary paths to be included in libstd.so. Based on the changes of CL 478196, I speculate that this may also have issues on other platforms. So, this change is for all platform. But I don't have any other platforms and don't know what the file name for verification, so the testcase are only for the Linux platform. I hope someone can improve this testcase. Thanks! Fixes golang#69464
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version devel go1.24-ad6ee21bbf Wed Sep 11 06:30:02 2024 +0000 linux/arm64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
The libstd.so file is not reproducible. This problem also exists in earlier versions.
What did you expect to see?
I think the libstd.so file should be reproducible.
The text was updated successfully, but these errors were encountered: