From unknown Thu Aug 21 14:54:18 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#40283] [WIP PATCH] gnu: flint: Build with ntl. Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Mar 2020 20:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40283 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40283@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158551396112476 (code B ref -1); Sun, 29 Mar 2020 20:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Mar 2020 20:32:41 +0000 Received: from localhost ([127.0.0.1]:59990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIebo-0003F8-Hm for submit@debbugs.gnu.org; Sun, 29 Mar 2020 16:32:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:50701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIebm-0003F0-Qj for submit@debbugs.gnu.org; Sun, 29 Mar 2020 16:32:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46313) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIebl-0004LX-Nf for guix-patches@gnu.org; Sun, 29 Mar 2020 16:32:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIebk-0002v5-Ja for guix-patches@gnu.org; Sun, 29 Mar 2020 16:32:37 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:39766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jIebk-0002l8-Ac for guix-patches@gnu.org; Sun, 29 Mar 2020 16:32:36 -0400 Received: (qmail 28324 invoked by uid 1009); 29 Mar 2020 22:32:28 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25765. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.020428 secs); 29 Mar 2020 20:32:28 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 29 Mar 2020 22:32:28 +0200 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Sun, 29 Mar 2020 22:32:24 +0200 Message-Id: <20200329203224.27052-1-kuba@kadziolka.net> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 37.59.186.212 X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/algebra.scm (flint)[inputs]: Add ntl. [arguments]: Pass --with-ntl to configure. --- This is required by sagemath, but the patch as written makes the build error: /gnu/store/9yzqiiyfhxi4yhndp46nndi77ica9g4i-ntl-11.4.3/include/NTL/vector.h:201:31: error: invalid conversion from ‘const NTL::Vec*’ to ‘int’ [-fpermissive] 201 | { VecStrategy::do_BlockConstructFromVec(p, n, q); } | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | const NTL::Vec* Arch Linux seems to be using the same version of ntl and flint, and I don't see any special workarounds in their PKGBUILDs. I guessed that the gcc version might be influencing things, but adding gcc-9 to native-inputs didn't help. Does Guix set up GCC with some non-standard default flags, maybe? gnu/packages/algebra.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index af50c2d775..99b69eba96 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -445,6 +445,8 @@ or text interfaces) or as a C++ library.") "11syazv1a8rrnac3wj3hnyhhflpqcmq02q8pqk2m6g2k6h0gxwfb")) (patches (search-patches "flint-ldconfig.patch")))) (build-system gnu-build-system) + (inputs + `(("ntl" ,ntl))) (propagated-inputs `(("gmp" ,gmp) ("mpfr" ,mpfr))) ; header files from both are included by flint/arith.h @@ -456,13 +458,15 @@ or text interfaces) or as a C++ library.") (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (gmp (assoc-ref inputs "gmp")) - (mpfr (assoc-ref inputs "mpfr"))) + (mpfr (assoc-ref inputs "mpfr")) + (ntl (assoc-ref inputs "ntl"))) ;; do not pass "--enable-fast-install", which makes the ;; homebrew configure process fail (invoke "./configure" (string-append "--prefix=" out) (string-append "--with-gmp=" gmp) - (string-append "--with-mpfr=" mpfr)) + (string-append "--with-mpfr=" mpfr) + (string-append "--with-ntl=" ntl)) #t)))))) (synopsis "Fast library for number theory") (description -- 2.26.0 From unknown Thu Aug 21 14:54:18 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#40283] [WIP PATCH] gnu: flint: Build with ntl. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 31 Mar 2020 15:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40283 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= , 40283@debbugs.gnu.org Received: via spool by 40283-submit@debbugs.gnu.org id=B40283.158566755426944 (code B ref 40283); Tue, 31 Mar 2020 15:13:02 +0000 Received: (at 40283) by debbugs.gnu.org; 31 Mar 2020 15:12:34 +0000 Received: from localhost ([127.0.0.1]:36801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJIZ8-00070V-54 for submit@debbugs.gnu.org; Tue, 31 Mar 2020 11:12:34 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJIZ5-000702-S2 for 40283@debbugs.gnu.org; Tue, 31 Mar 2020 11:12:32 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8BEF85C0084; Tue, 31 Mar 2020 11:12:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 31 Mar 2020 11:12:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=LDek2jY3bwrHRf7DTaiECRp5Jv 4VpxBPcSyQ3+xecGk=; b=sN3y6BVlgRcSvTYGTHmdi2qImPAeTazA3rooNpo2W4 aBPj7nrflUIenbhDPvXfWeTXdgdmbeRxve54+B8hG3eZ5lqyOwaphYRyb0uU308f +SFPTm7EuTpOi7ViDNRHZsSU436U4DD4RinGmSxhrz+fr24oAJiLUvAABiFQ441P qbpMUPPNxQaF6EplM1PmBbX8ZtGBREy2sJo1qKt/HRgDl8k9Zoe8BuRekQBaf4Gn pzYNsT3MyaGKK8/B2yQRObxaacayytxC6bTkuir4vLbdFHWY2v9g1gI72pSGigLx lxnzealOstAsvF64KjtL2bfBLe7kZbUoaLjg7RAwoJrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=LDek2j Y3bwrHRf7DTaiECRp5Jv4VpxBPcSyQ3+xecGk=; b=A4ivCmKzExEEKssl9VDyeZ c9JxPW7q01lPG7U+UK6JEnJmSECt5vBqTYE04tetzw4RyBtx1F2KvbblKLFX3pSM maPYUEiMDEu5AVq0JUQLcPlNzuWYtarKFCJqorC3Fi6Ec0jVfztmzxo//7PHTUSL eFlYskvCd8u81wh76qZU7SSx77a0xOwDwODfS4eNGhBc4eemMb2ew+HywOaqQdwz FoNpKVdaxg79wvym4DjvR5qvYTFujXJCN3d47fCR5mA/CqthnQ6cqkdvGhbHVz11 mcJ268tXKOFCxei3qefYhPuPQfoQLNcZxxY0Vu/PTnpa0+ktPOWR7s/voVanLIzA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrtddtgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehgtderre dtreejnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshht mhgrihhlrdgtohhmqeenucfkphepkeegrddvtddvrdeikedrjeehnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhm rghilhdrtghomh X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 03214306CB72; Tue, 31 Mar 2020 11:12:25 -0400 (EDT) From: Marius Bakke In-Reply-To: <20200329203224.27052-1-kuba@kadziolka.net> References: <20200329203224.27052-1-kuba@kadziolka.net> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Tue, 31 Mar 2020 17:12:24 +0200 Message-ID: <87pncstv6v.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) 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: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jakub K=C4=85dzio=C5=82ka writes: > * gnu/packages/algebra.scm (flint)[inputs]: Add ntl. > [arguments]: Pass --with-ntl to configure. > --- > This is required by sagemath, but the patch as written makes the build > error: > > /gnu/store/9yzqiiyfhxi4yhndp46nndi77ica9g4i-ntl-11.4.3/include/NTL/vector= .h:201:31: error: invalid conversion from =E2=80=98const NTL::Vec*= =E2=80=99 to =E2=80=98int=E2=80=99 [-fpermissive] > 201 | { VecStrategy::do_BlockConstructFromVec(p, n, q); } > | ^~~~~~~~~~~~~~~~~~~~~~~~ > | | > | const NTL::Vec* > > Arch Linux seems to be using the same version of ntl and flint, and I > don't see any special workarounds in their PKGBUILDs. I guessed that the > gcc version might be influencing things, but adding gcc-9 to > native-inputs didn't help. Does Guix set up GCC with some non-standard > default flags, maybe? This is because of -Werror, which is not supposed to trigger on external dependencies. The issue has been fixed on 'core-updates' where dependencies are added on C_INCLUDE_PATH (which behave like -isystem) instead of CPATH (which behave like -I). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6DXdgACgkQoqBt8qM6 VPpfjgf7BHGcuFYcUyL9Gq7xC6nZRjSbnUp1IyeVt+bUNrsG2jZQjxjY9HzZk9sJ FaNJbJ9JoeaTyHF0ycZKUeLL+0Ik2SggcsSVE3Plfn6zsnYQVxGdPyW2vmgxj7Hy 7CuRZNovPkag9KiYc15yesuNisc7NZws+ipaRHeDIzgxCCvlNhnWyDdTZ6PTLx0t HIMJquOC4UxvJjRWdKftJ43wOawHJC16Yf3HnNv0+lN7+Ou5lyc530HYfzmJjOmo rGY752PlPC2yCDpAE3R7hmfC4JaJkarWdzIJnYFYBXJnfLTvV/VYCmdqQaHAQKf8 8k6fE4KuD9KdMW+BiCOXA7z5r++WXA== =rcAG -----END PGP SIGNATURE----- --=-=-=-- From unknown Thu Aug 21 14:54:18 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#40283] [WIP PATCH] gnu: flint: Build with ntl. Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 01 Apr 2020 13:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40283 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Marius Bakke Cc: 40283@debbugs.gnu.org Received: via spool by 40283-submit@debbugs.gnu.org id=B40283.1585746959737 (code B ref 40283); Wed, 01 Apr 2020 13:16:02 +0000 Received: (at 40283) by debbugs.gnu.org; 1 Apr 2020 13:15:59 +0000 Received: from localhost ([127.0.0.1]:37577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJdDq-0000Bp-QU for submit@debbugs.gnu.org; Wed, 01 Apr 2020 09:15:58 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:59768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJdDo-0000BX-CQ for 40283@debbugs.gnu.org; Wed, 01 Apr 2020 09:15:57 -0400 Received: (qmail 1846 invoked by uid 1009); 1 Apr 2020 15:15:54 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25768. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.025296 secs); 01 Apr 2020 13:15:54 -0000 Received: from unknown (HELO gravity) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 1 Apr 2020 15:15:54 +0200 Date: Wed, 1 Apr 2020 15:15:52 +0200 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Message-ID: <20200401131552.in7fm3gi3vmw3igw@gravity> References: <20200329203224.27052-1-kuba@kadziolka.net> <87pncstv6v.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="e3q4ggmsazo7w2ty" Content-Disposition: inline In-Reply-To: <87pncstv6v.fsf@devup.no> X-Spam-Score: 0.0 (/) 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: -1.0 (-) --e3q4ggmsazo7w2ty Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 31, 2020 at 05:12:24PM +0200, Marius Bakke wrote: > Jakub K=C4=85dzio=C5=82ka writes: >=20 > > * gnu/packages/algebra.scm (flint)[inputs]: Add ntl. > > [arguments]: Pass --with-ntl to configure. > > --- > > This is required by sagemath, but the patch as written makes the build > > error: > > > > /gnu/store/9yzqiiyfhxi4yhndp46nndi77ica9g4i-ntl-11.4.3/include/NTL/vect= or.h:201:31: error: invalid conversion from =E2=80=98const NTL::Vec*=E2=80=99 to =E2=80=98int=E2=80=99 [-fpermissive] > > 201 | { VecStrategy::do_BlockConstructFromVec(p, n, q)= ; } > > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > | | > > | const NTL::Vec* > > > > Arch Linux seems to be using the same version of ntl and flint, and I > > don't see any special workarounds in their PKGBUILDs. I guessed that the > > gcc version might be influencing things, but adding gcc-9 to > > native-inputs didn't help. Does Guix set up GCC with some non-standard > > default flags, maybe? >=20 > This is because of -Werror, which is not supposed to trigger on external > dependencies. The issue has been fixed on 'core-updates' where > dependencies are added on C_INCLUDE_PATH (which behave like -isystem) > instead of CPATH (which behave like -I). Thanks! I had a guess it was about -Werror, but I don't think I would've figured out the CPATH vs C_INCLUDE_PATH bit. As far as I understand, we're relatively close to merging c-u into master, and the patch is far =66rom urgent, so I won't bother with trying to come up with a workaround. Cheers, Jakub K=C4=85dzio=C5=82ka --e3q4ggmsazo7w2ty Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl6ElAgACgkQ4xWnWEYT FWSccw/9Ftu00GHsmFOr4BzqmFn5c24J/anlBkr0mUuc5jN7PQ6U3s9A+iBrFgmJ HcxTX6AaojoT3x9J7C/ucd5XOxP/sfr+EGz3Qk0zyhjWut1ZPXPXnTyD6bzymexc 98E2v3bAl76C8Py/E70Vut5/mCBtmCTCs1El1QBFF0rvf7CXC2bUer4EIqUrqUBd tymdUIe6jAQ6zgBNWROFUHoaWedZyiL6Bx2ITjoX07Ilb/77tUq0ZtNQfjS5EiYH kyWq/96iZ4AbVTGhOOYpJYlD3Vwpc3O+pNAxLR7/Sn9TRtpHDbYLLV0Ngd9itZS5 WAr5JhhTioOUaZeb+hFGumdBeLkICWKflUKjSWmnhCPwbiyLX+T/031OhNSwOVzX MnUQ6I/hHpwirEBFR4NXDZQl6f0fX2PStbV/q99o0xuPW5Br9L09H4jrzNbRcBB1 ZpkFVenDk5L70RjFeAIHde0YwAfmXYibX03oUtCaOYE8X8MiNNuTTpn7Ba3g4voY nqRmozmLTC/6UHv9qmJCewhr3ZkxvW897roOUZhkrMulxrqYgHUPlvLhkyypodQY gY3cUhPt37H7kuei/9sREVQThQIoXhThFiGUH29LhA/smLZVdpDtpxJuclsCTxBY I8LR4ozsWc4ZtSJmhNSGeDYAlyxUpOF3YLIYYYxurPgk41tYpus= =qaS2 -----END PGP SIGNATURE----- --e3q4ggmsazo7w2ty-- From unknown Thu Aug 21 14:54:18 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#40283] [PATCH v2 2/3] gnu: flint: Build with ntl. Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jun 2020 11:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40283 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40283@debbugs.gnu.org Cc: mbakke@fastmail.com Received: via spool by 40283-submit@debbugs.gnu.org id=B40283.159161435919188 (code B ref 40283); Mon, 08 Jun 2020 11:06:01 +0000 Received: (at 40283) by debbugs.gnu.org; 8 Jun 2020 11:05:59 +0000 Received: from localhost ([127.0.0.1]:55993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiFbL-0004zP-8E for submit@debbugs.gnu.org; Mon, 08 Jun 2020 07:05:59 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:38662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiFbI-0004zD-V7 for 40283@debbugs.gnu.org; Mon, 08 Jun 2020 07:05:57 -0400 Received: (qmail 16057 invoked by uid 1009); 8 Jun 2020 13:05:55 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25836. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.011936 secs); 08 Jun 2020 11:05:55 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 8 Jun 2020 13:05:55 +0200 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Mon, 8 Jun 2020 13:05:49 +0200 Message-Id: <20200608110550.16488-2-kuba@kadziolka.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608110550.16488-1-kuba@kadziolka.net> References: <20200608110550.16488-1-kuba@kadziolka.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Qmailux-2.08st: added fake Content-Type header Content-Type: text/plain X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/algebra.scm (flint)[inputs]: Add ntl. [arguments]: Pass --with-ntl to configure. --- gnu/packages/algebra.scm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 4559293a03..6b632d3e95 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -447,6 +447,8 @@ or text interfaces) or as a C++ library.") (sha256 (base32 "0h08a71kn8347zsqjamqnmrxjpsnnzpmhvxb6d2xmfrcs6nyv2ch")))) (build-system gnu-build-system) + (inputs + `(("ntl" ,ntl))) (propagated-inputs `(("gmp" ,gmp) ("mpfr" ,mpfr))) ; header files from both are included by flint/arith.h @@ -454,17 +456,24 @@ or text interfaces) or as a C++ library.") `(#:parallel-tests? #f ; seems to be necessary on arm #:phases (modify-phases %standard-phases + (add-before 'configure 'newer-c++ + (lambda _ + (substitute* "configure" + (("-ansi") "")) + #t)) (replace 'configure (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (gmp (assoc-ref inputs "gmp")) - (mpfr (assoc-ref inputs "mpfr"))) + (mpfr (assoc-ref inputs "mpfr")) + (ntl (assoc-ref inputs "ntl"))) ;; do not pass "--enable-fast-install", which makes the ;; homebrew configure process fail (invoke "./configure" (string-append "--prefix=" out) (string-append "--with-gmp=" gmp) - (string-append "--with-mpfr=" mpfr)) + (string-append "--with-mpfr=" mpfr) + (string-append "--with-ntl=" ntl)) #t)))))) (synopsis "Fast library for number theory") (description -- 2.26.2 From unknown Thu Aug 21 14:54:18 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#40283] [PATCH v2 1/3] gnu: flint: Update to 2.6.0. References: <20200329203224.27052-1-kuba@kadziolka.net> In-Reply-To: <20200329203224.27052-1-kuba@kadziolka.net> Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jun 2020 11:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40283 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40283@debbugs.gnu.org Cc: mbakke@fastmail.com Received: via spool by 40283-submit@debbugs.gnu.org id=B40283.159161436319232 (code B ref 40283); Mon, 08 Jun 2020 11:07:02 +0000 Received: (at 40283) by debbugs.gnu.org; 8 Jun 2020 11:06:03 +0000 Received: from localhost ([127.0.0.1]:55996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiFbO-000507-Hb for submit@debbugs.gnu.org; Mon, 08 Jun 2020 07:06:02 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:38658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiFbI-0004zC-Ve for 40283@debbugs.gnu.org; Mon, 08 Jun 2020 07:06:01 -0400 Received: (qmail 16041 invoked by uid 1009); 8 Jun 2020 13:05:55 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25836. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.053433 secs); 08 Jun 2020 11:05:55 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 8 Jun 2020 13:05:55 +0200 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Mon, 8 Jun 2020 13:05:48 +0200 Message-Id: <20200608110550.16488-1-kuba@kadziolka.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Qmailux-2.08st: added fake Content-Type header Content-Type: text/plain X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/algebra.scm (flint): Update to 2.6.0. * gnu/packages/patches/flint-ldconfig.patch: Remove the patch as it got applied upstream. * gnu/local.mk (dist_patch_DATA): Deregister the removed file. --- gnu/local.mk | 1 - gnu/packages/algebra.scm | 5 ++--- gnu/packages/patches/flint-ldconfig.patch | 26 ----------------------- 3 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 gnu/packages/patches/flint-ldconfig.patch diff --git a/gnu/local.mk b/gnu/local.mk index ae8a2275f7..27e96ea77b 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -921,7 +921,6 @@ dist_patch_DATA = \ %D%/packages/patches/findutils-localstatedir.patch \ %D%/packages/patches/findutils-test-rwlock-threads.patch \ %D%/packages/patches/flann-cmake-3.11.patch \ - %D%/packages/patches/flint-ldconfig.patch \ %D%/packages/patches/foobillard++-pkg-config.patch \ %D%/packages/patches/foomatic-filters-CVE-2015-8327.patch \ %D%/packages/patches/foomatic-filters-CVE-2015-8560.patch \ diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 1008d24cd3..4559293a03 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -438,15 +438,14 @@ or text interfaces) or as a C++ library.") (define-public flint (package (name "flint") - (version "2.5.2") + (version "2.6.0") (source (origin (method url-fetch) (uri (string-append "http://flintlib.org/flint-" version ".tar.gz")) (sha256 (base32 - "11syazv1a8rrnac3wj3hnyhhflpqcmq02q8pqk2m6g2k6h0gxwfb")) - (patches (search-patches "flint-ldconfig.patch")))) + "0h08a71kn8347zsqjamqnmrxjpsnnzpmhvxb6d2xmfrcs6nyv2ch")))) (build-system gnu-build-system) (propagated-inputs `(("gmp" ,gmp) diff --git a/gnu/packages/patches/flint-ldconfig.patch b/gnu/packages/patches/flint-ldconfig.patch deleted file mode 100644 index d7c66e17ab..0000000000 --- a/gnu/packages/patches/flint-ldconfig.patch +++ /dev/null @@ -1,26 +0,0 @@ -Patch by Andreas Enge . -Remedy the absence of ldconfig and explicitly create an additional symbolic -link to the flint library, as discussed privately with upstream. - -diff -r -u flint-2.5.2.orig/configure flint-2.5.2/configure ---- flint-2.5.2.orig/configure 2015-08-13 18:16:22.000000000 +0200 -+++ flint-2.5.2/configure 2015-08-14 17:38:14.316284437 +0200 -@@ -714,6 +714,7 @@ - echo "FLINT_SHARED=$SHARED" >> Makefile - echo "FLINT_LIB=$FLINT_LIB" >> Makefile - echo "FLINT_LIBNAME=$FLINT_LIBNAME" >> Makefile -+echo "FLINT_MAJOR=$FLINT_MAJOR" >> Makefile - echo "FLINT_SOLIB=$FLINT_SOLIB" >> Makefile - echo "EXEEXT=$EXEEXT" >> Makefile - echo "PREFIX=$PREFIX" >> Makefile -diff -r -u flint-2.5.2.orig/Makefile.in flint-2.5.2/Makefile.in ---- flint-2.5.2.orig/Makefile.in 2015-08-13 18:16:22.000000000 +0200 -+++ flint-2.5.2/Makefile.in 2015-08-14 17:38:50.584774817 +0200 -@@ -118,6 +118,7 @@ - $(LDCONFIG) -n "$(CURDIR)"; \ - fi - ln -sf "$(FLINT_LIB)" "$(FLINT_LIBNAME)"; \ -+ ln -sf "$(FLINT_LIB)" "$(FLINT_LIBNAME).$(FLINT_MAJOR)"; \ - - libflint.a: $(OBJS) $(LIB_SOURCES) $(EXT_SOURCES) $(HEADERS) $(EXT_HEADERS) | build build/interfaces - $(AT)$(foreach ext, $(EXTENSIONS), $(foreach dir, $(filter-out %templates, $(patsubst $(ext)/%.h, %, $(wildcard $(ext)/*.h))), mkdir -p build/$(dir); BUILD_DIR=$(CURDIR)/build/$(dir); export BUILD_DIR; MOD_DIR=$(dir); export MOD_DIR; $(MAKE) -f $(CURDIR)/Makefile.subdirs -C $(ext)/$(dir) static || exit $$?;)) -- 2.26.2 From unknown Thu Aug 21 14:54:18 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#40283] [PATCH v2 3/3] gnu: arb: Build with flint 2.6. Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jun 2020 11:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40283 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40283@debbugs.gnu.org Cc: mbakke@fastmail.com Received: via spool by 40283-submit@debbugs.gnu.org id=B40283.159161436519242 (code B ref 40283); Mon, 08 Jun 2020 11:07:02 +0000 Received: (at 40283) by debbugs.gnu.org; 8 Jun 2020 11:06:05 +0000 Received: from localhost ([127.0.0.1]:55998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiFbQ-00050H-VH for submit@debbugs.gnu.org; Mon, 08 Jun 2020 07:06:05 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:38666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiFbI-0004zF-VB for 40283@debbugs.gnu.org; Mon, 08 Jun 2020 07:06:02 -0400 Received: (qmail 16066 invoked by uid 1009); 8 Jun 2020 13:05:55 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25836. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.014697 secs); 08 Jun 2020 11:05:55 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 8 Jun 2020 13:05:55 +0200 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Date: Mon, 8 Jun 2020 13:05:50 +0200 Message-Id: <20200608110550.16488-3-kuba@kadziolka.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608110550.16488-1-kuba@kadziolka.net> References: <20200608110550.16488-1-kuba@kadziolka.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Qmailux-2.08st: added fake Content-Type header Content-Type: text/plain X-Spam-Score: 0.0 (/) 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: -1.0 (-) Backport an upstream patch to fix a compatibility issue with flint 2.6. * gnu/packages/algebra.scm (arb): Add patch. * gnu/packages/patches/arb-flint-2.6.patch: New file. * gnu/local.mk (dist_patch_DATA): Register new file. --- gnu/local.mk | 1 + gnu/packages/algebra.scm | 3 +- gnu/packages/patches/arb-flint-2.6.patch | 48 ++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/arb-flint-2.6.patch diff --git a/gnu/local.mk b/gnu/local.mk index 27e96ea77b..3ed0a98687 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -754,6 +754,7 @@ dist_patch_DATA = \ %D%/packages/patches/antlr3-3_1-fix-java8-compilation.patch \ %D%/packages/patches/antlr3-3_3-fix-java8-compilation.patch \ %D%/packages/patches/apr-skip-getservbyname-test.patch \ + %D%/packages/patches/arb-flint-2.6.patch \ %D%/packages/patches/aspell-default-dict-dir.patch \ %D%/packages/patches/ath9k-htc-firmware-binutils.patch \ %D%/packages/patches/ath9k-htc-firmware-gcc.patch \ diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 6b632d3e95..aceaee52f9 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -502,7 +502,8 @@ fast arithmetic.") (file-name (git-file-name name version)) (sha256 (base32 - "05lpy3hkl5f8ik19aw40cqydrb932xaf2n8hbq9ib5dnk7f010p1")))) + "05lpy3hkl5f8ik19aw40cqydrb932xaf2n8hbq9ib5dnk7f010p1")) + (patches (search-patches "arb-flint-2.6.patch")))) (build-system gnu-build-system) (propagated-inputs `(("flint" ,flint))) ; flint.h is included by arf.h diff --git a/gnu/packages/patches/arb-flint-2.6.patch b/gnu/packages/patches/arb-flint-2.6.patch new file mode 100644 index 0000000000..98ff5e95b4 --- /dev/null +++ b/gnu/packages/patches/arb-flint-2.6.patch @@ -0,0 +1,48 @@ +From d3d9983231e0f034e86a1e75761627eb8213b704 Mon Sep 17 00:00:00 2001 +From: fredrik +Date: Wed, 29 Apr 2020 13:41:36 +0200 +Subject: [PATCH] handle flint incompatibilities + +--- + fmpr.h | 4 ++++ + fmpz_extras.h | 4 ++++ + 2 files changed, 8 insertions(+) + +diff --git a/fmpr.h b/fmpr.h +index 2204d72e..c6a8c342 100644 +--- a/fmpr.h ++++ b/fmpr.h +@@ -22,7 +22,11 @@ + #include "flint/flint.h" + #include "flint/fmpz.h" + #include "flint/fmpq.h" ++#if __FLINT_RELEASE < 20600 + #include "flint/config.h" ++#else ++#include "flint/flint-config.h" ++#endif + #include "fmpz_extras.h" + + #ifndef flint_abort +diff --git a/fmpz_extras.h b/fmpz_extras.h +index 4fd0538f..486e28c8 100644 +--- a/fmpz_extras.h ++++ b/fmpz_extras.h +@@ -43,6 +43,8 @@ fmpz_add_inline(fmpz_t z, const fmpz_t x, const fmpz_t y) + fmpz_add(z, x, y); + } + ++#if __FLINT_RELEASE < 20600 ++ + static __inline__ void + fmpz_add_si(fmpz_t z, const fmpz_t x, slong y) + { +@@ -61,6 +63,8 @@ fmpz_sub_si(fmpz_t z, const fmpz_t x, slong y) + fmpz_add_ui(z, x, -y); + } + ++#endif ++ + static __inline__ void + fmpz_add_si_inline(fmpz_t z, const fmpz_t x, slong y) + { -- 2.26.2 From unknown Thu Aug 21 14:54:18 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: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Subject: bug#40283: closed (Re: [bug#41971] [WIP PATCH 0/5] Add SageMath) Message-ID: References: <20200710210640.izcxlglsmp6tvse7@gravity> <20200329203224.27052-1-kuba@kadziolka.net> X-Gnu-PR-Message: they-closed 40283 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 40283@debbugs.gnu.org Date: Fri, 10 Jul 2020 21:07:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1594415222-21245-1" This is a multi-part message in MIME format... ------------=_1594415222-21245-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #40283: [WIP PATCH] gnu: flint: Build with ntl. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 40283@debbugs.gnu.org. --=20 40283: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40283 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1594415222-21245-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 40283-done) by debbugs.gnu.org; 10 Jul 2020 21:06:48 +0000 Received: from localhost ([127.0.0.1]:43542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ju0EK-0005Vv-9A for submit@debbugs.gnu.org; Fri, 10 Jul 2020 17:06:48 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:48284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ju0EG-0005Ve-EW for 40283-done@debbugs.gnu.org; Fri, 10 Jul 2020 17:06:46 -0400 Received: (qmail 30868 invoked by uid 1009); 10 Jul 2020 23:06:42 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25868. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.043313 secs); 10 Jul 2020 21:06:42 -0000 Received: from unknown (HELO gravity) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 10 Jul 2020 23:06:42 +0200 Date: Fri, 10 Jul 2020 23:06:40 +0200 From: Jakub =?utf-8?B?S8SFZHppb8WCa2E=?= To: Nicolas Goaziou Subject: Re: [bug#41971] [WIP PATCH 0/5] Add SageMath Message-ID: <20200710210640.izcxlglsmp6tvse7@gravity> References: <20200620212802.31906-1-kuba@kadziolka.net> <87v9iz5w67.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sgjgbmmejxhmhmgt" Content-Disposition: inline In-Reply-To: <87v9iz5w67.fsf@nicolasgoaziou.fr> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40283-done Cc: 41971@debbugs.gnu.org, andreas@enge.fr, 40283-done@debbugs.gnu.org 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: -1.0 (-) --sgjgbmmejxhmhmgt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 07, 2020 at 02:47:28PM +0200, Nicolas Goaziou wrote: > Hello, >=20 > Jakub K=C4=85dzio=C5=82ka writes: >=20 > > This patchstack builds upon #40283 and packages (some of) SageMath. > > Currently, sagelib is built successfully, but the `sage' binary is not > > being installed. I'm submitting this here as I'm no longer actively > > working on this for now. Some things remain to be done: >=20 > Thanks! >=20 > Would it make sense to add the uncontroversial fourth first patches, > along with #40283, so it is easier to hack on the sagemath package > itself? Sure it would! I just did. > I'm also Cc'ing Andreas Enge, who showed interest in packaging Sagemath > a few months ago, and, AFAIK, was close to succeeding. Thanks! Regards, Jakub K=C4=85dzio=C5=82ka --sgjgbmmejxhmhmgt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl8I2GAACgkQ4xWnWEYT FWRWbBAAp5s3cOeZMLuvHVhZZdlbKDbi6G1Lm/3w9uXyONIfBhMYV7LfhBZeRIUH VJ8NRS91rxyBnbhowmTxQkuILCS9jhP+FXwTFi6m6fhWulfOSsxu8sr9q2u8cvcX JKYM5xpvxXKdgRWtns94K/N6lnWz0E4EP9xbOn+70+Jc/kLopJt6uwSm0jlLWJYD 1KLgAb2bOjtsxNmWRaHe/t94YdaLZg8Nd7jG4lZWzE5+l6O96s8DNI+9mGoorOso LXyQKbKgZ+XrCgWWCcoXlTrUt1XA7EBCy3FsHAx+0sP7hkYMNKy5sP1g/s7omiGL RLdvqsykCI+LYhKLyLFn+Ma96+/rvemh7l80d3nWdCmWGTHnpvmE60RavJeDAZqU li81PX3yc4MgkpFFlR+bk7/0TIsjqll+bwtcITMMIGacCwtnPDUrshCZ6S6fyfeD Gx5Dm5lJKNxCJWztcsfWL7hwqbz3pwnE2Z54E8vqRVsGvB8ApM/Pq2f5Mm9JR7Xz 2LYtLhhNnimMzXH0y63elL7kpgrXzgCBi3WqRI/uMcZMrtVQ/t1j1yF1n51q5vBk KMrDARce0DnMxCLgJPbBbKmkEMAt4sS9Rzrp88RNQpxsggeh5CIa6QkQQniR9uNq D6bVsiOJjHvZ38OtMif45ESXYoaiU6faDSt2rUAMdOjZAsK9hKQ= =h1CR -----END PGP SIGNATURE----- --sgjgbmmejxhmhmgt-- ------------=_1594415222-21245-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Mar 2020 20:32:41 +0000 Received: from localhost ([127.0.0.1]:59990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIebo-0003F8-Hm for submit@debbugs.gnu.org; Sun, 29 Mar 2020 16:32:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:50701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIebm-0003F0-Qj for submit@debbugs.gnu.org; Sun, 29 Mar 2020 16:32:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46313) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIebl-0004LX-Nf for guix-patches@gnu.org; Sun, 29 Mar 2020 16:32:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIebk-0002v5-Ja for guix-patches@gnu.org; Sun, 29 Mar 2020 16:32:37 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:39766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jIebk-0002l8-Ac for guix-patches@gnu.org; Sun, 29 Mar 2020 16:32:36 -0400 Received: (qmail 28324 invoked by uid 1009); 29 Mar 2020 22:32:28 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25765. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.020428 secs); 29 Mar 2020 20:32:28 -0000 Received: from unknown (HELO localhost.localdomain) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with AES256-SHA encrypted SMTP; 29 Mar 2020 22:32:28 +0200 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= To: guix-patches@gnu.org Subject: [WIP PATCH] gnu: flint: Build with ntl. Date: Sun, 29 Mar 2020 22:32:24 +0200 Message-Id: <20200329203224.27052-1-kuba@kadziolka.net> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 37.59.186.212 X-Spam-Score: -0.7 (/) 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: -1.7 (-) * gnu/packages/algebra.scm (flint)[inputs]: Add ntl. [arguments]: Pass --with-ntl to configure. --- This is required by sagemath, but the patch as written makes the build error: /gnu/store/9yzqiiyfhxi4yhndp46nndi77ica9g4i-ntl-11.4.3/include/NTL/vector.h:201:31: error: invalid conversion from ‘const NTL::Vec*’ to ‘int’ [-fpermissive] 201 | { VecStrategy::do_BlockConstructFromVec(p, n, q); } | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | const NTL::Vec* Arch Linux seems to be using the same version of ntl and flint, and I don't see any special workarounds in their PKGBUILDs. I guessed that the gcc version might be influencing things, but adding gcc-9 to native-inputs didn't help. Does Guix set up GCC with some non-standard default flags, maybe? gnu/packages/algebra.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index af50c2d775..99b69eba96 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -445,6 +445,8 @@ or text interfaces) or as a C++ library.") "11syazv1a8rrnac3wj3hnyhhflpqcmq02q8pqk2m6g2k6h0gxwfb")) (patches (search-patches "flint-ldconfig.patch")))) (build-system gnu-build-system) + (inputs + `(("ntl" ,ntl))) (propagated-inputs `(("gmp" ,gmp) ("mpfr" ,mpfr))) ; header files from both are included by flint/arith.h @@ -456,13 +458,15 @@ or text interfaces) or as a C++ library.") (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (gmp (assoc-ref inputs "gmp")) - (mpfr (assoc-ref inputs "mpfr"))) + (mpfr (assoc-ref inputs "mpfr")) + (ntl (assoc-ref inputs "ntl"))) ;; do not pass "--enable-fast-install", which makes the ;; homebrew configure process fail (invoke "./configure" (string-append "--prefix=" out) (string-append "--with-gmp=" gmp) - (string-append "--with-mpfr=" mpfr)) + (string-append "--with-mpfr=" mpfr) + (string-append "--with-ntl=" ntl)) #t)))))) (synopsis "Fast library for number theory") (description -- 2.26.0 ------------=_1594415222-21245-1--