https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106747
--- Comment #3 from Дилян Палаузов <dilyan.palauzov at aegee dot org> --- installing gcc installs two binaries:gccgo and go. The first is OK: $ gccgo --version gccgo (GCC) 12.1.1 20220814 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The second binary, installed by gcc, go: $ go version go version unknown linux/amd64 does not print a version. The problem report is about the second binary.
