Package: src:polymake Version: 2.14r1-1 Severity: serious Tags: sid stretch
Fails to build with gmp 6.1: error: call of overloaded 'gcd(mpz_class&, mpz_class&)' is ambiguous
[...] make[2]: Entering directory '/home/packages/tmp/polymake-2.14r1/build.x86_64/bundled/group/apps/matroid' g++ -c -o projective_plane.o -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/home/packages/tmp/polymake-2.14r1/include/core-wrappers -I/home/packages/tmp/polymake-2.14r1/include/core -I/home/packages/tmp/polymake-2.14r1/bundled/group/include/app-wrappers -I/home/packages/tmp/polymake-2.14r1/bundled/group/include/apps -I../../../../../bundled/lrs/include/app-wrappers -I../../../../../bundled/lrs/include/apps -I../../../../../bundled/cdd/include/app-wrappers -I../../../../../bundled/cdd/include/apps -I/home/packages/tmp/polymake-2.14r1/include/app-wrappers -I/home/packages/tmp/polymake-2.14r1/include/apps -I/usr/include/cdd -I../../../../../bundled/group/external/permlib/include -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -ftemplate-depth-200 -Wall -Wno-strict-aliasing -Wno-parentheses -fwrapv -fopenmp -DPOLYMAKE_APPNAME=matroid -DNDEBUG -DPOLYMAKE_DEBUG=0 -O2 -MD /home/packages/tmp/polymake-2.14r1/bundled/group/apps/matroid/src/projective_plane.cc g++ -shared -L/usr/local/lib -fstack-protector -o ../../lib/matroid.so projective_plane.o -Wl,-z,relro -Wl,-z,relro -fopenmp -lmpfr -lgmp -lpthread make[2]: Leaving directory '/home/packages/tmp/polymake-2.14r1/build.x86_64/bundled/group/apps/matroid' make[2]: Entering directory '/home/packages/tmp/polymake-2.14r1/build.x86_64/bundled/libnormaliz/apps/polytope' /usr/bin/perl /home/packages/tmp/polymake-2.14r1/support/guarded_compiler.pl g++ -c -o normaliz.o -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/home/packages/tmp/polymake-2.14r1/include/core-wrappers -I/home/packages/tmp/polymake-2.14r1/include/core -I/home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/include/app-wrappers -I/home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/include/apps -I/home/packages/tmp/polymake-2.14r1/include/app-wrappers -I/home/packages/tmp/polymake-2.14r1/include/apps -fopenmp -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -ftemplate-depth-200 -Wall -Wno-strict-aliasing -Wno-parentheses -fwrapv -fopenmp -DPOLYMAKE_APPNAME=polytope -DNDEBUG -DPOLYMAKE_DEBUG=0 -O2 -MD -I/home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz -I/home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/apps/polytope -I/home/packages/tmp/polymake-2.14r1/apps/polytope -include src/normaliz.cc /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/apps/polytope/src/perl/wrap-normaliz.cc In file included from /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/libnormaliz-all.cpp:37:0, from /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/apps/polytope/src/normaliz.cc:39, from <command-line>:0: /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/HilbertSeries.cpp: In member function 'void libnormaliz::HilbertSeries::computeHilbertQuasiPolynomial() const': /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/HilbertSeries.cpp:358:26: error: call of overloaded 'gcd(mpz_class&, mpz_class&)' is ambiguous g = gcd(g,quasi_denom); ^ In file included from /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/libnormaliz-all.cpp:25:0, from /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/apps/polytope/src/normaliz.cc:39, from <command-line>:0: /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/integer.cpp:77:22: note: candidate: Integer libnormaliz::gcd(const Integer&, const Integer&) [with Integer = __gmp_expr<__mpz_struct [1], __mpz_struct [1]>] template<> mpz_class gcd<mpz_class>(const mpz_class& a, const mpz_class& b) { ^ In file included from /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/apps/polytope/src/normaliz.cc:18:0, from <command-line>:0: /usr/include/gmpxx.h:3083:1: note: candidate: __gmp_expr<typename __gmp_resolve_expr<T, V>::value_type, __gmp_binary_expr<__gmp_expr<T, U>, __gmp_expr<V, W>, __gmp_gcd_function> > gcd(const __gmp_expr<T, U>&, const __gmp_expr<V, W>&) [with T = __mpz_struct [1]; U = __mpz_struct [1]; V = __mpz_struct [1]; W = __mpz_struct [1]; typename __gmp_resolve_expr<T, V>::value_type = __mpz_struct [1]] __GMP_DEFINE_BINARY_FUNCTION(gcd, __gmp_gcd_function) ^ In file included from /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/libnormaliz-all.cpp:26:0, from /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/apps/polytope/src/normaliz.cc:39, from <command-line>:0: /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/vector_operations.cpp: In instantiation of 'Integer libnormaliz::v_gcd(const std::vector<Value>&) [with Integer = __gmp_expr<__mpz_struct [1], __mpz_struct [1]>]': /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/matrix.cpp:640:18: required from 'Integer libnormaliz::Matrix<Integer>::matrix_gcd() const [with Integer = __gmp_expr<__mpz_struct [1], __mpz_struct [1]>]' /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/HilbertSeries.cpp:357:33: required from here /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/vector_operations.cpp:214:14: error: call of overloaded 'gcd(__gmp_expr<__mpz_struct [1], __mpz_struct [1]>&, const __gmp_expr<__mpz_struct [1], __mpz_struct [1]>&)' is ambiguous g=gcd(g,v[i]); ^ In file included from /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/libnormaliz-all.cpp:25:0, from /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/apps/polytope/src/normaliz.cc:39, from <command-line>:0: /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/external/libnormaliz/integer.cpp:77:22: note: candidate: Integer libnormaliz::gcd(const Integer&, const Integer&) [with Integer = __gmp_expr<__mpz_struct [1], __mpz_struct [1]>] template<> mpz_class gcd<mpz_class>(const mpz_class& a, const mpz_class& b) { ^ In file included from /home/packages/tmp/polymake-2.14r1/bundled/libnormaliz/apps/polytope/src/normaliz.cc:18:0, from <command-line>:0: /usr/include/gmpxx.h:3083:1: note: candidate: __gmp_expr<typename __gmp_resolve_expr<T, V>::value_type, __gmp_binary_expr<__gmp_expr<T, U>, __gmp_expr<V, W>, __gmp_gcd_function> > gcd(const __gmp_expr<T, U>&, const __gmp_expr<V, W>&) [with T = __mpz_struct [1]; U = __mpz_struct [1]; V = __mpz_struct [1]; W = __mpz_struct [1]; typename __gmp_resolve_expr<T, V>::value_type = __mpz_struct [1]] __GMP_DEFINE_BINARY_FUNCTION(gcd, __gmp_gcd_function) ^ ../../../../../support/build.make:150: recipe for target 'normaliz.o' failed make[2]: *** [normaliz.o] Error 1 make[2]: Leaving directory '/home/packages/tmp/polymake-2.14r1/build.x86_64/bundled/libnormaliz/apps/polytope' Makefile:91: recipe for target 'compile' failed make[1]: *** [compile] Error 2 make[1]: Leaving directory '/home/packages/tmp/polymake-2.14r1' dh_auto_build: make -j3 returned exit code 2 debian/rules:13: recipe for target 'build-arch' failed make: *** [build-arch] Error 2 dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2