From patchwork Thu Sep 1 22:29:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marius Bakke X-Patchwork-Id: 42133 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 954EF27BBEA; Thu, 1 Sep 2022 23:31:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CB76E27BBE9 for ; Thu, 1 Sep 2022 23:31:16 +0100 (BST) Received: from localhost ([::1]:50504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTsiR-0005XM-TK for patchwork@mira.cbaines.net; Thu, 01 Sep 2022 18:31:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTsiF-0005Ue-Nq for guix-patches@gnu.org; Thu, 01 Sep 2022 18:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTsiF-0005Ze-FH for guix-patches@gnu.org; Thu, 01 Sep 2022 18:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTsiF-00036E-BY for guix-patches@gnu.org; Thu, 01 Sep 2022 18:31:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57533] [PATCH core-updates 4/5] gnu: glm: Fix build with GCC 11. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Sep 2022 22:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57533 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57533@debbugs.gnu.org Received: via spool by 57533-submit@debbugs.gnu.org id=B57533.166207144211859 (code B ref 57533); Thu, 01 Sep 2022 22:31:03 +0000 Received: (at 57533) by debbugs.gnu.org; 1 Sep 2022 22:30:42 +0000 Received: from localhost ([127.0.0.1]:44344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTshu-00035D-9F for submit@debbugs.gnu.org; Thu, 01 Sep 2022 18:30:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTshr-00034V-0P for 57533@debbugs.gnu.org; Thu, 01 Sep 2022 18:30:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTshl-0005UG-QN for 57533@debbugs.gnu.org; Thu, 01 Sep 2022 18:30:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=U2lCsyd86NJh4ObKZsEBNB1DKGmcshLlhg2/24gcXKo=; b=SauOGNtiindvZFNwyEkH AIe41NDCZZ6lqeOv2HoelkPI9qghZitsGr/blgMtaPiQBfEDVZlQsrWZlMsUFMCXxWEOXdwhzWzyH Ej6hk70F25CCam9fJ1YbftMbGGXy3KYbY7Zrp/Sf0Bg2KYGCCxr+3qKHtIUMpSCfCrfLX0NcCXx+w YNneNVURxydl1XciQRxK80ls/w8MXQLp11BlbAEfa9PrVlaJxj57abQIQ6AX3WS6ayx1LqmnLOcO5 0P2znXB/vHUDuv1k/3ijfFiM1v6zf+/WxBrz4QPJpf2LwKu9SpfTBZ/B3CSEl0NRE5NmH/isKg0Lw OWEb873RYk7NFQ==; Received: from [84.214.173.6] (port=40390 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTshl-0001tO-3r for 57533@debbugs.gnu.org; Thu, 01 Sep 2022 18:30:33 -0400 From: Marius Bakke Date: Fri, 2 Sep 2022 00:29:56 +0200 Message-Id: <20220901222957.15383-4-marius@gnu.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220901222957.15383-1-marius@gnu.org> References: <20220901222413.14482-1-marius@gnu.org> <20220901222957.15383-1-marius@gnu.org> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 ;;; Copyright © 2018 Nadya Voronova ;;; Copyright © 2018 Adam Massmann -;;; Copyright © 2018, 2020, 2021 Marius Bakke +;;; Copyright © 2018, 2020-2022 Marius Bakke ;;; Copyright © 2018 Eric Brown ;;; Copyright © 2018, 2021 Julien Lepiller ;;; Copyright © 2018 Amin Bandali @@ -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 . + (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