cmd/go: TestScripts fail when glibc is included with FLAGS #50985
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?1.16.13
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
Building
go
from source in a hermedic build environment where glibc, binutils, and gcc paths is provided with environment variables (PATH, C_INCLUDE_PATH, CFLAGS, LDFLAGS, etc)What did you expect to see?
All tests pass
What did you see instead?
cmd/go TestScript fails for
list_compiled_imports
,ldflag
,link_syso_issue33139
, which utilize cgo.Adding
C_INCLUDE_PATH
to extraEnvKeys fixes the import errors but addingLDFLAGS
orCGO_LDFLAGS
doesn't seem to be able to fix the linker problems.These tests probably shouldn't assume that it can link against glibc without any flags.
The text was updated successfully, but these errors were encountered: