Bug#983987: belr: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:10:43 GMT 2021


Package: src:belr
Version: 4.4.13-2
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/belr_4.4.13-2_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.

[...]
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting install rpath to 
-- Looking for include file libudev.h
-- Looking for include file libudev.h - not found
-- Performing Test SUGGEST_OVERRIDE
-- Performing Test SUGGEST_OVERRIDE - Success
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY


-- Build files have been written to: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build -O--buildsystem=cmake
	cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
/usr/bin/cmake -S/<<PKGBUILDDIR>> -B/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f src/CMakeFiles/belr.dir/build.make src/CMakeFiles/belr.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>>/src /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/CMakeFiles/belr.dir/DependInfo.cmake --color=
Dependee "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/CMakeFiles/belr.dir/DependInfo.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/CMakeFiles/belr.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/CMakeFiles/belr.dir/depend.internal".
Scanning dependencies of target belr
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f src/CMakeFiles/belr.dir/build.make src/CMakeFiles/belr.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[  8%] Building CXX object src/CMakeFiles/belr.dir/abnf.cpp.o
[ 16%] Building CXX object src/CMakeFiles/belr.dir/belr.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_LOG_DOMAIN=\"belr\" -DBCTBX_STATIC -DBELR_EXPORTS -Dbelr_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-error=deprecated-declarations -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wsuggest-override -Werror=suggest-override -std=c++11 -o CMakeFiles/belr.dir/abnf.cpp.o -c /<<PKGBUILDDIR>>/src/abnf.cpp
[ 25%] Building CXX object src/CMakeFiles/belr.dir/parser.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_LOG_DOMAIN=\"belr\" -DBCTBX_STATIC -DBELR_EXPORTS -Dbelr_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-error=deprecated-declarations -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wsuggest-override -Werror=suggest-override -std=c++11 -o CMakeFiles/belr.dir/belr.cpp.o -c /<<PKGBUILDDIR>>/src/belr.cpp
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_LOG_DOMAIN=\"belr\" -DBCTBX_STATIC -DBELR_EXPORTS -Dbelr_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-error=deprecated-declarations -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wsuggest-override -Werror=suggest-override -std=c++11 -o CMakeFiles/belr.dir/parser.cpp.o -c /<<PKGBUILDDIR>>/src/parser.cpp
[ 33%] Building CXX object src/CMakeFiles/belr.dir/grammarbuilder.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_LOG_DOMAIN=\"belr\" -DBCTBX_STATIC -DBELR_EXPORTS -Dbelr_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-error=deprecated-declarations -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wsuggest-override -Werror=suggest-override -std=c++11 -o CMakeFiles/belr.dir/grammarbuilder.cpp.o -c /<<PKGBUILDDIR>>/src/grammarbuilder.cpp
/<<PKGBUILDDIR>>/src/belr.cpp: In member function ‘void belr::Recognizer::serialize(belr::BinaryOutputStream&, bool)’:
/<<PKGBUILDDIR>>/src/belr.cpp:90:68: error: ‘this’ pointer is null [-Werror=nonnull]
   90 |                 dynamic_cast<RecognizerPointer*>(this)->getPointed()->serialize(fstr, topLevel);
      |                                                                    ^
In file included from /<<PKGBUILDDIR>>/include/belr/parser.h:29,
                 from /<<PKGBUILDDIR>>/src/belr.cpp:22:
/<<PKGBUILDDIR>>/include/belr/belr.h:234:37: note: in a call to non-static member function ‘std::shared_ptr<belr::Recognizer> belr::RecognizerPointer::getPointed()’
  234 |         std::shared_ptr<Recognizer> getPointed();
      |                                     ^~~~~~~~~~
[ 41%] Building CXX object src/CMakeFiles/belr.dir/binarystream.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_LOG_DOMAIN=\"belr\" -DBCTBX_STATIC -DBELR_EXPORTS -Dbelr_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC  -Wall -Wuninitialized -Wno-error=deprecated-declarations -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -Wsuggest-override -Werror=suggest-override -std=c++11 -o CMakeFiles/belr.dir/binarystream.cpp.o -c /<<PKGBUILDDIR>>/src/binarystream.cpp
cc1plus: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/belr.dir/build.make:98: src/CMakeFiles/belr.dir/belr.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:162: src/CMakeFiles/belr.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:152: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list