Your message dated Wed, 21 Dec 2016 01:04:34 +0000
with message-id <e1cjvkc-00033j...@fasolo.debian.org>
and subject line Bug#848899: fixed in flint 2.5.2-14
has caused the Debian Bug report #848899,
regarding flint: Conflicting definition of count_leading_zeros in givaro 
affects flint
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
848899: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848899
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: flint
Version: 2.5.2-13


Hi,

On arm64 and ppc64el sagemath fails to build while trying to compile
/«PKGBUILDDIR»/sage/src/build/cythonized/sage/matrix/matrix_mpolynomial_dense.cpp

This is the relevant error:

[sagelib-7.4] In file included from /usr/include/recint/recdefine.h:145:0,
[sagelib-7.4]                  from /usr/include/recint/ruruint.h:43,
[sagelib-7.4]                  from /usr/include/recint/rumanip.h:41,
[sagelib-7.4]                  from /usr/include/recint/ruconvert.h:43,
[sagelib-7.4]                  from /usr/include/gmp++/gmp++_int.h:26,
[sagelib-7.4]                  from /usr/include/gmp++/gmp++.h:56,
[sagelib-7.4]                  from /usr/include/givaro/givinteger.h:19,
[sagelib-7.4]                  from /usr/include/givaro/modular-int8.h:29,
[sagelib-7.4]                  from /usr/include/givaro/modular.h:21,
[sagelib-7.4]                  from
/«PKGBUILDDIR»/sage/src/build/cythonized/sage/matrix/matrix_modn_dense_double.cpp:532:
[sagelib-7.4] /usr/include/flint/flint.h: In function 'unsigned int
FLINT_BIT_COUNT(mp_limb_t)':
[sagelib-7.4] /usr/include/flint/flint.h:257:11: error: 'UWtype' was not
declared in this scope
[sagelib-7.4]     if (x) count_leading_zeros(zeros, x);
[sagelib-7.4]            ^
[sagelib-7.4] /usr/include/flint/flint.h:257:11: note: suggested
alternative:
[sagelib-7.4] In file included from /usr/include/recint/ruruint.h:43:0,
[sagelib-7.4]                  from /usr/include/recint/rumanip.h:41,
[sagelib-7.4]                  from /usr/include/recint/ruconvert.h:43,
[sagelib-7.4]                  from /usr/include/gmp++/gmp++_int.h:26,
[sagelib-7.4]                  from /usr/include/gmp++/gmp++.h:56,
[sagelib-7.4]                  from /usr/include/givaro/givinteger.h:19,
[sagelib-7.4]                  from /usr/include/givaro/modular-int8.h:29,
[sagelib-7.4]                  from /usr/include/givaro/modular.h:21,
[sagelib-7.4]                  from
/«PKGBUILDDIR»/sage/src/build/cythonized/sage/matrix/matrix_modn_dense_double.cpp:532:
[sagelib-7.4] /usr/include/recint/recdefine.h:127:22: note:  
'RecInt::UWtype'
[sagelib-7.4]      typedef uint64_t UWtype;
[sagelib-7.4]                       ^~~~~~


count_leading_zeros is defined in flints longlong.h. There are several
architecture specific implementations and then in the end this:

#ifndef count_leading_zeros
#define count_leading_zeros(count, x)    
...
and similar for count_trailing_zeros.

In our case it seems that count_leading_zeros was already defined in
givaros reclonglong.h so if there is not architecture specific
implementation in longlong.h, the fallback does not work. For the logic
to work we can put in the beginning of longlong.h:

#undef count_leading_zeros
#undef count_trailing_zeros

I didn't test it yet.

Best,
Tobias

--- End Message ---
--- Begin Message ---
Source: flint
Source-Version: 2.5.2-14

We believe that the bug you reported is fixed in the latest version of
flint, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 848...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Tobias Hansen <than...@debian.org> (supplier of updated flint package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 21 Dec 2016 00:34:03 +0000
Source: flint
Binary: libflint-2.5.2 libflint-dev libflint-doc
Architecture: source
Version: 2.5.2-14
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Tobias Hansen <than...@debian.org>
Description:
 libflint-2.5.2 - C library for number theory, shared library
 libflint-dev - C library for number theory, development files
 libflint-doc - Documentation for the FLINT library
Closes: 848899
Changes:
 flint (2.5.2-14) unstable; urgency=medium
 .
   * Team upload.
   * New patch undef_count_leading_zeros.patch:
     Avoid problems when using flint together with givaro. (Closes: #848899)
Checksums-Sha1:
 57f77fd574a4944a2ccc50197a395ef6ed363855 2200 flint_2.5.2-14.dsc
 d6963974dbefc222c5ba6eb31f46c8641e760fbc 7304 flint_2.5.2-14.debian.tar.xz
Checksums-Sha256:
 04e7716849250158fa8ac31ff6c6e1fbcf04470cb1b07380bf3c902516ea4988 2200 
flint_2.5.2-14.dsc
 c1e75692d95bf10e12d05e33e3e3e4b1bc49062a8ea49caa9671a752f2e113d2 7304 
flint_2.5.2-14.debian.tar.xz
Files:
 4aadb5f72587609b6dd4a5e55c9685fd 2200 math optional flint_2.5.2-14.dsc
 378bbd1cdbbaba03b36c18dd46abf9ba 7304 math optional 
flint_2.5.2-14.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoH46ol3M2u2mYo0kjIIWnY7OzSoFAlhZ0QgACgkQjIIWnY7O
zSoAbw/+NX5leNXcHq2yBGr9jviqCANTf/dj0neSzv0wXGXbSB0SeMxLnLqCA298
KdFb58mJ4SY6I9vw7N73pxO5udtdKeqEIgAd05cCzocJFSoh0QKhdQmJM26R19mj
kcF5VaMBJwLvDPTzdu5baxIK/8kJ4ZCl5JJw5EKytfR9vHCJRzLp6Oy2zvYEsD4F
k8KiMSlbe/JLNdtvZZfaq9nRm9FKKATed4ZAJR4D7aY45nye/O1tRjw2yNm6IZXm
ZkWohYzYz4OKj2YQ55hG9oeYMvZf8BwmdG2RVOqExRKfVSFy/Ti+0pfWUwygolWZ
XPo3YvaewlYkO243KiY4p8wPPoi80DqSUpysUWFWRKSEgZ0b38nu7H8Yz2edE+BV
N5YVV/5plsBgrS0/TzL2FSkyj6Qhz2XBmmvhKvd2mCtXmt5/BgG3wmgiYCH+ZFXa
jvOHCKzoMMeg8Qsnhm9Llv8xElQnXmrHNTPK5sR8bcILaeCJMjXJBUQjIIeW6pFJ
um7x5uaoMTrKntl+SAusepKtVZQ3ZmTk8mus9Tf2Wwgur0UOL27UZaKiNWHUUi+6
ySV6WU6AWi3P6nzd7XLiHyY4AZ3/l6FrISP/tdfMnsIwbHtE1eKjI0XkfF/hImcq
IeS4BNmij+iw7XGIXOfOEaFgwFdUhUHyr959mU1Med7C3pLLfcA=
=PoI7
-----END PGP SIGNATURE-----

--- End Message ---
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to