[pkg-go] cgo support on mips*

Peter Colberg peter at colberg.org
Mon Nov 21 03:52:50 UTC 2016


Hi,

I am trying to port acmetool to the mips, mips64el and mipsel in time
for stretch. After adjusting the build dependencies to golang-any, the
executable builds, but a test fails due to lack of cgo.

https://buildd.debian.org/status/fetch.php?pkg=acmetool&arch=mips&ver=0.0.58-3&stamp=1479677902
https://buildd.debian.org/status/fetch.php?pkg=acmetool&arch=mips64el&ver=0.0.58-3&stamp=1479696865

On which architectures does gccgo-6 support cgo?

This is what I found in the source code with a cursory look:

gcc-6.2.0/libgo/go/cmd/cgo% grep -ri mips .
./main.go:	"mipso32":  4,
./main.go:	"mipsn32":  4,
./main.go:	"mipso64":  8,
./main.go:	"mipsn64":  8,
./main.go:	"mips64":   8,
./main.go:	"mips64le": 8,
./main.go:	"mipso32":  4,
./main.go:	"mipsn32":  4,
./main.go:	"mipso64":  8,
./main.go:	"mipsn64":  8,
./main.go:	"mips64":   8,
./main.go:	"mips64le": 8,

Is cgo on mips supported after all?

Thanks,
Peter



More information about the Pkg-go-maintainers mailing list