From: Marius Bakke <marius@gnu.org>
To: 57533@debbugs.gnu.org
Subject: [bug#57533] [PATCH core-updates 4/5] gnu: glm: Fix build with GCC 11.
Date: Fri, 2 Sep 2022 00:29:56 +0200 [thread overview]
Message-ID: <20220901222957.15383-4-marius@gnu.org> (raw)
In-Reply-To: <20220901222957.15383-1-marius@gnu.org>
* gnu/packages/maths.scm (glm)[arguments]: Add phase set-environment.
---
gnu/packages/maths.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 6e9786a474..aa15666a5c 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -26,7 +26,7 @@
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
;;; Copyright © 2018 Nadya Voronova <voronovank@gmail.com>
;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
-;;; Copyright © 2018, 2020, 2021 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2018, 2020-2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2018 Eric Brown <brown@fastmail.com>
;;; Copyright © 2018, 2021 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2018 Amin Bandali <bandali@gnu.org>
@@ -5111,6 +5111,13 @@ (define-public glm
(build-system cmake-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
+ (add-before 'configure 'set-environment
+ (lambda _
+ ;; Pass "-fno-ipa-modref" flag to the compiler to work
+ ;; around a test failure with GCC 11. This is a
+ ;; header-only library so these flags only affect tests.
+ ;; See <https://github.com/g-truc/glm/pull/1087>.
+ (setenv "CXXFLAGS" "-O2 -g -fno-ipa-modref")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
;; Since version 0.9.9.6, 'make install' is not supported
--
2.37.2
next prev parent reply other threads:[~2022-09-01 22:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-01 22:24 [bug#57533] [PATCH core-updates 0/5] glibc 2.35 and GCC 11 Marius Bakke
2022-09-01 22:29 ` [bug#57533] [PATCH core-updates 1/5] gnu: glibc: Update to 2.35 Marius Bakke
2022-09-01 22:29 ` [bug#57533] [PATCH core-updates 2/5] syscalls: Adjust for glibc 2.34 and later Marius Bakke
2022-09-01 22:29 ` [bug#57533] [PATCH core-updates 3/5] gnu: Switch to GCC 11 Marius Bakke
2022-09-01 22:29 ` Marius Bakke [this message]
2022-09-01 22:29 ` [bug#57533] [PATCH core-updates 5/5] gnu: clang-runtime: Remove obsolete workaround Marius Bakke
2022-09-08 19:48 ` bug#57533: [PATCH core-updates 0/5] glibc 2.35 and GCC 11 Marius Bakke
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220901222957.15383-4-marius@gnu.org \
--to=marius@gnu.org \
--cc=57533@debbugs.gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).