Hi,
rocdbgapi fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.
The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/rocdbgapi_arm64.build.xz
The last lines of the build log are at the end of this report.
To build with GCC 16, either set CC=gcc-16 CXX=g++-16 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html
Please only close this issue after double-checking that the package can be
built correctly with GCC 16.
Please do not reassign this bug to another package. If a fix in another package
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.
[...]
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /build/reproducible-path/rocdbgapi-6.4.3/src/memory.cpp:21:
/build/reproducible-path/rocdbgapi-6.4.3/src/memory.h:66:7: error: defining ‘amd::dbgapi::address_space_t’, which previously failed to be complete in a SFINAE context [-Werror=sfinae-incomplete=]
66 | class address_space_t
| ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/16/bits/move.h:37,
from /usr/include/c++/16/bits/exception_ptr.h:41,
from /usr/include/c++/16/exception:182,
from /usr/include/c++/16/stdexcept:40,
from /build/reproducible-path/rocdbgapi-6.4.3/src/debug.h:26,
from /build/reproducible-path/rocdbgapi-6.4.3/src/utils.h:25,
from /build/reproducible-path/rocdbgapi-6.4.3/src/handle_object.h:24,
from /build/reproducible-path/rocdbgapi-6.4.3/src/memory.h:25:
/usr/include/c++/16/type_traits:1351:50: note: here. Use ‘-Wsfinae-incomplete=2’ for a diagnostic at that point
1351 | using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /build/reproducible-path/rocdbgapi-6.4.3/src/memory.cpp:22:
/build/reproducible-path/rocdbgapi-6.4.3/src/architecture.h:133:7: error: defining ‘amd::dbgapi::architecture_t’, which previously failed to be complete in a SFINAE context [-Werror=sfinae-incomplete=]
133 | class architecture_t : private utils::not_copyable_t
| ^~~~~~~~~~~~~~
In file included from /usr/include/c++/16/functional:74,
from /build/reproducible-path/rocdbgapi-6.4.3/src/utils.h:33:
/usr/include/c++/16/bits/refwrap.h:227:12: note: here. Use ‘-Wsfinae-incomplete=2’ for a diagnostic at that point
227 | struct _Reference_wrapper_base
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:208: CMakeFiles/amd-dbgapi.dir/src/initialization.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:110: CMakeFiles/amd-dbgapi.dir/src/callbacks.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:320: CMakeFiles/amd-dbgapi.dir/src/versioning.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:166: CMakeFiles/amd-dbgapi.dir/src/displaced_stepping.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:306: CMakeFiles/amd-dbgapi.dir/src/utils.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:334: CMakeFiles/amd-dbgapi.dir/src/watchpoint.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:124: CMakeFiles/amd-dbgapi.dir/src/code_object.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:180: CMakeFiles/amd-dbgapi.dir/src/event.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:152: CMakeFiles/amd-dbgapi.dir/src/dispatch.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:82: CMakeFiles/amd-dbgapi.dir/src/agent.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:362: CMakeFiles/amd-dbgapi.dir/src/workgroup.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:222: CMakeFiles/amd-dbgapi.dir/src/logging.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:292: CMakeFiles/amd-dbgapi.dir/src/register.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:348: CMakeFiles/amd-dbgapi.dir/src/wave.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:250: CMakeFiles/amd-dbgapi.dir/src/os_driver.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:278: CMakeFiles/amd-dbgapi.dir/src/queue.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:236: CMakeFiles/amd-dbgapi.dir/src/memory.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:264: CMakeFiles/amd-dbgapi.dir/src/process.cpp.o] Error 1
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/amd-dbgapi.dir/build.make:96: CMakeFiles/amd-dbgapi.dir/src/architecture.cpp.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/rocdbgapi-6.4.3/obj-aarch64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:90: CMakeFiles/amd-dbgapi.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/rocdbgapi-6.4.3/obj-aarch64-linux-gnu'
make[1]: *** [Makefile:159: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/rocdbgapi-6.4.3/obj-aarch64-linux-gnu'
dh_auto_build: error: cd obj-aarch64-linux-gnu && make -j128 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2