guix_mirror_bot pushed a commit to branch master in repository guix. commit ebf6e99022738efb0ebb1c4c9a780afb41367e5d Author: Andreas Enge <andr...@enge.fr> AuthorDate: Mon Jul 21 20:43:19 2025 +0200
gnu: spike: Fix build with gcc@14. * gnu/packages/virtualization.scm (spike)[arguments]<#:phases>{'gcc14}: New phase. Change-Id: I363875fb17c5e0d23037eee4c5023bc563367c4b --- gnu/packages/virtualization.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 03e5bc8004..af1566b3a6 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -42,6 +42,7 @@ ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.art...@gmail.com> ;;; Copyright © 2025 Karl Hallsby <k...@hallsby.com> ;;; Copyright © 2025 Douglas Deslauriers <douglas.deslauri...@vector.com> +;;; Copyright © 2025 Andreas Enge <andr...@enge.fr> ;;; ;;; This file is part of GNU Guix. ;;; @@ -1305,6 +1306,11 @@ it emulates a variety of hardware and peripherals.") (list #:phases #~(modify-phases %standard-phases + (add-before 'configure 'gcc14 + (lambda _ + (substitute* "fesvr/device.h" + (("#include <string>" all) + (string-append all "\n#include <cstdint>"))))) (add-before 'configure 'configure-dtc-path (lambda* (#:key inputs #:allow-other-keys) ;; Reference dtc by its absolute store path.