Bug 55626 - 056-debuginfo.brp: ERROR: Files with stripped .debug_info found, terminating build
Summary: 056-debuginfo.brp: ERROR: Files with stripped .debug_info found, terminating ...
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: golang (show other bugs)
Version: unstable
Hardware: x86 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-16 15:23 MSK by Vitaly Chikunov
Modified: 2025-08-20 10:05 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Chikunov 2025-08-16 15:23:17 MSK
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

 "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 "dsymutil" tool from older
  versions of Xcode (prior to V16) can't handle DWARF5. Similar we keep
  DWARF 4 for GOOS=aix, where XCOFF doesn't appear to support the new
  section subtypes in DWARF 5."

[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
Comment 1 Ivan A. Melnikov 2025-08-17 10:58:17 MSK
(In reply to Vitaly Chikunov from comment #0)
> [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

Interesting. I was more brutal in my hacks:

https://git.altlinux.org/people/iv/packages/golang.git?p=golang.git;a=commitdiff;h=509515be546a9772c1c1316a9bd1a63efca6448b
Comment 2 Repository Robot 2025-08-19 16:37:45 MSK
golang-1.25.0-alt2 -> sisyphus:

Tue Aug 19 2025 Alexey Shabalin <shaba@altlinux> 1.25.0-alt2
- Disabled dwarf5 debugdata collection (ALT#55626).
Comment 3 Vitaly Chikunov 2025-08-20 10:05:24 MSK
Спасибо.