question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Race detector *.syso files missing for cross-compilation

See original GitHub issue

This 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:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
vsafonkincommented, Jan 11, 2022

Hi @tamird, thank you for your report, we will take a look it.

0reactions
vsafonkincommented, Apr 20, 2022

@tamird, I’ve added a note about it to the readme file, I believe we can close this issue, thank you for your help!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found