Bug#984213: libvigraimpex: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:15:03 GMT 2021


Package: src:libvigraimpex
Version: 1.11.1+dfsg-8
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye release]

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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/libvigraimpex_1.11.1+dfsg-8_unstable_gcc11.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are 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-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
                 from /<<PKGBUILDDIR>>/test/utilities/test.cxx:52:
/<<PKGBUILDDIR>>/include/vigra/functortraits.hxx:198:31: warning: ‘template<class _Operation> class std::binder1st’ is deprecated: use 'std::bind' instead [-Wdeprecated-declarations]
  198 | VIGRA_DEFINE_STL_FUNCTOR(std::binder1st, VigraTrueType, VigraFalseType)
      |                               ^~~~~~~~~
/<<PKGBUILDDIR>>/include/vigra/functortraits.hxx:163:21: note: in definition of macro ‘VIGRA_DEFINE_STL_FUNCTOR’
  163 | class FunctorTraits<name<T> > \
      |                     ^~~~
In file included from /usr/include/c++/11/bits/stl_function.h:1407,
                 from /usr/include/c++/11/string:48,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/iostream:39,
                 from /<<PKGBUILDDIR>>/test/utilities/test.cxx:37:
/usr/include/c++/11/backward/binders.h:108:11: note: declared here
  108 |     class binder1st
      |           ^~~~~~~~~
In file included from /<<PKGBUILDDIR>>/include/vigra/initimage.hxx:42,
                 from /<<PKGBUILDDIR>>/include/vigra/basicimageview.hxx:40,
                 from /<<PKGBUILDDIR>>/include/vigra/basicimage.hxx:45,
                 from /<<PKGBUILDDIR>>/include/vigra/multi_array.hxx:45,
                 from /<<PKGBUILDDIR>>/include/vigra/multi_convolution.hxx:43,
                 from /<<PKGBUILDDIR>>/include/vigra/multi_blocking.hxx:42,
                 from /<<PKGBUILDDIR>>/test/utilities/test.cxx:52:
/<<PKGBUILDDIR>>/include/vigra/functortraits.hxx:199:31: warning: ‘template<class _Operation> class std::binder2nd’ is deprecated: use 'std::bind' instead [-Wdeprecated-declarations]
  199 | VIGRA_DEFINE_STL_FUNCTOR(std::binder2nd, VigraTrueType, VigraFalseType)
      |                               ^~~~~~~~~
/<<PKGBUILDDIR>>/include/vigra/functortraits.hxx:163:21: note: in definition of macro ‘VIGRA_DEFINE_STL_FUNCTOR’
  163 | class FunctorTraits<name<T> > \
      |                     ^~~~
In file included from /usr/include/c++/11/bits/stl_function.h:1407,
                 from /usr/include/c++/11/string:48,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/iostream:39,
                 from /<<PKGBUILDDIR>>/test/utilities/test.cxx:37:
/usr/include/c++/11/backward/binders.h:143:11: note: declared here
  143 |     class binder2nd
      |           ^~~~~~~~~
[ 70%] Building CXX object test/utilities/CMakeFiles/test_utilities.dir/testsuccess.cxx.o
cd /<<PKGBUILDDIR>>/obj.x86_64-linux-gnu/test/utilities && /usr/bin/c++ -DHasZLIB -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/test/include -std=c++11 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pipe -Wdate-time -D_FORTIFY_SOURCE=2 -o CMakeFiles/test_utilities.dir/testsuccess.cxx.o -c /<<PKGBUILDDIR>>/obj.x86_64-linux-gnu/test/utilities/testsuccess.cxx
[ 71%] Linking CXX executable test_utilities
cd /<<PKGBUILDDIR>>/obj.x86_64-linux-gnu/test/utilities && /usr/bin/cmake -E cmake_link_script CMakeFiles/test_utilities.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++11 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pipe -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -rdynamic CMakeFiles/test_utilities.dir/test.cxx.o CMakeFiles/test_utilities.dir/testsuccess.cxx.o -o test_utilities  -Wl,-rpath,/<<PKGBUILDDIR>>/obj.x86_64-linux-gnu/src/impex:/usr/lib/x86_64-linux-gnu/hdf5/serial ../../src/impex/libvigraimpex.so.11.1.11.1 -ljpeg -lpng -lz -ltiff -lIlmImf -lImath -lHalf -lIex -lIlmThread /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so -lsz -lz -ltiff -lIlmImf -lImath -lHalf -lIex -lIlmThread /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so -lsz 
Running test_utilities
cd /<<PKGBUILDDIR>>/obj.x86_64-linux-gnu/test/utilities && ./run_test_utilities.sh
Entering test suite UtilitiesTestSuite

Failure in AnyTest::test()
Unexpected signal: memory access violation
   (occured after line 1505 in file './test/utilities/test.cxx')

Fatal error - aborting test suite UtilitiesTestSuite.

make[5]: *** [test/utilities/CMakeFiles/test_utilities.dir/build.make:146: test/utilities/test_utilities] Error 1
make[5]: *** Deleting file 'test/utilities/test_utilities'
make[5]: Leaving directory '/<<PKGBUILDDIR>>/obj.x86_64-linux-gnu'
make[4]: *** [CMakeFiles/Makefile2:3483: test/utilities/CMakeFiles/test_utilities.dir/all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj.x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:1402: CMakeFiles/check.dir/rule] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj.x86_64-linux-gnu'
make[2]: *** [Makefile:219: check] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj.x86_64-linux-gnu'
make[1]: *** [debian/rules:80: override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:108: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list