Go command looks for runtime/cgo with CGO_ENABLED=0 #52816
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I'm using the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm compiling go inside yocto, using the default
go-mod.bbclass
. I added theCGO_ENABLED=0
env var to produce statically linked binary.When running
CGO_ENABLED=0 go build
from my dev VM it works, not inside yocto.What did you expect to see?
Nothing, it should produce a statically linked binary.
What did you see instead?
I'm seeing this error:
The text was updated successfully, but these errors were encountered: