summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2025-01-02 13:58:19 +0100
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:21 +0200
commitf60db691639e11b7cdab7cbe87f2b57a0320304d (patch)
tree14bd3f25ca22544b16e1fc2d4b483d27d4e36ff3
parent0cf4ba5a439d9349e2b5601e8c4c68210193277b (diff)
gnu: libunwind: Fix build with gcc-14.
* gnu/packages/libunwind.scm (libunwind)[arguments]: Update to G-Expressions. Add #:configure-flags to relax gcc-14's strictness. Change-Id: Iedab92015d6c5f4b17c33ccb02ede8b0bfd5a71e
-rw-r--r--gnu/packages/libunwind.scm21
1 files changed, 13 insertions, 8 deletions
diff --git a/gnu/packages/libunwind.scm b/gnu/packages/libunwind.scm
index ccbe2ec751..21197ba16d 100644
--- a/gnu/packages/libunwind.scm
+++ b/gnu/packages/libunwind.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -21,8 +22,9 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages libunwind)
- #:use-module (guix packages)
+ #:use-module (guix gexp)
#:use-module (guix download)
+ #:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (guix build-system gnu)
@@ -41,13 +43,16 @@
"0xj9g6a9q7v7zz6lymf3f6011synibgawi4wi384bywid5kfqsja"))))
(build-system gnu-build-system)
(arguments
- `(;; Two tests are failing with newer toolchains:
- ;; https://github.com/libunwind/libunwind/issues/363
- #:make-flags
- '("XFAIL_TESTS=run-coredump-unwind run-coredump-unwind-mdi")
- ;; A different collection of tests fails for each architecture.
- #:tests? ,(and (not (%current-target-system))
- (target-x86-64?))))
+ (list
+ #:configure-flags
+ #~(list "CFLAGS=-g -O2 -Wno-error=implicit-function-declaration")
+ ;; Two tests are failing with newer toolchains:
+ ;; https://github.com/libunwind/libunwind/issues/363
+ #:make-flags
+ #~(list "XFAIL_TESTS=run-coredump-unwind run-coredump-unwind-mdi")
+ ;; A different collection of tests fails for each architecture.
+ #:tests? (and (not (%current-target-system))
+ (target-x86-64?))))
(home-page "https://www.nongnu.org/libunwind")
(synopsis "Determining the call chain of a program")
(description