[Bug 2120636] [NEW] golang1.24 + gcc15 + riscv can lead to build failures

John Chittum 2120636 at bugs.launchpad.net
Thu Aug 14 11:43:06 UTC 2025


Public bug reported:

Aaron Rainbolt reported a build failure of Calamares in Questing with
golang 1.24

https://launchpadlibrarian.net/811012926/buildlog_ubuntu-questing-
riscv64.calamares-settings-ubuntu_1%3A25.10.2_BUILDING.txt.gz

The build uses

- gcc-15
- golang 1.24

Failure is a "empty container symbol"

(cd common/snap-seed-glue-emb && go build -gcflags="all=-N -l" -ldflags="-compressdwarf=false" -o snap-seed-glue-emb main.go)
# command-line-arguments
panic: unexpected empty container symbol

goroutine 1 [running]:
cmd/link/internal/loader.(*Loader).AddInteriorSym(0xc00021c388, 0x6fb3b, 0x6fb53)
	cmd/link/internal/loader/loader.go:1745 +0x238
cmd/link/internal/loader.(*SymbolBuilder).AddInteriorSym(...)
	cmd/link/internal/loader/symbolbuilder.go:202
cmd/link/internal/loadelf.Load(0xc00021c388, 0x55da40, 0x19a, 0xc00002e0a0, {0x7ff5c4944767, 0x7}, 0xef0, {0xc000128cf0, 0x2c}, 0x4)
	cmd/link/internal/loadelf/ldelf.go:633 +0x3518
cmd/link/internal/ld.ldobj.func1(0xc000244000, 0x54e992da771ba9b?, {0x7ff5c4944767?, 0x1?}, 0x4000?, {0xc000128cf0?, 0x0?})
	cmd/link/internal/ld/lib.go:2278 +0xa8
cmd/link/internal/ld.hostobjs(0xc000244000)
	cmd/link/internal/ld/lib.go:1241 +0x14c
cmd/link/internal/ld.(*Link).loadlib(0xc000244000)
	cmd/link/internal/ld/lib.go:615 +0x534
cmd/link/internal/ld.Main(_, {0x8, 0x20, 0x1, 0x2, 0x1, 0x1, {0x0, 0x0, 0x0}, ...})
	cmd/link/internal/ld/main.go:360 +0x11c4
main.main()
	cmd/link/main.go:72 +0xb6c
make[1]: *** [debian/rules:25: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:17: binary-arch] Error 2

Before going deeper, I checked and there's a simliar GH issue raised in
March with a fix in April. Upstream bug has a minimal reproducer

https://github.com/golang/go/issues/72840

this was confirmed on Fedora with golang 1.24 and gcc15

** Affects: golang-1.24 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: golang-1.24 (Ubuntu Questing)
     Importance: Undecided
         Status: New

** Also affects: golang-1.24 (Ubuntu Questing)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang-1.24 in Ubuntu.
https://bugs.launchpad.net/bugs/2120636

Title:
  golang1.24 + gcc15 + riscv can lead to build failures

Status in golang-1.24 package in Ubuntu:
  New
Status in golang-1.24 source package in Questing:
  New

Bug description:
  Aaron Rainbolt reported a build failure of Calamares in Questing with
  golang 1.24

  https://launchpadlibrarian.net/811012926/buildlog_ubuntu-questing-
  riscv64.calamares-settings-ubuntu_1%3A25.10.2_BUILDING.txt.gz

  The build uses

  - gcc-15
  - golang 1.24

  Failure is a "empty container symbol"

  (cd common/snap-seed-glue-emb && go build -gcflags="all=-N -l" -ldflags="-compressdwarf=false" -o snap-seed-glue-emb main.go)
  # command-line-arguments
  panic: unexpected empty container symbol

  goroutine 1 [running]:
  cmd/link/internal/loader.(*Loader).AddInteriorSym(0xc00021c388, 0x6fb3b, 0x6fb53)
  	cmd/link/internal/loader/loader.go:1745 +0x238
  cmd/link/internal/loader.(*SymbolBuilder).AddInteriorSym(...)
  	cmd/link/internal/loader/symbolbuilder.go:202
  cmd/link/internal/loadelf.Load(0xc00021c388, 0x55da40, 0x19a, 0xc00002e0a0, {0x7ff5c4944767, 0x7}, 0xef0, {0xc000128cf0, 0x2c}, 0x4)
  	cmd/link/internal/loadelf/ldelf.go:633 +0x3518
  cmd/link/internal/ld.ldobj.func1(0xc000244000, 0x54e992da771ba9b?, {0x7ff5c4944767?, 0x1?}, 0x4000?, {0xc000128cf0?, 0x0?})
  	cmd/link/internal/ld/lib.go:2278 +0xa8
  cmd/link/internal/ld.hostobjs(0xc000244000)
  	cmd/link/internal/ld/lib.go:1241 +0x14c
  cmd/link/internal/ld.(*Link).loadlib(0xc000244000)
  	cmd/link/internal/ld/lib.go:615 +0x534
  cmd/link/internal/ld.Main(_, {0x8, 0x20, 0x1, 0x2, 0x1, 0x1, {0x0, 0x0, 0x0}, ...})
  	cmd/link/internal/ld/main.go:360 +0x11c4
  main.main()
  	cmd/link/main.go:72 +0xb6c
  make[1]: *** [debian/rules:25: override_dh_auto_build] Error 1
  make[1]: Leaving directory '/<<PKGBUILDDIR>>'
  make: *** [debian/rules:17: binary-arch] Error 2

  Before going deeper, I checked and there's a simliar GH issue raised
  in March with a fix in April. Upstream bug has a minimal reproducer

  https://github.com/golang/go/issues/72840

  this was confirmed on Fedora with golang 1.24 and gcc15

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-1.24/+bug/2120636/+subscriptions




More information about the foundations-bugs mailing list