<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>55626</bug_id>
          
          <creation_ts>2025-08-16 15:23:17 +0300</creation_ts>
          <short_desc>056-debuginfo.brp: ERROR: Files with stripped .debug_info found, terminating build</short_desc>
          <delta_ts>2025-08-20 10:05:24 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>golang</component>
          <version>unstable</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Chikunov">vt</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>iv</cc>
    
    <cc>ldv</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>270972</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2025-08-16 15:23:17 +0300</bug_when>
    <thetext>debugedit не поддерживает dwarf5[1], поэтому предлагаю отключить глобально генерацию dwarf5 в golang которая была там включена экспериментально[2]. Как сделано в Fedora[3].

[1] https://lists.altlinux.org/pipermail/sisyphus-cybertalk/2025-August/127206.html
	37 NEW error logs

- пакеты которые не упали просто генерят ошибочный -debuginfo, но в них не было _stripped_files_terminate_build.

[2] Комментарий https://github.com/golang/go/commit/ca19f987ca74605ef977c7a8619a344504c72272

 &quot;This patch enables the DWARF version 5 experiment by default for most
  platforms that support DWARF. Note that MacOS is kept at version 4,
  due to problems with CGO builds; the &quot;dsymutil&quot; tool from older
  versions of Xcode (prior to V16) can&apos;t handle DWARF5. Similar we keep
  DWARF 4 for GOOS=aix, where XCOFF doesn&apos;t appear to support the new
  section subtypes in DWARF 5.&quot;

[3] https://src.fedoraproject.org/rpms/golang/blob/rawhide/f/0001-Modify-go.env.patch

 +# NOTE(downstream): https://sourceware.org/bugzilla/show_bug.cgi?id=33204
 +# The dwarf5 data emitted by default in Go 1.25+ is incompatible with debugedit
 +# and breaks debugdata collection.
 +GOEXPERIMENT=nodwarf5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>270976</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2025-08-17 10:58:17 +0300</bug_when>
    <thetext>(In reply to Vitaly Chikunov from comment #0)
&gt; [3] https://src.fedoraproject.org/rpms/golang/blob/rawhide/f/0001-Modify-go.env.patch
&gt; 
&gt;  +# NOTE(downstream): https://sourceware.org/bugzilla/show_bug.cgi?id=33204
&gt;  +# The dwarf5 data emitted by default in Go 1.25+ is incompatible with debugedit
&gt;  +# and breaks debugdata collection.
&gt;  +GOEXPERIMENT=nodwarf5

Interesting. I was more brutal in my hacks:

https://git.altlinux.org/people/iv/packages/golang.git?p=golang.git;a=commitdiff;h=509515be546a9772c1c1316a9bd1a63efca6448b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271101</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-08-19 16:37:45 +0300</bug_when>
    <thetext>golang-1.25.0-alt2 -&gt; sisyphus:

Tue Aug 19 2025 Alexey Shabalin &lt;shaba@altlinux&gt; 1.25.0-alt2
- Disabled dwarf5 debugdata collection (ALT#55626).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271108</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2025-08-20 10:05:24 +0300</bug_when>
    <thetext>Спасибо.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>