[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1037845: rocm-hipamd: ftbfs with GCC-13



Package: src:rocm-hipamd
Version: 5.2.3-8
Severity: normal
Tags: sid trixie
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-13

[This bug is targeted to the upcoming trixie 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-13/g++-13, but succeeds to build with gcc-12/g++-12. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/rocm-hipamd_5.2.3-8_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 13, either set CC=gcc-13 CXX=g++-13 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-13/porting_to.html

[...]
[ 20%] Built target hiprtc-builtins
[ 20%] Building CXX object src/CMakeFiles/rocclr.dir/__/clr/device/device.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DATI_OS_LINUX -DCL_TARGET_OPENCL_VERSION=220 -DCL_USE_DEPRECATED_OPENCL_1_0_APIS -DCL_USE_DEPRECATED_OPENCL_1_1_APIS -DCL_USE_DEPRECATED_OPENCL_1_2_APIS -DCL_USE_DEPRECATED_OPENCL_2_0_APIS -DCOMGR_DYN_DLL -DHAVE_CL2_HPP -DLITTLEENDIAN_CPU -DOPENCL_C_MAJOR=2 -DOPENCL_C_MINOR=0 -DOPENCL_MAJOR=2 -DOPENCL_MINOR=1 -DROCCLR_SUPPORT_NUMA_POLICY -DUSE_COMGR_LIBRARY -DWITH_HSA_DEVICE -DWITH_LIGHTNING_COMPILER -DWITH_LIQUID_FLASH=0 -I/<<PKGBUILDDIR>>/clr/cmake/.. -I/<<PKGBUILDDIR>>/clr/cmake/../compiler/lib -I/<<PKGBUILDDIR>>/clr/cmake/../compiler/lib/include -I/<<PKGBUILDDIR>>/clr/cmake/../compiler/lib/backends/common -I/<<PKGBUILDDIR>>/clr/cmake/../device -I/<<PKGBUILDDIR>>/clr/cmake/../elf -I/<<PKGBUILDDIR>>/clr/cmake/../include -I/<<PKGBUILDDIR>>/opencl/khronos/headers/opencl2.2/CL -I/<<PKGBUILDDIR>>/opencl/khronos/headers/opencl2.2/CL/.. -I/<<PKGBUILDDIR>>/opencl/khronos/headers/opencl2.2/CL/../.. -I/<<PKGBUILDDIR>>/opencl/khro
 nos/headers/opencl2.2/CL/../../.. -I/<<PKGBUILDDIR>>/opencl/khronos/headers/opencl2.2/CL/../../../.. -I/<<PKGBUILDDIR>>/opencl/khronos/headers/opencl2.2/CL/../../../../amdocl -isystem /usr/include/hsa -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Werror -O3 -DNDEBUG -fPIC -std=c++17 -MD -MT src/CMakeFiles/rocclr.dir/__/clr/device/device.cpp.o -MF CMakeFiles/rocclr.dir/__/clr/device/device.cpp.o.d -o CMakeFiles/rocclr.dir/__/clr/device/device.cpp.o -c /<<PKGBUILDDIR>>/clr/device/device.cpp
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:49:14: error: ‘uint64_t’ does not name a type
   49 | static const uint64_t* consumeInteger(FILE* stream, int* outCount, const std::string& spec,
      |              ^~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:29:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   28 | #include <string>
  +++ |+#include <cstdint>
   29 | 
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:56:14: error: ‘uint64_t’ does not name a type
   56 | static const uint64_t* consumeFloatingPoint(FILE* stream, int* outCount, const std::string& spec,
      |              ^~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:56:14: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:65:14: error: ‘uint64_t’ does not name a type
   65 | static const uint64_t* consumeCstring(FILE* stream, int* outCount, const std::string& spec,
      |              ^~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:65:14: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:75:14: error: ‘uint64_t’ does not name a type
   75 | static const uint64_t* consumePointer(FILE* stream, int* outCount, const std::string& spec,
      |              ^~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:75:14: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:83:14: error: ‘uint64_t’ does not name a type
   83 | static const uint64_t* consumeArgument(FILE* stream, int* outCount, const std::string& spec,
      |              ^~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:83:14: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:115:14: error: ‘uint64_t’ does not name a type
  115 | static const uint64_t* processSpec(FILE* stream, int* outCount, const std::string& spec,
      |              ^~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:115:14: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:165:39: error: ‘uint64_t’ does not name a type
  165 | static int format(FILE* stream, const uint64_t* begin, const uint64_t* end) {
      |                                       ^~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:165:39: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:165:62: error: ‘uint64_t’ does not name a type
  165 | static int format(FILE* stream, const uint64_t* begin, const uint64_t* end) {
      |                                                              ^~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:165:62: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp: In function ‘int format(FILE*, const int*, const int*)’:
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:220:11: error: ‘processSpec’ was not declared in this scope
  220 |     ptr = processSpec(stream, &outCount, spec, ptr, end);
      |           ^~~~~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp: At global scope:
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:227:6: error: variable or field ‘handlePrintf’ declared void
  227 | void handlePrintf(uint64_t* output, const uint64_t* input, uint64_t len) {
      |      ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:227:19: error: ‘uint64_t’ was not declared in this scope
  227 | void handlePrintf(uint64_t* output, const uint64_t* input, uint64_t len) {
      |                   ^~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:227:19: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:227:29: error: ‘output’ was not declared in this scope
  227 | void handlePrintf(uint64_t* output, const uint64_t* input, uint64_t len) {
      |                             ^~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:227:37: error: expected primary-expression before ‘const’
  227 | void handlePrintf(uint64_t* output, const uint64_t* input, uint64_t len) {
      |                                     ^~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:227:60: error: ‘uint64_t’ was not declared in this scope
  227 | void handlePrintf(uint64_t* output, const uint64_t* input, uint64_t len) {
      |                                                            ^~~~~~~~
/<<PKGBUILDDIR>>/clr/device/devhcprintf.cpp:227:60: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
make[3]: *** [src/CMakeFiles/rocclr.dir/build.make:163: src/CMakeFiles/rocclr.dir/__/clr/device/devhcprintf.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:10374: src/CMakeFiles/rocclr.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:169: 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:26: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: