public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kalev Lember <klember@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libunwind] epel9: Disable LTO on aarch64 to fix the build (rhbz#2261344)
Date: Mon, 15 Jun 2026 10:27:03 GMT	[thread overview]
Message-ID: <178151922394.1.367802060215594569.rpms-libunwind-bbfe2c4352c2@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/libunwind
            Branch : epel9
            Commit : bbfe2c4352c2e806c6498d488a6fe85e4a950c1c
            Author : Kalev Lember <klember@redhat.com>
            Date   : 2024-02-09T14:24:41+01:00
            Stats  : +11/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/libunwind/c/bbfe2c4352c2e806c6498d488a6fe85e4a950c1c?branch=epel9

            Log:
            Disable LTO on aarch64 to fix the build (rhbz#2261344)

It turns out that disabling LTO fixes the build on aarch64. With this,
we can also re-enable self tests on aarch64.

---
diff --git a/libunwind.spec b/libunwind.spec
index 737e4d5..88a93de 100644
--- a/libunwind.spec
+++ b/libunwind.spec
@@ -35,7 +35,7 @@
 #     Ltest-resume-sig-rt
 #     test-ptrace
 
-%ifarch aarch64 i686 ppc64le s390x
+%ifarch i686 ppc64le s390x
 %global test_failure_override true
 %else
 %global test_failure_override false
@@ -46,7 +46,7 @@
 Summary: An unwinding library
 Name: libunwind
 Version: 1.8.0
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: MIT
 URL: http://savannah.nongnu.org/projects/libunwind
 Source: https://github.com/libunwind/libunwind/releases/download/v%{version}/%{name}-%{version}.tar.gz
@@ -81,6 +81,11 @@ libunwind.
 %autosetup -p1 -n %{name}-%{version}
 
 %build
+%ifarch aarch64
+# LTO causes FTBFS on aarch64 (rhbz#2261344)
+%global _lto_cflags %{nil}
+%endif
+
 %global optflags %{optflags} -fcommon
 aclocal
 libtoolize --force
@@ -131,6 +136,10 @@ echo ====================TESTING END=====================
 %{_includedir}/libunwind*.h
 
 %changelog
+* Thu Feb 08 2024 Kalev Lember <klember@redhat.com> - 1.8.0-2
+- Disable LTO on aarch64 to fix the build (rhbz#2261344)
+- Re-enable tests on aarch64
+
 * Mon Jan 29 2024 Tom Callaway <spot@fedoraproject.org> - 1.8.0-1
 - update to 1.8.0
 

                 reply	other threads:[~2026-06-15 10:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178151922394.1.367802060215594569.rpms-libunwind-bbfe2c4352c2@fedoraproject.org \
    --to=klember@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox