Bug 108057 - [13 Regression] libgo21 not ABI compatible gcc12 vs gcc13?
Summary: [13 Regression] libgo21 not ABI compatible gcc12 vs gcc13?
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: go (show other bugs)
Version: 13.0
: P1 normal
Target Milestone: 13.0
Assignee: Ian Lance Taylor
URL:
Keywords: ABI
Depends on:
Blocks:
 
Reported: 2022-12-11 09:26 UTC by Richard Biener
Modified: 2022-12-12 23:02 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2022-12-12 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Biener 2022-12-11 09:26:14 UTC
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)
Comment 1 Richard Biener 2022-12-11 09:33:33 UTC
Forcing libgo.so.21 from the GCC 12 build makes the build of golang 1.9 succeed here.
Comment 2 GCC Commits 2022-12-12 22:18:30 UTC
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
Comment 3 Ian Lance Taylor 2022-12-12 23:02:18 UTC
Fixed by bumping the major version.  Thanks.