Bug#818814: mlpack: FTBFS with libc 2.23: there are no arguments to 'isnan' that depend on a template parameter

Martin Michlmayr tbm at hpe.com
Sun Mar 20 20:04:46 UTC 2016


Package: mlpack
Version: 2.0.1-1
Severity: important
User: debian-glibc at lists.debian.org
Usertags: 2.23

This package fails to build with libc6 2.23 (2.23-0experimental0 from
experimental).

> sbuild (Debian sbuild) 0.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
...
> [ 25%] Building CXX object src/mlpack/CMakeFiles/mlpack.dir/methods/sparse_coding/sparse_coding.cpp.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/mlpack && /usr/bin/c++   -DARMA_NO_DEBUG -DBACKTRACE_FOUND -DBACKTRACE_HEADER=\"execinfo.h\" -DBOOST_TEST_DYN_LINK -DNDEBUG -Dmlpack_EXPORTS -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/src/mlpack/..  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -std=c++0x -Wall -Wextra -ftemplate-depth=1000 -O3 -fopenmp -fPIC   -o CMakeFiles/mlpack.dir/methods/sparse_coding/sparse_coding.cpp.o -c /<<PKGBUILDDIR>>/src/mlpack/methods/sparse_coding/sparse_coding.cpp
> In file included from /<<PKGBUILDDIR>>/src/mlpack/../mlpack/methods/kmeans/kmeans.hpp:199:0,
>                  from /<<PKGBUILDDIR>>/src/mlpack/methods/gmm/em_fit.hpp:22,
>                  from /<<PKGBUILDDIR>>/src/mlpack/methods/gmm/gmm.hpp:22,
>                  from /<<PKGBUILDDIR>>/src/mlpack/methods/gmm/gmm.cpp:16:
> /<<PKGBUILDDIR>>/src/mlpack/../mlpack/methods/kmeans/kmeans_impl.hpp: In member function 'void mlpack::kmeans::KMeans<MetricType, InitialPartitionPolicy, EmptyClusterPolicy, LloydStepType, MatType>::Cluster(const MatType&, size_t, arma::mat&, bool)':
> /<<PKGBUILDDIR>>/src/mlpack/../mlpack/methods/kmeans/kmeans_impl.hpp:178:20: error: there are no arguments to 'isnan' that depend on a template parameter, so a declaration of 'isnan' must be available [-fpermissive]
>      if (isnan(cNorm) || isinf(cNorm))
>                     ^
> /<<PKGBUILDDIR>>/src/mlpack/../mlpack/methods/kmeans/kmeans_impl.hpp:178:20: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
> /<<PKGBUILDDIR>>/src/mlpack/../mlpack/methods/kmeans/kmeans_impl.hpp:178:36: error: there are no arguments to 'isinf' that depend on a template parameter, so a declaration of 'isinf' must be available [-fpermissive]
>      if (isnan(cNorm) || isinf(cNorm))
>                                     ^
> src/mlpack/CMakeFiles/mlpack.dir/build.make:689: recipe for target 'src/mlpack/CMakeFiles/mlpack.dir/methods/gmm/gmm.cpp.o' failed
> make[4]: *** [src/mlpack/CMakeFiles/mlpack.dir/methods/gmm/gmm.cpp.o] Error 1
> make[4]: *** Waiting for unfinished jobs....

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the debian-science-maintainers mailing list