From unknown Tue Jun 17 22:26:10 2025 X-Loop: help-debbugs@gnu.org Subject: bug#51071: OpenFOAM 4.1 fails to build Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 07 Oct 2021 08:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51071 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 51071@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163359710628278 (code B ref -1); Thu, 07 Oct 2021 08:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Oct 2021 08:58:26 +0000 Received: from localhost ([127.0.0.1]:46007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYPEP-0007M1-Ti for submit@debbugs.gnu.org; Thu, 07 Oct 2021 04:58:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:45036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYPEO-0007Lu-4k for submit@debbugs.gnu.org; Thu, 07 Oct 2021 04:58:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYPEN-0003AP-SD for bug-guix@gnu.org; Thu, 07 Oct 2021 04:58:23 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:38536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYPEL-0006Km-65 for bug-guix@gnu.org; Thu, 07 Oct 2021 04:58:23 -0400 IronPort-HdrOrdr: A9a23:Z8SHF6xfbLP8SPIt+3eqKrPwL71zdoMgy1knxilNoH1uEvBw8vrE9sjzuiWYtN9vYgBEpTntAsW9aFf90bIw3qUrB5eFe2DdyQiVxeNZnOnfKlTbckXDH4hmu5uIGJIeNDSfNzdHZM/BkW2FL+o= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="532566085" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 10:57:52 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 =?UTF-8?Q?Vend=C3=A9miaire?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 07 Oct 2021 10:57:51 +0200 Message-ID: <87czohfbzk.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=192.134.164.83; envelope-from=ludovic.courtes@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, On 1327ec822fa6dd396e979efd8d4e1f7479f1d5b3 (current master), OpenFOAM=C2=A04.1 fails to build (from ): --8<---------------cut here---------------start------------->8--- g++ -std=3Dc++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=3D64 -DWM_DP -DWM_LABEL_SI= ZE=3D32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-param= eter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/tmp/= guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/tm= p/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/dynamicMesh/lnInclude -I/t= mp/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/meshTools/lnInclude -IlnI= nclude -I. -I/tmp/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/OpenFOAM/l= nInclude -I/tmp/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/OSspecific/P= OSIX/lnInclude -fPIC -c moveMesh.C -o /tmp/guix-build-openfoam-4.1.drv-0/= OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/man= ipulation/moveMesh/moveMesh.o In file included from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/IO/Color.h:21:0, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/IO/io.h:30, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/Needs_parens_as_product.h:20, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/number_type_basic.h:45, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/basic.h:33, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/Delaunay_triangulation_3.h:22, from lnInclude/CGALTriangulation3DKernel.H:36, from lnInclude/CGALTriangulation3Ddefs.H:41, from DelaunayMeshTools/DelaunayMeshTools.H:45, from DelaunayMeshTools/DelaunayMeshTools.C:26: /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/array.h= :72:44: error: ?std::index_sequence? has not been declared make_filled_array_aux(const T& value, std::index_sequence) ^~~~~~~~~~~~~~ /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/array.h= :72:58: error: expected ?,? or ?...? before ?) ^ /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/array.h= : In function ?constexpr std::array CGAL::make_filled_array(const T&)= ?: /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/array.h= :80:44: error: ?make_index_sequence? is not a member of ?std? return make_filled_array_aux(value, std::make_index_sequence()); ^~~~~~~~~~~~~~~~~~~ /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/array.h= :80:67: error: expected primary-expression before ?)? token return make_filled_array_aux(value, std::make_index_sequence()); ^ In file included from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/double.h:22:0, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/number_type_basic.h:51, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/basic.h:33, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/Delaunay_triangulation_3.h:22, from lnInclude/CGALTriangulation3DKernel.H:36, from lnInclude/CGALTriangulation3Ddefs.H:41, from DelaunayMeshTools/DelaunayMeshTools.H:45, from DelaunayMeshTools/DelaunayMeshTools.C:26: /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h: At global scope: /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected primary-expression before ?auto? decltype(auto) approximate_sqrt(const NT& nt) ^~~~ /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected ?)? before ?auto? /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected primary-expression before ?auto? /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected primary-expression before ?auto? /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected primary-expression before ?auto? /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected primary-expression before ?auto? /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:1: error: expected unqualified-id before ?decltype? decltype(auto) approximate_sqrt(const NT& nt) ^~~~~~~~ --8<---------------cut here---------------end--------------->8--- (It hasn=E2=80=99t been touched since 2017, so it might have been failing f= or a long time.) I naively tried building against CGAL 4.x (patch below) but that failed elsewhere: --8<---------------cut here---------------start------------->8--- g++ -std=3Dc++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=3D64 -DWM_DP -DWM_LABEL_SI= ZE=3D32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-param= eter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -fround= ing-math -DNDEBUG -I/gnu/store/hwrhh7icnj2rsr208szblzys2j91gqq3-cgal-4.14.2= /include -I/gnu/store/5jf395qa3v4amdi60850rz2a15zlsrza-mpfr-4.0.2/include -= I/gnu/store/35afkywncrr5xsb4cxcljf6rpjcb7f61-gmp-6.2.0/include -I/gnu/store= /vp2s1nxsc9vvc1ix66xpbf041f8nacxr-boost-1.72.0/include -I/usr/include -Wno-= old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds -I/tmp/guix-bui= ld-openfoam-4.1.drv-0/OpenFOAM-4.1/applications/utilities/mesh/generation/e= xtrude2DMesh/extrude2DMesh/lnInclude -I../conformalVoronoi2DMesh/lnInclude = -I../conformalVoronoiMesh/lnInclude -I/tmp/guix-build-openfoam-4.1.drv-0/Op= enFOAM-4.1/src/parallel/decompose/decompositionMethods/lnInclude -I/tmp/gui= x-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/tmp/g= uix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/meshTools/lnInclude -I/tmp/gu= ix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/surfMesh/lnInclude -I/tmp/guix= -build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/edgeMesh/lnInclude -I/tmp/guix-b= uild-openfoam-4.1.drv-0/OpenFOAM-4.1/src/dynamicMesh/lnInclude -I/tmp/guix-= build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/mesh/extrudeModel/lnInclude -I/tm= p/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/sampling/lnInclude -I/tmp/= guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/triSurface/lnInclude -I/tmp/= guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/fileFormats/lnInclude -I/tmp= /guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/mesh/snappyHexMesh/lnInclud= e -IlnInclude -I. -I/tmp/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/Ope= nFOAM/lnInclude -I/tmp/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/OSspe= cific/POSIX/lnInclude -fPIC -c foamyQuadMesh.C -o /tmp/guix-build-openfoa= m-4.1.drv-0/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilit= ies/mesh/generation/foamyMesh/foamyQuadMesh/foamyQuadMesh.o In file included from insertSurfaceNearPointPairs.C:26:0: CV2D.H:352:51: error: =E2=80=98point=E2=80=99 does not name a type inline const point2D& toPoint2D(const point&) const; ^~~~~ CV2D.H:354:20: error: =E2=80=98point=E2=80=99 does not name a type inline point toPoint3D(const point2D&) const; ^~~~~ --8<---------------cut here---------------end--------------->8--- It would probably be best to upgrade, but that=E2=80=99s an intimidating pi= ece of software and it takes a lot of CPU time to build. Thoughts? Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 3f2be5766c..7f091c02e3 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright =C2=A9 2015, 2016 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2015, 2016, 2021 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2015 Tom=C3=A1=C5=A1 =C4=8Cech ;;; Copyright =C2=A9 2016, 2019 Leo Famulari ;;; Copyright =C2=A9 2016, 2017, 2019 Ricardo Wurmus @@ -796,6 +796,19 @@ (define-public cgal ;; permissive licenses. (license license:gpl3+))) =20 +(define-public cgal-4 + (package + (inherit cgal) + (version "4.14.2") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/CGAL/cgal/releases/download/v" ver= sion + "/CGAL-" version ".tar.xz")) + (sha256 + (base32 + "08lrp3hfwdypggz4138bnkh6bjxn441zg2y9xnq5mrjfc5ini6w1"))))= )) + (define-public ilmbase (package (name "ilmbase") diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 23580322bb..f95356d913 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -88,7 +88,7 @@ (define-public openfoam (build-system gnu-build-system) (inputs `(("boost" ,boost) - ("cgal" ,cgal) + ("cgal" ,cgal-4) ("flex" ,flex) ("git" ,git) ("gmp" ,gmp) --=-=-=-- From unknown Tue Jun 17 22:26:10 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#51071: closed (Re: bug#51071: OpenFOAM 4.1 fails to build) Message-ID: References: <878rckv3q5.fsf@gnu.org> <87czohfbzk.fsf@inria.fr> X-Gnu-PR-Message: they-closed 51071 X-Gnu-PR-Package: guix Reply-To: 51071@debbugs.gnu.org Date: Thu, 15 Jun 2023 21:03:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1686862982-19782-1" This is a multi-part message in MIME format... ------------=_1686862982-19782-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #51071: OpenFOAM 4.1 fails to build which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 51071@debbugs.gnu.org. --=20 51071: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D51071 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1686862982-19782-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 51071-done) by debbugs.gnu.org; 15 Jun 2023 21:02:36 +0000 Received: from localhost ([127.0.0.1]:48085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9u71-00058Q-JO for submit@debbugs.gnu.org; Thu, 15 Jun 2023 17:02:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9u6z-00058C-2J for 51071-done@debbugs.gnu.org; Thu, 15 Jun 2023 17:02:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9u6t-00060h-S3 for 51071-done@debbugs.gnu.org; Thu, 15 Jun 2023 17:02:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=W1gzQnXY/nWyQcmWzf05RyHW4HQyHkjgpGRV22lyZ5I=; b=o2ru6kDIssZkqUcwEljw Jw9dAfkwqtlET/SSrJPuGdJKGYA22NXZJ1C2q4SpvVqRsagUUjua4z4m++3WjNb+w5keE3xfGPIPQ czHgu31/JqoSgMz3zZRw+85glJ5n8zpS1Z/Ir0VT6GjboUDDIHjx01NQ+vw9xVjOqif4yV13dpVVG vR4Rt6w1PaPQJ7E7cRgyAHS80GTN2L8yo7eFcnwl47/rJ0GEw56xGfnfWdsEae26cYvwHwEuqR0DD nd6tvPSmrhz5tDM2ejrpmiO3TGsUXG6rjLaB1w/if/PA22kChjy4tVhX8CKMtLpEA+/ahA/DoTZ7L DZmlk7bpCJmt0g==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9u6t-0001zt-Fm for 51071-done@debbugs.gnu.org; Thu, 15 Jun 2023 17:02:27 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 51071-done@debbugs.gnu.org Subject: Re: bug#51071: OpenFOAM 4.1 fails to build References: <87czohfbzk.fsf@inria.fr> Date: Thu, 15 Jun 2023 23:02:26 +0200 In-Reply-To: <87czohfbzk.fsf@inria.fr> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?= =?utf-8?Q?'s?= message of "Thu, 07 Oct 2021 10:57:51 +0200") Message-ID: <878rckv3q5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51071-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s skribis: > On 1327ec822fa6dd396e979efd8d4e1f7479f1d5b3 (current master), > OpenFOAM=C2=A04.1 fails to build (from > ): It builds fine now: --8<---------------cut here---------------start------------->8--- $ guix weather openfoam computing 1 package derivations for x86_64-linux... looking for 2 store items on https://ci.guix.gnu.org... https://ci.guix.gnu.org =E2=98=80 100.0% substitutes available (2 out of 2) at least 57.6 MiB of nars (compressed) 136.6 MiB on disk (uncompressed) 0.106 seconds per request (0.2 seconds in total) 9.4 requests per second 492 queued builds aarch64-linux: 491 (99.8%) x86_64-linux: 1 (.2%) build rate: 34.16 builds per hour i686-linux: 5.81 builds per hour powerpc64le-linux: 5.67 builds per hour aarch64-linux: 9.43 builds per hour x86_64-linux: 13.71 builds per hour looking for 2 store items on https://bordeaux.guix.gnu.org... https://bordeaux.guix.gnu.org =E2=98=80 100.0% substitutes available (2 out of 2) 28.3 MiB of nars (compressed) 136.6 MiB on disk (uncompressed) 0.085 seconds per request (0.2 seconds in total) 11.8 requests per second (continuous integration information unavailable) $ guix build openfoam -n=20 29.6 MB would be downloaded: /gnu/store/rwh040q7049ayhn79xs33ipz9brzhcwv-openfoam-4.1-debug /gnu/store/jp9syfs3gnkfvczr9yrhhmsl07c420jk-openfoam-4.1 $ guix describe Generation 266 Jun 12 2023 00:09:25 (current) guix 299f64a repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 299f64adea72a4b360da54b0bffd06ee57a5517b --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99. ------------=_1686862982-19782-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Oct 2021 08:58:26 +0000 Received: from localhost ([127.0.0.1]:46007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYPEP-0007M1-Ti for submit@debbugs.gnu.org; Thu, 07 Oct 2021 04:58:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:45036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYPEO-0007Lu-4k for submit@debbugs.gnu.org; Thu, 07 Oct 2021 04:58:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYPEN-0003AP-SD for bug-guix@gnu.org; Thu, 07 Oct 2021 04:58:23 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:38536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYPEL-0006Km-65 for bug-guix@gnu.org; Thu, 07 Oct 2021 04:58:23 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AZ8SHF6xfbLP8SPIt+3eqKrPwL71zdoMgy1kn?= =?us-ascii?q?xilNoH1uEvBw8vrE9sjzuiWYtN9vYgBEpTntAsW9aFf90bIw3qUrB5eFe2DdyQ?= =?us-ascii?q?iVxeNZnOnfKlTbckXDH4hmu5uIGJIeNDSfNzdHZM/BkW2FL+o=3D?= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="532566085" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 10:57:52 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: OpenFOAM 4.1 fails to build X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 =?utf-8?Q?Vend=C3=A9miaire?= an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 07 Oct 2021 10:57:51 +0200 Message-ID: <87czohfbzk.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=192.134.164.83; envelope-from=ludovic.courtes@inria.fr; helo=mail2-relais-roc.national.inria.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, On 1327ec822fa6dd396e979efd8d4e1f7479f1d5b3 (current master), OpenFOAM=C2=A04.1 fails to build (from ): --8<---------------cut here---------------start------------->8--- g++ -std=3Dc++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=3D64 -DWM_DP -DWM_LABEL_SI= ZE=3D32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-param= eter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/tmp/= guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/tm= p/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/dynamicMesh/lnInclude -I/t= mp/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/meshTools/lnInclude -IlnI= nclude -I. -I/tmp/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/OpenFOAM/l= nInclude -I/tmp/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/OSspecific/P= OSIX/lnInclude -fPIC -c moveMesh.C -o /tmp/guix-build-openfoam-4.1.drv-0/= OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/mesh/man= ipulation/moveMesh/moveMesh.o In file included from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/IO/Color.h:21:0, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/IO/io.h:30, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/Needs_parens_as_product.h:20, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/number_type_basic.h:45, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/basic.h:33, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/Delaunay_triangulation_3.h:22, from lnInclude/CGALTriangulation3DKernel.H:36, from lnInclude/CGALTriangulation3Ddefs.H:41, from DelaunayMeshTools/DelaunayMeshTools.H:45, from DelaunayMeshTools/DelaunayMeshTools.C:26: /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/array.h= :72:44: error: ?std::index_sequence? has not been declared make_filled_array_aux(const T& value, std::index_sequence) ^~~~~~~~~~~~~~ /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/array.h= :72:58: error: expected ?,? or ?...? before ?) ^ /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/array.h= : In function ?constexpr std::array CGAL::make_filled_array(const T&)= ?: /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/array.h= :80:44: error: ?make_index_sequence? is not a member of ?std? return make_filled_array_aux(value, std::make_index_sequence()); ^~~~~~~~~~~~~~~~~~~ /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/array.h= :80:67: error: expected primary-expression before ?)? token return make_filled_array_aux(value, std::make_index_sequence()); ^ In file included from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/double.h:22:0, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/number_type_basic.h:51, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/basic.h:33, from /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.= 2/include/CGAL/Delaunay_triangulation_3.h:22, from lnInclude/CGALTriangulation3DKernel.H:36, from lnInclude/CGALTriangulation3Ddefs.H:41, from DelaunayMeshTools/DelaunayMeshTools.H:45, from DelaunayMeshTools/DelaunayMeshTools.C:26: /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h: At global scope: /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected primary-expression before ?auto? decltype(auto) approximate_sqrt(const NT& nt) ^~~~ /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected ?)? before ?auto? /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected primary-expression before ?auto? /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected primary-expression before ?auto? /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected primary-expression before ?auto? /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:10: error: expected primary-expression before ?auto? /gnu/store/86p0n4k4ahkc0kg7n4qz1mfg02czhyhd-cgal-5.2.2/include/CGAL/number_= utils.h:319:1: error: expected unqualified-id before ?decltype? decltype(auto) approximate_sqrt(const NT& nt) ^~~~~~~~ --8<---------------cut here---------------end--------------->8--- (It hasn=E2=80=99t been touched since 2017, so it might have been failing f= or a long time.) I naively tried building against CGAL 4.x (patch below) but that failed elsewhere: --8<---------------cut here---------------start------------->8--- g++ -std=3Dc++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=3D64 -DWM_DP -DWM_LABEL_SI= ZE=3D32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-param= eter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -fround= ing-math -DNDEBUG -I/gnu/store/hwrhh7icnj2rsr208szblzys2j91gqq3-cgal-4.14.2= /include -I/gnu/store/5jf395qa3v4amdi60850rz2a15zlsrza-mpfr-4.0.2/include -= I/gnu/store/35afkywncrr5xsb4cxcljf6rpjcb7f61-gmp-6.2.0/include -I/gnu/store= /vp2s1nxsc9vvc1ix66xpbf041f8nacxr-boost-1.72.0/include -I/usr/include -Wno-= old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds -I/tmp/guix-bui= ld-openfoam-4.1.drv-0/OpenFOAM-4.1/applications/utilities/mesh/generation/e= xtrude2DMesh/extrude2DMesh/lnInclude -I../conformalVoronoi2DMesh/lnInclude = -I../conformalVoronoiMesh/lnInclude -I/tmp/guix-build-openfoam-4.1.drv-0/Op= enFOAM-4.1/src/parallel/decompose/decompositionMethods/lnInclude -I/tmp/gui= x-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/tmp/g= uix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/meshTools/lnInclude -I/tmp/gu= ix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/surfMesh/lnInclude -I/tmp/guix= -build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/edgeMesh/lnInclude -I/tmp/guix-b= uild-openfoam-4.1.drv-0/OpenFOAM-4.1/src/dynamicMesh/lnInclude -I/tmp/guix-= build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/mesh/extrudeModel/lnInclude -I/tm= p/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/sampling/lnInclude -I/tmp/= guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/triSurface/lnInclude -I/tmp/= guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/fileFormats/lnInclude -I/tmp= /guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/mesh/snappyHexMesh/lnInclud= e -IlnInclude -I. -I/tmp/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/Ope= nFOAM/lnInclude -I/tmp/guix-build-openfoam-4.1.drv-0/OpenFOAM-4.1/src/OSspe= cific/POSIX/lnInclude -fPIC -c foamyQuadMesh.C -o /tmp/guix-build-openfoa= m-4.1.drv-0/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilit= ies/mesh/generation/foamyMesh/foamyQuadMesh/foamyQuadMesh.o In file included from insertSurfaceNearPointPairs.C:26:0: CV2D.H:352:51: error: =E2=80=98point=E2=80=99 does not name a type inline const point2D& toPoint2D(const point&) const; ^~~~~ CV2D.H:354:20: error: =E2=80=98point=E2=80=99 does not name a type inline point toPoint3D(const point2D&) const; ^~~~~ --8<---------------cut here---------------end--------------->8--- It would probably be best to upgrade, but that=E2=80=99s an intimidating pi= ece of software and it takes a lot of CPU time to build. Thoughts? Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index 3f2be5766c..7f091c02e3 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright =C2=A9 2015, 2016 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2015, 2016, 2021 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2015 Tom=C3=A1=C5=A1 =C4=8Cech ;;; Copyright =C2=A9 2016, 2019 Leo Famulari ;;; Copyright =C2=A9 2016, 2017, 2019 Ricardo Wurmus @@ -796,6 +796,19 @@ (define-public cgal ;; permissive licenses. (license license:gpl3+))) =20 +(define-public cgal-4 + (package + (inherit cgal) + (version "4.14.2") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/CGAL/cgal/releases/download/v" ver= sion + "/CGAL-" version ".tar.xz")) + (sha256 + (base32 + "08lrp3hfwdypggz4138bnkh6bjxn441zg2y9xnq5mrjfc5ini6w1"))))= )) + (define-public ilmbase (package (name "ilmbase") diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 23580322bb..f95356d913 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -88,7 +88,7 @@ (define-public openfoam (build-system gnu-build-system) (inputs `(("boost" ,boost) - ("cgal" ,cgal) + ("cgal" ,cgal-4) ("flex" ,flex) ("git" ,git) ("gmp" ,gmp) --=-=-=-- ------------=_1686862982-19782-1--