Open paleozogt opened 4 years ago
Trying with different gccgo cross-compilers...
amd64 works:
export GOARCH=amd64
export CC=x86_64-linux-gnu-gcc-9
go get -v github.com/json-iterator/go
file pkg/gccgo_linux_amd64/github.com/json-iterator/libgo.a
pkg/gccgo_linux_amd64/github.com/json-iterator/libgo.a: current ar archive
arm64 works:
export GOARCH=arm64
export CC=aarch64-linux-gnu-gcc-9
go get -v github.com/json-iterator/go
file pkg/gccgo_linux_arm64/github.com/json-iterator/libgo.a
pkg/gccgo_linux_arm64/github.com/json-iterator/libgo.a: current ar archive
ppc works:
export GOARCH=ppc
export CC=powerpc-linux-gnu-gcc-9
go get -v github.com/json-iterator/go
file pkg/gccgo_linux_ppc/github.com/json-iterator/libgo.a
pkg/gccgo_linux_ppc/github.com/json-iterator/libgo.a: current ar archive
ppc64 crashes:
export GOARCH=ppc64
export CC=powerpc64-linux-gnu-gcc-9
go get -v github.com/json-iterator/go
github.com/modern-go/concurrent
github.com/modern-go/reflect2
github.com/json-iterator/go
# github.com/json-iterator/go
go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:4677
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
btw, the crash says to look at /usr/share/doc/gcc-9/README.Bugs
, but it doesn't exist:
cat /usr/share/doc/gcc-9/README.Bugs
cat: /usr/share/doc/gcc-9/README.Bugs: No such file or directory
/cc @ianlancetaylor
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I'm using gccgo-9, which I think is the latest.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Successful installation of the module.
What did you see instead?
gccgo crashes: