Bug#818817: woo: FTBFS with libc 2.23: 'isnan' was not declared in this scope

Martin Michlmayr tbm at hpe.com
Sun Mar 20 20:06:22 UTC 2016


Package: woo
Version: 1.0+dfsg1-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
...

> build-src-tree/woo/pkg/dem/Particle.hpp: In member function 'void Shape::setBaseColor(Real)':
> build-src-tree/woo/pkg/dem/Particle.hpp:360:39: error: 'isnan' was not declared in this scope
>   void setBaseColor(Real c){ if(isnan(c)) return; color=trunc(color)+(color<0?-1:1)*CompUtils::clamped(c,0,1); }
>                                        ^
> build-src-tree/woo/pkg/dem/Particle.hpp:360:39: note: suggested alternatives:
> In file included from /usr/include/c++/5/random:38:0,
>                  from /usr/include/c++/5/bits/stl_algo.h:66,
>                  from /usr/include/c++/5/algorithm:62,
>                  from /usr/include/boost/iterator/iterator_concepts.hpp:29,
>                  from /usr/include/boost/range/concepts.hpp:20,
>                  from /usr/include/boost/range/size_type.hpp:20,
>                  from /usr/include/boost/range/size.hpp:21,
>                  from /usr/include/boost/range/functions.hpp:20,
>                  from /usr/include/boost/range/iterator_range_core.hpp:38,
>                  from /usr/include/boost/lexical_cast.hpp:30,
>                  from build-src-tree/woo/core/Dispatcher.hpp:11,
>                  from build-src-tree/woo/pkg/dem/Collision.hpp:2,
>                  from build-src-tree/woo/pkg/dem/InsertionSortCollider.hpp:4,
>                  from build-src-tree/../pkg/dem/InsertionSortCollider.cpp:3,
>                  from build-src-tree/src/chunk-65-InsertionSortCollider.cpp:1:
> /usr/include/c++/5/cmath:641:5: note:   'std::isnan'
>      isnan(_Tp __x)
>      ^
> In file included from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:35:0,
>                  from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:64,
>                  from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:53,
>                  from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:34,
>                  from /usr/include/boost/lexical_cast.hpp:32,
>                  from build-src-tree/woo/core/Dispatcher.hpp:11,
>                  from build-src-tree/woo/pkg/dem/Collision.hpp:2,
>                  from build-src-tree/woo/pkg/dem/InsertionSortCollider.hpp:4,
>                  from build-src-tree/../pkg/dem/InsertionSortCollider.cpp:3,
>                  from build-src-tree/src/chunk-65-InsertionSortCollider.cpp:1:
> /usr/include/boost/math/special_functions/fpclassify.hpp:579:14: note:   'boost::math::isnan'
>  inline bool (isnan)(T x)
>               ^
> In file included from /usr/include/eigen3/Eigen/Core:441:0,
>                  from build-src-tree/woo/lib/base/Math.hpp:55,
>                  from build-src-tree/woo/core/Master.hpp:16,
>                  from build-src-tree/woo/core/Dispatcher.hpp:13,
>                  from build-src-tree/woo/pkg/dem/Collision.hpp:2,
>                  from build-src-tree/woo/pkg/dem/InsertionSortCollider.hpp:4,
>                  from build-src-tree/../pkg/dem/InsertionSortCollider.cpp:3,
>                  from build-src-tree/src/chunk-65-InsertionSortCollider.cpp:1:
> /usr/include/eigen3/Eigen/src/Core/GlobalFunctions.h:67:36: note:   'Eigen::isnan'
>    EIGEN_ARRAY_DECLARE_GLOBAL_UNARY(isnan,scalar_isnan_op)
>                                     ^
> /usr/include/eigen3/Eigen/src/Core/GlobalFunctions.h:17:4: note: in definition of macro 'EIGEN_ARRAY_DECLARE_GLOBAL_UNARY'
>    (NAME)(const Eigen::ArrayBase<Derived>& x) { \
>     ^
> In file included from /usr/include/eigen3/Eigen/Core:302:0,
>                  from build-src-tree/woo/lib/base/Math.hpp:55,
>                  from build-src-tree/woo/core/Master.hpp:16,
>                  from build-src-tree/woo/core/Dispatcher.hpp:13,
>                  from build-src-tree/woo/pkg/dem/Collision.hpp:2,
>                  from build-src-tree/woo/pkg/dem/InsertionSortCollider.hpp:4,
>                  from build-src-tree/../pkg/dem/InsertionSortCollider.cpp:3,
>                  from build-src-tree/src/chunk-65-InsertionSortCollider.cpp:1:
> /usr/include/eigen3/Eigen/src/Core/MathFunctions.h:930:46: note:   'Eigen::numext::isnan'
>  template<typename T> EIGEN_DEVICE_FUNC bool (isnan)   (const T &x) { return internal::isnan_impl(x); }
>                                               ^
> In file included from build-src-tree/src/chunk-65-InsertionSortCollider.cpp:1:0:
> build-src-tree/../pkg/dem/InsertionSortCollider.cpp: In member function 'bool InsertionSortCollider::updateBboxes_doFullRun()':
> build-src-tree/../pkg/dem/InsertionSortCollider.cpp:297:24: error: 'isinf' was not declared in this scope
>    verletDist=isinf(minR) ? 0 : abs(verletDist)*minR;
...

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



More information about the debian-science-maintainers mailing list