[Debichem-devel] Bug#818812: madness: FTBFS with libc 2.23: 'isnan' was not declared in this scope

Martin Michlmayr tbm at hpe.com
Sun Mar 20 20:03:45 UTC 2016


Package: madness
Version: 0.10-6
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
...
> mpicxx -DHAVE_CONFIG_H   -I../../../src -I../../../src -I../../../src/apps -DMRA_CHEMDATA_DIR=\"/<<PKGBUILDDIR>>/src/apps/chem\" -Wdate-time -D_FORTIFY_SOURCE=2 -DMPICH_SKIP_MPICXX=1 -DOMPI_SKIP_MPICXX=1  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -O3 -Wall -Wno-strict-aliasing -Wno-deprecated -Wno-unused-local-typedefs -c -o plotxc.o plotxc.cc
> xcfunctional_ldaonly.cc: In member function 'madness::Tensor<double> madness::XCfunctional::exc(const std::vector<madness::Tensor<double> >&, int) const':
> xcfunctional_ldaonly.cc:103:27: error: 'isnan' was not declared in this scope
>              if (isnan(f[i])) throw "numerical error in lda functional";
>                            ^
> xcfunctional_ldaonly.cc:103:27: note: suggested alternative:
> 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 ../../../src/madness/world/dqueue.h:42,
>                  from ../../../src/madness/world/thread.h:41,
>                  from ../../../src/madness/misc/ran.h:36,
>                  from ../../../src/madness/tensor/tensor.h:36,
>                  from ../../../src/apps/chem/xcfunctional.h:10,
>                  from xcfunctional_ldaonly.cc:5:
> /usr/include/c++/5/cmath:641:5: note:   'std::isnan'
>      isnan(_Tp __x)
>      ^
> xcfunctional_ldaonly.cc:114:27: error: 'isnan' was not declared in this scope
>              if (isnan(f[i])) throw "numerical error in lda functional";
>                            ^
> xcfunctional_ldaonly.cc:114:27: note: suggested alternative:
> 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 ../../../src/madness/world/dqueue.h:42,
>                  from ../../../src/madness/world/thread.h:41,
>                  from ../../../src/madness/misc/ran.h:36,
>                  from ../../../src/madness/tensor/tensor.h:36,
>                  from ../../../src/apps/chem/xcfunctional.h:10,
>                  from xcfunctional_ldaonly.cc:5:
> /usr/include/c++/5/cmath:641:5: note:   'std::isnan'
>      isnan(_Tp __x)
>      ^
> xcfunctional_ldaonly.cc: In member function 'madness::Tensor<double> madness::XCfunctional::vxc(const std::vector<madness::Tensor<double> >&, int, int) const':
> xcfunctional_ldaonly.cc:139:27: error: 'isnan' was not declared in this scope
>              if (isnan(f[i])) throw "numerical error in lda functional";
>                            ^
> xcfunctional_ldaonly.cc:139:27: note: suggested alternative:
> 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 ../../../src/madness/world/dqueue.h:42,
>                  from ../../../src/madness/world/thread.h:41,
>                  from ../../../src/madness/misc/ran.h:36,
>                  from ../../../src/madness/tensor/tensor.h:36,
>                  from ../../../src/apps/chem/xcfunctional.h:10,
>                  from xcfunctional_ldaonly.cc:5:
> /usr/include/c++/5/cmath:641:5: note:   'std::isnan'
>      isnan(_Tp __x)
>      ^
> xcfunctional_ldaonly.cc:151:27: error: 'isnan' was not declared in this scope
>              if (isnan(f[i])) throw "numerical error in lda functional";
...

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



More information about the Debichem-devel mailing list