From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:46336) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIecB-0004M3-Jb for guix-patches@gnu.org; Sun, 29 Mar 2020 16:33:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIecA-0003JN-Kh for guix-patches@gnu.org; Sun, 29 Mar 2020 16:33:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48444) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIecA-0003Is-HK for guix-patches@gnu.org; Sun, 29 Mar 2020 16:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jIecA-0003Fm-FD for guix-patches@gnu.org; Sun, 29 Mar 2020 16:33:02 -0400 Subject: [bug#40283] [WIP PATCH] gnu: flint: Build with ntl. Resent-Message-ID: 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 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 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40283@debbugs.gnu.org * 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