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

debugedit fails with DWARF version unhandled packaging golang binaries

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

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • rhel-10.0
    • rhel-10.0
    • debugedit
    • None
    • debugedit-5.1-2.el10
    • None
    • Moderate
    • 1
    • rhel-pt-perf-tools
    • ssg_platform_tools
    • 17
    • 18
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Perf Debug Sprint 14
    • None

      cat > hw.go << EOF
      package main
      
      import "fmt"
      
      func main() {
          fmt.Println("hello world")
      }
      EOF
      go build ./hw.go
      debugedit ./hw
      # read: debugedit: ./hw: DWARF version 0 unhandled
      GOOS=linux GOARCH=386 go build ./hw.go
      debugedit ./hw
      # read: debugedit: ./hw: DWARF version 58749 unhandled
      
      $ rpm -q debugedit golang
      debugedit-5.0-5.el9.x86_64
      golang-1.21.3-5.el9.x86_64
      

      This breaks the packaging of golang binaries. I added

      %global debug_package %{nil}
      

      in spec file as a workaround.

              rhn-engineering-mjw Mark Wielaard
              frigault Francois Rigault
              Mark Wielaard Mark Wielaard
              Martin Cermak Martin Cermak
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: