[Pkg-puppet-devel] Bug#984082: leatherman: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:13:56 GMT 2021


Package: src:leatherman
Version: 1.12.1+dfsg-1.1
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/leatherman_1.12.1+dfsg-1.1_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.

[...]
Scanning dependencies of target libtest1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f dynamic_library/CMakeFiles/libtest1.dir/build.make dynamic_library/CMakeFiles/libtest1.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 14%] Building CXX object dynamic_library/CMakeFiles/libtest1.dir/tests/test-lib/hello.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library && /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_LOG_WITHOUT_WCHAR_T -DBOOST_SYSTEM_NO_DEPRECATED -DLEATHERMAN_LOCALE_INSTALL=\"/usr/share/locale\" -DLEATHERMAN_LOGGING_LINE_NUMBERS -DLEATHERMAN_LOGGING_NAMESPACE=\"leatherman.dynamic_library\" -DLEATHERMAN_USE_LOCALES -DPROJECT_DIR=\"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu\" -DPROJECT_NAME=\"leatherman\" -Dlibtest1_EXPORTS -I/<<PKGBUILDDIR>>/nowide/inc -I/<<PKGBUILDDIR>>/logging/inc -I/<<PKGBUILDDIR>>/util/inc -I/<<PKGBUILDDIR>>/locale/inc -I/<<PKGBUILDDIR>>/dynamic_library/inc -Wno-maybe-uninitialized -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o CMakeFiles/libtest1.dir/tests/test-lib/hello.cc.o -c /<<PKGBUILDDIR>>/dynamic_library/tests/test-lib/hello.cc
[ 15%] Linking CXX shared library ../../lib/libmock_curl.so
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/curl/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/mock_curl.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -Wno-maybe-uninitialized -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libmock_curl.so -o ../../lib/libmock_curl.so CMakeFiles/mock_curl.dir/mock_curl.cc.o 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 15%] Built target mock_curl
make  -f dynamic_library/CMakeFiles/libtest.dir/build.make dynamic_library/CMakeFiles/libtest.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>>/dynamic_library /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library/CMakeFiles/libtest.dir/DependInfo.cmake --color=
Dependee "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library/CMakeFiles/libtest.dir/DependInfo.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library/CMakeFiles/libtest.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library/CMakeFiles/libtest.dir/depend.internal".
Scanning dependencies of target libtest
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f dynamic_library/CMakeFiles/libtest.dir/build.make dynamic_library/CMakeFiles/libtest.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 17%] Building CXX object dynamic_library/CMakeFiles/libtest1.dir/tests/test-lib/goodbye.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library && /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_LOG_WITHOUT_WCHAR_T -DBOOST_SYSTEM_NO_DEPRECATED -DLEATHERMAN_LOCALE_INSTALL=\"/usr/share/locale\" -DLEATHERMAN_LOGGING_LINE_NUMBERS -DLEATHERMAN_LOGGING_NAMESPACE=\"leatherman.dynamic_library\" -DLEATHERMAN_USE_LOCALES -DPROJECT_DIR=\"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu\" -DPROJECT_NAME=\"leatherman\" -Dlibtest1_EXPORTS -I/<<PKGBUILDDIR>>/nowide/inc -I/<<PKGBUILDDIR>>/logging/inc -I/<<PKGBUILDDIR>>/util/inc -I/<<PKGBUILDDIR>>/locale/inc -I/<<PKGBUILDDIR>>/dynamic_library/inc -Wno-maybe-uninitialized -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o CMakeFiles/libtest1.dir/tests/test-lib/goodbye.cc.o -c /<<PKGBUILDDIR>>/dynamic_library/tests/test-lib/goodbye.cc
[ 18%] Building CXX object dynamic_library/CMakeFiles/libtest.dir/tests/test-lib/hello.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library && /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_LOG_WITHOUT_WCHAR_T -DBOOST_SYSTEM_NO_DEPRECATED -DLEATHERMAN_LOCALE_INSTALL=\"/usr/share/locale\" -DLEATHERMAN_LOGGING_LINE_NUMBERS -DLEATHERMAN_LOGGING_NAMESPACE=\"leatherman.dynamic_library\" -DLEATHERMAN_USE_LOCALES -DPROJECT_DIR=\"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu\" -DPROJECT_NAME=\"leatherman\" -Dlibtest_EXPORTS -I/<<PKGBUILDDIR>>/nowide/inc -I/<<PKGBUILDDIR>>/logging/inc -I/<<PKGBUILDDIR>>/util/inc -I/<<PKGBUILDDIR>>/locale/inc -I/<<PKGBUILDDIR>>/dynamic_library/inc -Wno-maybe-uninitialized -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o CMakeFiles/libtest.dir/tests/test-lib/hello.cc.o -c /<<PKGBUILDDIR>>/dynamic_library/tests/test-lib/hello.cc
[ 19%] Linking CXX shared library ../lib/libtest.so
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library && /usr/bin/cmake -E cmake_link_script CMakeFiles/libtest.dir/link.txt --verbose=1
[ 21%] Linking CXX shared library ../lib/libtest1.so
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/dynamic_library && /usr/bin/cmake -E cmake_link_script CMakeFiles/libtest1.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -Wno-maybe-uninitialized -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libtest.so -o ../lib/libtest.so CMakeFiles/libtest.dir/tests/test-lib/hello.cc.o 
/usr/bin/c++ -fPIC -Wno-maybe-uninitialized -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libtest1.so -o ../lib/libtest1.so CMakeFiles/libtest1.dir/tests/test-lib/hello.cc.o CMakeFiles/libtest1.dir/tests/test-lib/goodbye.cc.o 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 21%] Built target libtest
make  -f execution/CMakeFiles/lth_cat.dir/build.make execution/CMakeFiles/lth_cat.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>>/execution /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/execution /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/execution/CMakeFiles/lth_cat.dir/DependInfo.cmake --color=
[ 21%] Built target libtest1
make  -f locales/CMakeFiles/translations.dir/build.make locales/CMakeFiles/translations.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>>/locales /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/locales /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/locales/CMakeFiles/translations.dir/DependInfo.cmake --color=
Dependee "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/execution/CMakeFiles/lth_cat.dir/DependInfo.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/execution/CMakeFiles/lth_cat.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/execution/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/execution/CMakeFiles/lth_cat.dir/depend.internal".
Scanning dependencies of target lth_cat
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f execution/CMakeFiles/lth_cat.dir/build.make execution/CMakeFiles/lth_cat.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
Dependee "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/locales/CMakeFiles/translations.dir/DependInfo.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/locales/CMakeFiles/translations.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/locales/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/locales/CMakeFiles/translations.dir/depend.internal".
Scanning dependencies of target translations
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f locales/CMakeFiles/translations.dir/build.make locales/CMakeFiles/translations.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: Nothing to be done for 'locales/CMakeFiles/translations.dir/build'.
[ 22%] Building CXX object execution/CMakeFiles/lth_cat.dir/tests/lth_cat.cc.o
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/execution && /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_LOG_WITHOUT_WCHAR_T -DBOOST_SYSTEM_NO_DEPRECATED -DLEATHERMAN_LOCALE_INSTALL=\"/usr/share/locale\" -DLEATHERMAN_LOGGING_LINE_NUMBERS -DLEATHERMAN_LOGGING_NAMESPACE=\"leatherman.execution\" -DLEATHERMAN_USE_LOCALES -DPROJECT_DIR=\"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu\" -DPROJECT_NAME=\"leatherman\" -I/<<PKGBUILDDIR>>/nowide/inc -I/<<PKGBUILDDIR>>/file_util/inc -I/<<PKGBUILDDIR>>/logging/inc -I/<<PKGBUILDDIR>>/locale/inc -I/<<PKGBUILDDIR>>/util/inc -I/<<PKGBUILDDIR>>/execution/inc -Wno-maybe-uninitialized -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wextra -std=c++11 -Wall -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-maybe-uninitialized -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o CMakeFiles/lth_cat.dir/tests/lth_cat.cc.o -c /<<PKGBUILDDIR>>/execution/tests/lth_cat.cc
[ 22%] Built target translations
[ 23%] Linking CXX executable ../bin/lth_cat
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/execution && /usr/bin/cmake -E cmake_link_script CMakeFiles/lth_cat.dir/link.txt --verbose=1
/usr/bin/c++ -Wno-maybe-uninitialized -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/lth_cat.dir/tests/lth_cat.cc.o -o ../bin/lth_cat 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 23%] Built target lth_cat
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:500: util/CMakeFiles/leatherman_util.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:163: 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:12: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Pkg-puppet-devel mailing list