Bug#778190: yade: ftbfs with GCC-5
Matthias Klose
doko at debian.org
Thu Feb 12 10:38:16 UTC 2015
Package: src:yade
Version: 1.12.0-2
Severity: normal
Tags: sid stretch
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-5
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-5/g++-5, but succeeds to build with gcc-4.9/g++-4.9. The
severity of this report may be raised before the stretch release.
The full build log can be found at:
http://people.debian.org/~doko/logs/gcc5-20150205/yade_1.12.0-2_unstable_gcc5.log
The last lines of the build log are at the end of this report.
To build with GCC 5, either set CC=gcc-5 CXX=g++-5 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t experimental install g++
Common build failures are C11 as the default C mode, new warnings
resulting in build failures with -Werror turned on, or new/dropped
symbols in Debian symbols files. For other C/C++ related build failures
see the porting guide at http://gcc.gnu.org/gcc-5/porting_to.html
[...]
from /«PKGBUILDDIR»/lib/serialization/Serializable.hpp:15,
from /«PKGBUILDDIR»/core/Material.hpp:3,
from /«PKGBUILDDIR»/pkg/common/ElastMat.hpp:3,
from /«PKGBUILDDIR»/pkg/dem/MicroMacroAnalyser.cpp:10:
/usr/include/c++/5/backward/binders.h:143:11: note: declared here
class binder2nd
^
In file included from /usr/include/eigen3/Eigen/src/Core/ArrayBase.h:109:0,
from /usr/include/eigen3/Eigen/Core:350,
from /«PKGBUILDDIR»/lib/base/Math.hpp:96,
from /«PKGBUILDDIR»/lib/serialization/Serializable.hpp:15,
from /«PKGBUILDDIR»/core/Material.hpp:3,
from /«PKGBUILDDIR»/pkg/common/ElastMat.hpp:3,
from /«PKGBUILDDIR»/pkg/dem/MicroMacroAnalyser.cpp:10:
/usr/include/eigen3/Eigen/src/Core/../plugins/ArrayCwiseUnaryOps.h: In member function 'const Eigen::CwiseUnaryOp<std::binder2nd<std::greater_equal<typename Eigen::internal::traits<T>::Scalar> >, const Derived> Eigen::ArrayBase<Derived>::operator>=(const Scalar&) const':
/usr/include/eigen3/Eigen/src/Core/../plugins/ArrayCwiseUnaryOps.h:201:148: warning: 'template<class _Operation> class std::binder2nd' is deprecated [-Wdeprecated-declarations]
In file included from /usr/include/c++/5/bits/stl_function.h:1128:0,
from /usr/include/c++/5/string:48,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /«PKGBUILDDIR»/lib/base/Math.hpp:11,
from /«PKGBUILDDIR»/lib/serialization/Serializable.hpp:15,
from /«PKGBUILDDIR»/core/Material.hpp:3,
from /«PKGBUILDDIR»/pkg/common/ElastMat.hpp:3,
from /«PKGBUILDDIR»/pkg/dem/MicroMacroAnalyser.cpp:10:
/usr/include/c++/5/backward/binders.h:143:11: note: declared here
class binder2nd
^
/«PKGBUILDDIR»/pkg/dem/MicroMacroAnalyser.cpp: In member function 'void MicroMacroAnalyser::postLoad(MicroMacroAnalyser&)':
/«PKGBUILDDIR»/pkg/dem/MicroMacroAnalyser.cpp:32:53: error: cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in initialization
bool file_exists = std::ifstream(outputFile.c_str()); //if file does not exist, we will write colums titles
^
/«PKGBUILDDIR»/pkg/dem/MicroMacroAnalyser.cpp: In member function 'virtual void MicroMacroAnalyser::action()':
/«PKGBUILDDIR»/pkg/dem/MicroMacroAnalyser.cpp:54:54: error: cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in initialization
bool file_exists = std::ifstream(outputFile.c_str());
^
make[3]: *** [CMakeFiles/yade.dir/pkg/dem/MicroMacroAnalyser.cpp.o] Error 1
CMakeFiles/yade.dir/build.make:1299: recipe for target 'CMakeFiles/yade.dir/pkg/dem/MicroMacroAnalyser.cpp.o' failed
make[3]: Leaving directory '/«PKGBUILDDIR»/debian/build'
make[2]: *** [CMakeFiles/yade.dir/all] Error 2
CMakeFiles/Makefile2:192: recipe for target 'CMakeFiles/yade.dir/all' failed
make[2]: Leaving directory '/«PKGBUILDDIR»/debian/build'
make[1]: *** [all] Error 2
Makefile:120: recipe for target 'all' failed
make[1]: Leaving directory '/«PKGBUILDDIR»/debian/build'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2
debian/rules:7: recipe for target 'build-arch' failed
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
More information about the debian-science-maintainers
mailing list