Message ID | d78be97e13452c7dcff6c5f779ef0b019e4492d7.1697026467.git.paul@apatience.com |
---|---|
State | New |
Headers | show |
Series | [bug#66462] gnu: trilinos-for-dealii-openmpi: Fix build. | expand |
Hi, The original patch did not fully fix the build failure. The new patch is attached because it contains trailing whitespace. Best regards, Paul
Hi, "Paul A. Patience" <paul@apatience.com> skribis: > From 5db42d95a19640a2b60bdefc88f201b5422ea6f6 Mon Sep 17 00:00:00 2001 > Message-ID: <5db42d95a19640a2b60bdefc88f201b5422ea6f6.1697139938.git.paul@apatience.com> > From: "Paul A. Patience" <paul@apatience.com> > Date: Thu, 12 Oct 2023 10:02:25 -0400 > Subject: [PATCH v2] gnu: trilinos-for-dealii-openmpi: Fix build. > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > This fixes the error > > error: ‘std::hypot’ has not been declared > > caused by using an older version of gcc, but requires some patches to > placate newer versions of gcc. > > * gnu/packages/maths.scm (trilinos-for-dealii-openmpi)[origin]: Add > patches. > [native-inputs]: Remove gcc-7. > * gnu/packages/patches/teuchos-remove-duplicate-using.patch: New file. > * gnu/packages/patches/tpetra-remove-duplicate-using.patch: Likewise. > * gnu/local.mk (dist_patch_DATA): Register them. Applied, thanks! Ludo’.
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 928e169e95..f37ca4d716 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -6435,9 +6435,6 @@ (define trilinos-for-dealii-openmpi (build-system cmake-build-system) (native-inputs (list - ;; The build fails with the current gcc. - ;; Use the version from when Trilinos was added. - gcc-7 gfortran ;; Trilinos's repository contains several C-shell scripts, but adding ;; tcsh to the native inputs does not result in the check phase running