https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119098

            Bug ID: 119098
           Summary: GO built from GCC 14 sources no longer works when
                    installing libgo23 build from GCC 15
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

We face the issue that when updating the compiler runtime which includes
libgo23 from GCC 14 provided to GCC 15 provided (which has unchanged libgo
SONAME) the GO compiler built from GCC 14 no longer works.

The symptom is

[   25s] go: no such tool "cgo"

I suspect that somehow (parts of?) the path to cgo are built into this
shared library instead of the driver for whatever reason.  Possibly
the GO runtime knows how to compile?!

Strace difference between shlibs when invoking gccgo-14 is thus

- 29430 newfstatat(AT_FDCWD, "/usr/lib64/gcc/x86_64-suse-linux/14/cgo", 
<unfinished ...>
+ 29833 newfstatat(AT_FDCWD, "/usr/lib64/gcc/x86_64-suse-linux/15/cgo", 
<unfinished ...>

It does feel somewhat like a deja-vu ..?

Reply via email to