cmd/cgo: arch list is not in sync with cmd/go and go/build arch list #45644
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
There are currently 3 places where supported architectures are enumerated:
The problem is that the list in cmd/cgo/main.go is out of sync with the other lists.
From cmd/cgo/main.go:
From cmd/go/internal/imports/build.go:
cgo
havealpha
,m68k
nios2
sh
andshbe
, and is missingamd64p32
,mips64p32
andmips64p32le
.I don't know if there is a reason for the difference, but the problem is that the additional architectures known to
cgo
are used as a build tag incmd/vendor/golang.org/x/sys/unix
(inendian_big.go
andendian_big.go
), and since they are not known bygo
, they are probably ignored.Another small issues is that the architecture list in
cmd/go/internal/imports/build.go
is not sorted correctly.I'm not sure if this should be reported as an issue about
cmd/cgo
or aboutgolang.org/x/sys/unix
.Probably this is harmless.
The text was updated successfully, but these errors were encountered: