--- Begin Message ---
Package: src:target-factory
Version: 1.4.1-1
Severity: normal
Tags: sid bookworm
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-12
[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.
The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/target-factory_1.4.1-1_unstable_gcc12.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.
[...]
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++
-DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -Dtarget_factory_EXPORTS
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall
-Werror -Wall -Werror -ggdb -O0 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
-fno-inline -fPIC -std=gnu++14 -MD -MT
src/CMakeFiles/target-factory.dir/create_target_v2.cpp.o -MF
CMakeFiles/target-factory.dir/create_target_v2.cpp.o.d -o
CMakeFiles/target-factory.dir/create_target_v2.cpp.o -c
/<<PKGBUILDDIR>>/src/create_target_v2.cpp
[ 75%] Building CXX object src/CMakeFiles/target-factory.dir/error_code.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++
-DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -Dtarget_factory_EXPORTS
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall
-Werror -Wall -Werror -ggdb -O0 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
-fno-inline -fPIC -std=gnu++14 -MD -MT
src/CMakeFiles/target-factory.dir/create_target_DPUCVDX8G_ISA1.cpp.o -MF
CMakeFiles/target-factory.dir/create_target_DPUCVDX8G_ISA1.cpp.o.d -o
CMakeFiles/target-factory.dir/create_target_DPUCVDX8G_ISA1.cpp.o -c
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp
[ 87%] Building CXX object
src/CMakeFiles/target-factory.dir/target_factory.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++
-DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -Dtarget_factory_EXPORTS
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall
-Werror -Wall -Werror -ggdb -O0 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
-fno-inline -fPIC -std=gnu++14 -Wno-unused-variable -MD -MT
src/CMakeFiles/target-factory.dir/target.pb.cc.o -MF
CMakeFiles/target-factory.dir/target.pb.cc.o.d -o
CMakeFiles/target-factory.dir/target.pb.cc.o -c
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/target.pb.cc
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++
-DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -Dtarget_factory_EXPORTS
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall
-Werror -Wall -Werror -ggdb -O0 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
-fno-inline -fPIC -std=gnu++14 -MD -MT
src/CMakeFiles/target-factory.dir/error_code.cpp.o -MF
CMakeFiles/target-factory.dir/error_code.cpp.o.d -o
CMakeFiles/target-factory.dir/error_code.cpp.o -c
/<<PKGBUILDDIR>>/src/error_code.cpp
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++
-DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -Dtarget_factory_EXPORTS
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall
-Werror -Wall -Werror -ggdb -O0 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
-fno-inline -fPIC -std=gnu++14 -MD -MT
src/CMakeFiles/target-factory.dir/target_factory.cpp.o -MF
CMakeFiles/target-factory.dir/target_factory.cpp.o.d -o
CMakeFiles/target-factory.dir/target_factory.cpp.o -c
/<<PKGBUILDDIR>>/src/target_factory.cpp
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA0.cpp: In function ‘const
vitis::ai::Target vitis::ai::create_target_DPUCVDX8G_ISA0(uint64_t)’:
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA0.cpp:29:37: error: variable
‘constexpr const std::array<long unsigned int, 3> PP_MAP’ has initializer but
incomplete type
29 | constexpr std::array<uint64_t, 3> PP_MAP{8, 8, 8};
| ^~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA0.cpp:30:37: error: variable
‘constexpr const std::array<long unsigned int, 3> ICP_MAP’ has initializer but
incomplete type
30 | constexpr std::array<uint64_t, 3> ICP_MAP{16, 16, 16};
| ^~~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA0.cpp:31:37: error: variable
‘constexpr const std::array<long unsigned int, 3> OCP_MAP’ has initializer but
incomplete type
31 | constexpr std::array<uint64_t, 3> OCP_MAP{16, 32, 64};
| ^~~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA0.cpp:32:37: error: variable
‘constexpr const std::array<long unsigned int, 5> IMG_RD_MAP’ has initializer
but incomplete type
32 | constexpr std::array<uint64_t, 5> IMG_RD_MAP{13, 13, 12, 13, 12};
| ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA0.cpp:33:37: error: variable
‘constexpr const std::array<long unsigned int, 5> WGT_RD_MAP’ has initializer
but incomplete type
33 | constexpr std::array<uint64_t, 5> WGT_RD_MAP{14, 13, 13, 12, 12};
| ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA0.cpp:34:37: error: variable
‘constexpr const std::array<long unsigned int, 5> BIAS_RD_MAP’ has initializer
but incomplete type
34 | constexpr std::array<uint64_t, 5> BIAS_RD_MAP{11, 11, 11, 11, 11};
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp: In function ‘const
vitis::ai::Target vitis::ai::create_target_DPUCVDX8G_ISA1(uint64_t)’:
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp:29:37: error: variable
‘constexpr const std::array<long unsigned int, 3> PP_MAP’ has initializer but
incomplete type
29 | constexpr std::array<uint64_t, 3> PP_MAP{8, 8, 8};
| ^~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp:30:37: error: variable
‘constexpr const std::array<long unsigned int, 3> ICP_MAP’ has initializer but
incomplete type
30 | constexpr std::array<uint64_t, 3> ICP_MAP{16, 16, 16};
| ^~~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp:31:37: error: variable
‘constexpr const std::array<long unsigned int, 3> OCP_MAP’ has initializer but
incomplete type
31 | constexpr std::array<uint64_t, 3> OCP_MAP{16, 32, 64};
| ^~~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp:32:30: error: variable
‘std::array<std::__cxx11::basic_string<char>, 3> ALU_MAP’ has initializer but
incomplete type
32 | std::array<std::string, 3> ALU_MAP{"NONE", "ALL", "MAXP"};
| ^~~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp:33:37: error: variable
‘constexpr const std::array<long unsigned int, 5> IMG_RD_MAP’ has initializer
but incomplete type
33 | constexpr std::array<uint64_t, 5> IMG_RD_MAP{13, 13, 12, 13, 12};
| ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp:34:37: error: variable
‘constexpr const std::array<long unsigned int, 5> WGT_RD_MAP’ has initializer
but incomplete type
34 | constexpr std::array<uint64_t, 5> WGT_RD_MAP{14, 13, 13, 12, 12};
| ^~~~~~~~~~
/<<PKGBUILDDIR>>/src/create_target_DPUCVDX8G_ISA1.cpp:35:37: error: variable
‘constexpr const std::array<long unsigned int, 5> BIAS_RD_MAP’ has initializer
but incomplete type
35 | constexpr std::array<uint64_t, 5> BIAS_RD_MAP{11, 11, 11, 11, 11};
| ^~~~~~~~~~~
/<<PKGBUILDDIR>>/src/create_target_v2.cpp: In function ‘const vitis::ai::Target
vitis::ai::create_target_v2(uint64_t)’:
/<<PKGBUILDDIR>>/src/create_target_v2.cpp:30:38: error: variable ‘constexpr
const std::array<long unsigned int, 11> PP_MAP’ has initializer but incomplete
type
30 | constexpr std::array<uint64_t, 11> PP_MAP{4, 4, 8, 4, 8, 8, 8, 8, 4,
2, 2};
| ^~~~~~
/<<PKGBUILDDIR>>/src/create_target_v2.cpp:31:38: error: variable ‘constexpr
const std::array<long unsigned int, 11> ICP_MAP’ has initializer but incomplete
type
31 | constexpr std::array<uint64_t, 11> ICP_MAP{8, 10, 8, 12, 10, 12,
| ^~~~~~~
/<<PKGBUILDDIR>>/src/create_target_v2.cpp:33:38: error: variable ‘constexpr
const std::array<long unsigned int, 11> OCP_MAP’ has initializer but incomplete
type
33 | constexpr std::array<uint64_t, 11> OCP_MAP{8, 10, 8, 12, 10, 12,
| ^~~~~~~
make[3]: *** [src/CMakeFiles/target-factory.dir/build.make:101:
src/CMakeFiles/target-factory.dir/create_target_DPUCVDX8G_ISA0.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [src/CMakeFiles/target-factory.dir/build.make:115:
src/CMakeFiles/target-factory.dir/create_target_DPUCVDX8G_ISA1.cpp.o] Error 1
make[3]: *** [src/CMakeFiles/target-factory.dir/build.make:129:
src/CMakeFiles/target-factory.dir/create_target_v2.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:101: src/CMakeFiles/target-factory.dir/all]
Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:159: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install
--strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--- End Message ---