From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:35850) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJdDv-0004lZ-MQ for guix-patches@gnu.org; Wed, 01 Apr 2020 09:16:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJdDu-0006QI-M1 for guix-patches@gnu.org; Wed, 01 Apr 2020 09:16:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54264) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJdDu-0006Q6-Ie for guix-patches@gnu.org; Wed, 01 Apr 2020 09:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJdDu-0000CH-Do for guix-patches@gnu.org; Wed, 01 Apr 2020 09:16:02 -0400 Subject: [bug#40283] [WIP PATCH] gnu: flint: Build with ntl. Resent-Message-ID: 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> 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: Marius Bakke Cc: 40283@debbugs.gnu.org --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--