libgo didn't bump the SONAME for GCC 13. When building golang 1.9 with GCC go from GCC 12 but the libgo.so.21 from GCC 13 I get [ 8s] ##### Building Go bootstrap tool. [ 8s] cmd/dist [ 8s] /usr/bin/go: Symbol `syscall..types' has different size in shared object, consider re-linking [ 8s] /usr/bin/go: Symbol `runtime..types' has different size in shared object, consider re-linking [ 8s] go: no such tool "cgo" [ 8s] error: Bad exit status from /var/tmp/rpm-tmp.WRcxJv (%build)
Forcing libgo.so.21 from the GCC 12 build makes the build of golang 1.9 succeed here.
The master branch has been updated by Ian Lance Taylor <ian@gcc.gnu.org>: https://gcc.gnu.org/g:11c72cd3c8b06f057ce16c95966331ded692fd4e commit r13-4624-g11c72cd3c8b06f057ce16c95966331ded692fd4e Author: Ian Lance Taylor <iant@golang.org> Date: Mon Dec 12 12:46:40 2022 -0800 libgo: bump major version PR go/108057 The current version is the same as for the previous GCC release, but there have been minor changes like new type descriptors that make it impossible to run Go programs built with the previous GCC release with the current libgo. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/456976
Fixed by bumping the major version. Thanks.