Race detector *.syso files missing for cross-compilation
See original GitHub issueThis is roughly https://github.com/golang/go/issues/42382.
My understanding is that binaries downloaded from https://github.com/actions/go-versions are built from source, rather than being downloaded from https://go.dev/dl/. But apparently not:
tamird@tamird:~/src/goid/go$ curl -sfSL https://github.com/actions/go-versions/releases/download/1.17.5-1559554870/go-1.17.5-linux-x64.tar.gz | tar zx
tamird@tamird:~/src/goid/go$ find src/runtime -name '*.syso'
src/runtime/race/race_linux_amd64.syso
The official Go binaries have long omitted these files for non-host platforms (https://go-review.googlesource.com/c/build/+/144281/) but that shouldn’t have affected go-versions if those packages are indeed built from source. But they appear not to be. It would be nice to fix that so that cross-compilation of race binaries works.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
src/cmd/go/go_test.go - go - Git at Google
canRace = false // whether we can run the race detector ... grepStderr("golang.org/x/tools: no Go files", "missing error"). tg.runFail("get", "-d", "-u", ...
Read more >Build error using golang race detector - Stack Overflow
Does anyone have info on how the Go compiler works esp. when using race detector or cgo, so I can track down the...
Read more >cmd/link - Go Issues
build golang.org/x/vuln/osv.test fails when -gcflags=all='-N -l' is providedNeedsInvestigationrelease-blockervulncheck or vulndb.
Read more >go command - cmd/go - Go Packages
When compiling packages, build ignores files that end in '_test.go'. When compiling a single main package, ... -race enable data race detection.
Read more >ActiveGo 1.8.3 Documentation
build compile packages and dependencies clean remove object files doc show documentation for package or symbol env ... -race enable data race detection....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @tamird, thank you for your report, we will take a look it.
@tamird, I’ve added a note about it to the readme file, I believe we can close this issue, thank you for your help!