Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-111272

packages fail to build due to dwarf5 support issues with go1.25 [rhel-10]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • rhel-10.1
    • golang
    • None
    • golang-1.25.0-4.el10
    • No
    • Moderate
    • rhel-pt-go
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Due to the new dwarf5 support set as default format on go1.25, packages (e.g. weldr-client-35.12-4.el9_6) rpmbuilding with golang-1.25.0-1.el10 fail with the following: 

      https://artifacts.osci.redhat.com/baseos-ci/brew-build/68/68/86/68688661/https___baseos-jenkins.rhev-ci-vms.eng.rdu2.redhat.com-ci-test-brew-ts_tmt-artemis/17285/work-main62zqfndu/plans/ci/main/execute/data/guest/default-0/rhel/Sanity/rpmbuild-weldr-client-32/output.txt

      + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 35.12-4.el9 --unique-debug-suffix -35.12-4.el9.aarch64 --unique-debug-src-base weldr-client-35.12-4.el9.aarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 --remove-section .gnu.build.attributes -S debugsourcefiles.list /tmp/tmp.WLFGziRSpc/BUILD/weldr-client-35.12
      /usr/bin/debugedit: /tmp/tmp.WLFGziRSpc/BUILDROOT/weldr-client-35.12-4.el9.aarch64/usr/libexec/tests/composer-cli/composer-cli-tests: Unsupported .debug_line directory 0 path DW_FORM_0x8
      /usr/bin/debugedit: /tmp/tmp.WLFGziRSpc/BUILDROOT/weldr-client-35.12-4.el9.aarch64/usr/libexec/tests/composer-cli/composer-cli-tests: Unsupported .debug_line directory 0 path DW_FORM_0x8
      /usr/bin/debugedit: /tmp/tmp.WLFGziRSpc/BUILDROOT/weldr-client-35.12-4.el9.aarch64/usr/libexec/tests/composer-cli/composer-cli-tests: Unsupported .debug_line directory 0 path DW_FORM_0x8
      (...)
      error: Empty %files file /tmp/tmp.WLFGziRSpc/BUILD/weldr-client-35.12/debugsourcefiles.list
          Empty %files file /tmp/tmp.WLFGziRSpc/BUILD/weldr-client-35.12/debugsourcefiles.list
      

      The root cause seems to be related to an issue with dwarf5 on debugedit: https://sourceware.org/bugzilla/show_bug.cgi?id=33204

      On Fedora, this has been fixed (as a workaround) on go-rpm-macros with GOEXPERIMENT=nodwarf5 (https://src.fedoraproject.org/rpms/go-rpm-macros/pull-request/30#), however this might not solve the issue for packages that don't use go-rpm-macros.

              go-maint@redhat.com Go Maint
              rhn-support-emachado Edjunior Machado
              Go Maint Go Maint
              Edjunior Machado Edjunior Machado
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: