Bug#831121: shark: FTBFS with GCC 6: HDF5Tests.cpp:39:56: error: ambiguous overload for 'operator=' (operand types are 'std::vector<int>' and 'boost::assign_detail::generic_list<double>')
Lucas Nussbaum
lucas at debian.org
Thu Jul 14 07:26:05 UTC 2016
Source: shark
Version: 3.1.0+ds1-1
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20160713 qa-ftbfs
Justification: FTBFS with GCC 6 on amd64
Hi,
During a rebuild of all packages in sid using the gcc-defaults package
available in experimental to make GCC default to version 6, your package failed
to build on amd64. For more information about GCC 6 and Stretch, see:
- https://wiki.debian.org/GCC6
- https://lists.debian.org/debian-devel-announce/2016/06/msg00007.html
Relevant part (hopefully):
> make[3]: Entering directory '/«BUILDDIR»/shark-3.1.0+ds1/obj-x86_64-linux-gnu'
> [ 22%] Building CXX object Test/CMakeFiles/Data_HDF5.dir/Data/HDF5Tests.cpp.o
> cd /«BUILDDIR»/shark-3.1.0+ds1/obj-x86_64-linux-gnu/Test && /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_PARAMETER_MAX_ARITY=15 -DBOOST_TEST_DYN_LINK -I/usr/include/hdf5/serial -I/«BUILDDIR»/shark-3.1.0+ds1/include -I/«BUILDDIR»/shark-3.1.0+ds1/obj-x86_64-linux-gnu/include -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -fopenmp -o CMakeFiles/Data_HDF5.dir/Data/HDF5Tests.cpp.o -c /«BUILDDIR»/shark-3.1.0+ds1/Test/Data/HDF5Tests.cpp
> In file included from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Rng/Cauchy.h:35:0,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Rng/GlobalRng.h:88,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Core/utility/functional.h:41,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/Dataset.h:54,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/HDF5.h:46,
> from /«BUILDDIR»/shark-3.1.0+ds1/Test/Data/HDF5Tests.cpp:3:
> /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Core/Math.h:138:3: warning: extra ';' [-Wpedantic]
> };
> ^
> In file included from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Core/utility/functional.h:41:0,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/Dataset.h:54,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/HDF5.h:46,
> from /«BUILDDIR»/shark-3.1.0+ds1/Test/Data/HDF5Tests.cpp:3:
> /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Rng/GlobalRng.h:211:52: warning: extra ';' [-Wpedantic]
> ANNOUNCE_SHARK_RNG( shark::FastRngType, FastRng );
> ^
> /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Rng/GlobalRng.h:212:51: warning: extra ';' [-Wpedantic]
> ANNOUNCE_SHARK_RNG( shark::DefaultRngType, Rng );
> ^
> In file included from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/BatchInterface.h:35:0,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/Impl/Dataset.inl:31,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/Dataset.h:56,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/HDF5.h:46,
> from /«BUILDDIR»/shark-3.1.0+ds1/Test/Data/HDF5Tests.cpp:3:
> /«BUILDDIR»/shark-3.1.0+ds1/include/shark/LinAlg/Base.h:125:52: warning: extra ';' [-Wpedantic]
> SHARK_VECTOR_MATRIX_TYPEDEFS(long double, BigReal);
> ^
> /«BUILDDIR»/shark-3.1.0+ds1/include/shark/LinAlg/Base.h:131:49: warning: extra ';' [-Wpedantic]
> SHARK_VECTOR_MATRIX_TYPEDEFS(bool, Bool);
> ^
> /«BUILDDIR»/shark-3.1.0+ds1/include/shark/LinAlg/Base.h:152:40: warning: extra ';' [-Wpedantic]
> SHARK_VECTOR_MATRIX_ASSIGNMENT(BigReal);
> ^
> In file included from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/Impl/Dataset.inl:32:0,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/Dataset.h:56,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/HDF5.h:46,
> from /«BUILDDIR»/shark-3.1.0+ds1/Test/Data/HDF5Tests.cpp:3:
> /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Core/ISerializable.h:129:36: warning: extra ';' [-Wpedantic]
> BOOST_SERIALIZATION_SPLIT_MEMBER();
> ^
> /«BUILDDIR»/shark-3.1.0+ds1/Test/Data/HDF5Tests.cpp: In constructor 'shark::HDF5Fixture::HDF5Fixture()':
> /«BUILDDIR»/shark-3.1.0+ds1/Test/Data/HDF5Tests.cpp:39:56: error: ambiguous overload for 'operator=' (operand types are 'std::vector<int>' and 'boost::assign_detail::generic_list<double>')
> m_expectedFromLabel1 = list_of(80.0)(81.0)(82.0)(83.0);
> ^
> In file included from /usr/include/c++/6/vector:69:0,
> from /usr/include/boost/format.hpp:17,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Core/utility/ScopedHandle.h:47,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/HDF5.h:45,
> from /«BUILDDIR»/shark-3.1.0+ds1/Test/Data/HDF5Tests.cpp:3:
> /usr/include/c++/6/bits/vector.tcc:167:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
> vector<_Tp, _Alloc>::
> ^~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/c++/6/vector:64:0,
> from /usr/include/boost/format.hpp:17,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Core/utility/ScopedHandle.h:47,
> from /«BUILDDIR»/shark-3.1.0+ds1/include/shark/Data/HDF5.h:45,
> from /«BUILDDIR»/shark-3.1.0+ds1/Test/Data/HDF5Tests.cpp:3:
> /usr/include/c++/6/bits/stl_vector.h:450:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
> operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
> ^~~~~~~~
> /usr/include/c++/6/bits/stl_vector.h:471:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]
> operator=(initializer_list<value_type> __l)
> ^~~~~~~~
> make[3]: *** [Test/CMakeFiles/Data_HDF5.dir/Data/HDF5Tests.cpp.o] Error 1
The full build log is available from:
http://people.debian.org/~lucas/logs/2016/07/13/shark_3.1.0+ds1-1_unstable_gcc6.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the debian-science-maintainers
mailing list