Bug 2261344

Summary: libunwind: FTBFS in Fedora rawhide/f40
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: libunwindAssignee: Carlos O'Donell <codonell>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: codonell, fweimer, jan, klember, mcatanza, mcermak, spotrh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libunwind-1.8.0-2.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-09 15:29:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2137512, 2231791    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2024-01-29 20:40:24 UTC
libunwind failed to build from source in Fedora rawhide/f40

https://koji.fedoraproject.org/koji/taskinfo?taskID=112318755


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
Please fix libunwind at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
libunwind will be orphaned. Before branching of Fedora 41,
libunwind will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2024-01-29 20:40:31 UTC
Created attachment 2012529 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2024-01-29 20:40:37 UTC
Created attachment 2012530 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2024-01-29 20:40:40 UTC
Created attachment 2012531 [details]
state.log

Comment 4 Tom "spot" Callaway 2024-01-31 16:20:50 UTC
Well, there is a workaround to make this build on aarch64, but it involves dropping all the optflags except -O2 and linking explicitly to -latomic. This also means we cannot generate debuginfo for aarch64.

Upstream knows about the issue: https://github.com/libunwind/libunwind/issues/693

Not sure how to proceed here.

Comment 5 Kalev Lember 2024-02-08 23:24:18 UTC
I played a bit with this and discovered that disabling LTO makes it build again. It's unclear to me what's exactly going on, but I think we have a reasonable workaround for the issues here.

I put my fixes in https://src.fedoraproject.org/rpms/libunwind/pull-request/8

Comment 6 Carlos O'Donell 2024-02-09 14:10:48 UTC
(In reply to Kalev Lember from comment #5)
> I played a bit with this and discovered that disabling LTO makes it build
> again. It's unclear to me what's exactly going on, but I think we have a
> reasonable workaround for the issues here.
> 
> I put my fixes in https://src.fedoraproject.org/rpms/libunwind/pull-request/8

Reviewed the PR today with Florian. Florian had some feedback. I think we're almost ready to merge that and fix this issue.

Comment 7 Fedora Update System 2024-02-09 15:17:38 UTC
FEDORA-2024-2ed53a84d8 (libunwind-1.8.0-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2ed53a84d8

Comment 8 Fedora Update System 2024-02-09 16:55:51 UTC
FEDORA-2024-2ed53a84d8 (libunwind-1.8.0-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.