Bug#1143650: etlcpp: FTBFS: /<<PKGBUILDDIR>>/test/../include/etl/const_map.h:518:58: error: '<unknown>' may be used uninitialized [-Werror=maybe-uninitialized]

Santiago Vila <[email protected]> Wed, 05 Aug 2026 11:23:36 +0000
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <E1wrZii-00GxZZ-2h__40348.2640905835$1785929162$gmane$org@paradis.debian.org>
Package: src:etlcpp
Version: 20.48.1+dfsg-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:etlcpp, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
[ 26%] Building CXX object test/CMakeFiles/etl_tests.dir/test_const_map.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/x86_64-linux-gnu-g++ -DETL_DEBUG -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/test/UnitTest++/.. -Wno-aggressive-loop-optimizations -Wno-pessimizing-move -std=gnu++17 -fno-omit-frame-pointer -fno-common -pedantic-errors -Wall -Wextra -Werror -Wfloat-equal -Wshadow -Wnull-dereference -Wsign-conversion -Wextra-semi -g -MD -MT test/CMakeFiles/etl_tests.dir/test_const_map.cpp.o -MF CMakeFiles/etl_tests.dir/test_const_map.cpp.o.d -o CMakeFiles/etl_tests.dir/test_const_map.cpp.o -c /<<PKGBUILDDIR>>/test/test_const_map.cpp
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/test && /usr/bin/x86_64-linux-gnu-g++ -DETL_DEBUG -I/<<PKGBUILDDIR>>/test/../include -isystem /<<PKGBUILDDIR>>/test/UnitTest++/.. -Wno-aggressive-loop-optimizations -Wno-pessimizing-move -std=gnu++17 -fno-omit-frame-pointer -fno-common -pedantic-errors -Wall -Wextra -Werror -Wfloat-equal -Wshadow -Wnull-dereference -Wsign-conversion -Wextra-semi -g -MD -MT test/CMakeFiles/etl_tests.dir/test_const_map_constexpr.cpp.o -MF CMakeFiles/etl_tests.dir/test_const_map_constexpr.cpp.o.d -o CMakeFiles/etl_tests.dir/test_const_map_constexpr.cpp.o -c /<<PKGBUILDDIR>>/test/test_const_map_constexpr.cpp
In file included from /<<PKGBUILDDIR>>/test/test_const_map.cpp:39:
/<<PKGBUILDDIR>>/test/../include/etl/const_map.h: In constructor ‘constexpr etl::const_map<TKey, TMapped, Size, TKeyCompare>::const_map(TElements&& ...) [with TElements = {std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>}; TKey = {anonymous}::Key; TMapped = int; long unsigned int Size = 10; TKeyCompare = etl::less<{anonymous}::Key>]’:
/<<PKGBUILDDIR>>/test/../include/etl/const_map.h:518:58: error: ‘<unknown>’ may be used uninitialized [-Werror=maybe-uninitialized]
  518 |       , element_list{etl::forward<TElements>(elements)...}
      |                                                          ^
/<<PKGBUILDDIR>>/test/../include/etl/const_map.h:453:30: note: by argument 2 of type ‘const etl::iconst_map<{anonymous}::Key, int, etl::less<{anonymous}::Key> >::value_type*’ {aka ‘const std::pair<const {anonymous}::Key, int>*’} to ‘constexpr etl::iconst_map<TKey, TMapped, TKeyCompare>::iconst_map(const value_type*, size_type, size_type) [with TElements = {}; TKey = {anonymous}::Key; TMapped = int; TKeyCompare = etl::less<{anonymous}::Key>]’ declared here
  453 |     ETL_CONSTEXPR14 explicit iconst_map(const value_type* element_list_, size_type size_, size_type max_elements_) ETL_NOEXCEPT
      |                              ^~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/test/test_const_map_constexpr.cpp:39:
/<<PKGBUILDDIR>>/test/../include/etl/const_map.h: In constructor ‘constexpr etl::const_map<TKey, TMapped, Size, TKeyCompare>::const_map(TElements&& ...) [with TElements = {std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>, std::pair<const {anonymous}::Key, int>}; TKey = {anonymous}::Key; TMapped = int; long unsigned int Size = 10; TKeyCompare = etl::less<{anonymous}::Key>]’:
/<<PKGBUILDDIR>>/test/../include/etl/const_map.h:518:58: error: ‘<unknown>’ may be used uninitialized [-Werror=maybe-uninitialized]
  518 |       , element_list{etl::forward<TElements>(elements)...}
      |                                                          ^
/<<PKGBUILDDIR>>/test/../include/etl/const_map.h:453:30: note: by argument 2 of type ‘const etl::iconst_map<{anonymous}::Key, int, etl::less<{anonymous}::Key> >::value_type*’ {aka ‘const std::pair<const {anonymous}::Key, int>*’} to ‘constexpr etl::iconst_map<TKey, TMapped, TKeyCompare>::iconst_map(const value_type*, size_type, size_type) [with TElements = {}; TKey = {anonymous}::Key; TMapped = int; TKeyCompare = etl::less<{anonymous}::Key>]’ declared here
  453 |     ETL_CONSTEXPR14 explicit iconst_map(const value_type* element_list_, size_type size_, size_type max_elements_) ETL_NOEXCEPT
      |                              ^~~~~~~~~~
cc1plus: all warnings being treated as errors
make[4]: *** [test/CMakeFiles/etl_tests.dir/build.make:1188: test/CMakeFiles/etl_tests.dir/test_const_map.cpp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
make[4]: *** [test/CMakeFiles/etl_tests.dir/build.make:1202: test/CMakeFiles/etl_tests.dir/test_const_map_constexpr.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:132: test/CMakeFiles/etl_tests.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [Makefile:149: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:14: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:19: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------