Bug#811987: ceres-solver: FTBFS with GCC 6: the compiler can assume...
Martin Michlmayr
tbm at hpe.com
Wed Jan 20 04:15:05 UTC 2016
Package: ceres-solver
Version: 1.11.0~dfsg0-2
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6
This package fails to build with GCC 6. GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.
Note that only the first error is reported; there might be more. You
can find a snapshot of GCC 6 in experimental. To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.
You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html
> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> [ 87%] Built target residual_block_utils_test
> make -f internal/ceres/CMakeFiles/triplet_sparse_matrix_test.dir/build.make internal/ceres/CMakeFiles/triplet_sparse_matrix_test.dir/depend
> make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
> cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" && /usr/bin/cmake -E cmake_depends "Unix Makefiles" "/<<PKGBUILDDIR>>" "/<<PKGBUILDDIR>>/internal/ceres" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/internal/ceres" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/internal/ceres/CMakeFiles/triplet_sparse_matrix_test.dir/DependInfo.cmake" --color=
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc: In instantiation of 'bool ceres::internal::IsNearAngleAxisMatcherP<expected_type>::gmock_Impl<arg_type>::MatchAndExplain(arg_type, testing::MatchResultListener*) const [with arg_type = const double (&)[3]; expected_type = const double*]':
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:1135:1: required from here
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:140:11: error: the compiler can assume that the address of 'arg' will never be NULL [-Werror=address]
> if (arg == NULL) {
> ~~~~^~~~
>
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc: In instantiation of 'bool ceres::internal::IsNear3x3MatrixMatcherP<expected_type>::gmock_Impl<arg_type>::MatchAndExplain(arg_type, testing::MatchResultListener*) const [with arg_type = const double (&)[9]; expected_type = double*]':
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:1135:1: required from here
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:210:11: error: the compiler can assume that the address of 'arg' will never be NULL [-Werror=address]
> if (arg == NULL) {
> ~~~~^~~~
>
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc: In instantiation of 'bool ceres::internal::IsOrthonormalMatcher::gmock_Impl<arg_type>::MatchAndExplain(arg_type, testing::MatchResultListener*) const [with arg_type = const double (&)[9]]':
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:1135:1: required from here
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:181:11: error: the compiler can assume that the address of 'arg' will never be NULL [-Werror=address]
> if (arg == NULL) {
> ~~~~^~~~
>
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc: In instantiation of 'bool ceres::internal::IsNearAngleAxisMatcherP<expected_type>::gmock_Impl<arg_type>::MatchAndExplain(arg_type, testing::MatchResultListener*) const [with arg_type = const double (&)[3]; expected_type = double*]':
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:1135:1: required from here
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:140:11: error: the compiler can assume that the address of 'arg' will never be NULL [-Werror=address]
> if (arg == NULL) {
> ~~~~^~~~
>
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc: In instantiation of 'bool ceres::internal::IsNearQuaternionMatcherP<expected_type>::gmock_Impl<arg_type>::MatchAndExplain(arg_type, testing::MatchResultListener*) const [with arg_type = const double (&)[4]; expected_type = double*]':
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:1135:1: required from here
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:91:11: error: the compiler can assume that the address of 'arg' will never be NULL [-Werror=address]
> if (arg == NULL) {
> ~~~~^~~~
>
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc: In instantiation of 'bool ceres::internal::IsNormalizedQuaternionMatcher::gmock_Impl<arg_type>::MatchAndExplain(arg_type, testing::MatchResultListener*) const [with arg_type = const double (&)[4]]':
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:1135:1: required from here
> /<<PKGBUILDDIR>>/internal/ceres/rotation_test.cc:71:11: error: the compiler can assume that the address of 'arg' will never be NULL [-Werror=address]
> if (arg == NULL) {
> ~~~~^~~~
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
More information about the debian-science-maintainers
mailing list