cmd/link: Use of --build-id broke solaris-amd64 bot #70031
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
OS-Solaris
Milestone
Go version
go version devel go1.24-4646556ba4 Thu Oct 24 12:32:56 2024 +0000 solaris/amd64
Output of
go env
in your module/workspace:What did you do?
The
solaris-amd64
bot has been broken for a couple of days. I could trace this to this commitThe issue is that while Solaris is ELF, it doesn't use GNU
ld
but the native linker, thus--build-id
isn't supported at al, breakingthe builds. Obviously nobody cared.
What did you see happen?
I see errors like
What did you expect to see?
The build should complete without errors, as it has before. AFAICS, all other uses of
--build-id
properly guard the use of thatoption, restricting it to targets that are known to support it. This patch ignores that precedent, going by the unwarranted (and proven wrong) assumption that every ELF target has it.
The text was updated successfully, but these errors were encountered: