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

Bug#1097801: marked as done (rocm-smi-lib: ftbfs with GCC-15)



Your message dated Thu, 30 Oct 2025 23:42:58 -0600
with message-id <fa0dbed1-56aa-4d42-bc87-0197db1c9203@slerp.xyz>
and subject line fixed ftbfs with GCC-15
has caused the Debian Bug report #1097801,
regarding rocm-smi-lib: ftbfs with GCC-15
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1097801: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1097801
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: src:rocm-smi-lib
Version: 6.1.2-1
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/rocm-smi-lib_6.1.2-1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:171:32: error: template argument 1 is invalid
  171 |     std::unordered_set<uint32_t> enum_overrides;
      |                                ^
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:171:32: error: template argument 2 is invalid
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:171:32: error: template argument 3 is invalid
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:171:32: error: template argument 4 is invalid
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:175:5: error: ‘uint32_t’ does not name a type
  175 |     uint32_t logging_on;
      |     ^~~~~~~~
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:175:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:194:21: error: ‘uint64_t’ was not declared in this scope
  194 | typedef std::vector<uint64_t> SubVariant;
      |                     ^~~~~~~~
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:194:21: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:194:29: error: template argument 1 is invalid
  194 | typedef std::vector<uint64_t> SubVariant;
      |                             ^
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:194:29: error: template argument 2 is invalid
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:195:36: error: expected initializer before ‘SubVariantIt’
  195 | typedef SubVariant::const_iterator SubVariantIt;
      |                                    ^~~~~~~~~~~~
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:197:18: error: ‘uint64_t’ was not declared in this scope
  197 | typedef std::map<uint64_t, std::shared_ptr<SubVariant>> VariantMap;
      |                  ^~~~~~~~
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:197:18: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:197:54: error: template argument 1 is invalid
  197 | typedef std::map<uint64_t, std::shared_ptr<SubVariant>> VariantMap;
      |                                                      ^~
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:197:54: error: template argument 3 is invalid
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:197:54: error: template argument 4 is invalid
/build/reproducible-path/rocm-smi-lib-6.1.2/include/rocm_smi/rocm_smi_common.h:198:36: error: expected initializer before ‘VariantMapIt’
  198 | typedef VariantMap::const_iterator VariantMapIt;
      |                                    ^~~~~~~~~~~~
make[3]: *** [rocm_smi/CMakeFiles/rocm_smi64.dir/build.make:194: rocm_smi/CMakeFiles/rocm_smi64.dir/__/src/rocm_smi_gpu_metrics.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/build/reproducible-path/rocm-smi-lib-6.1.2/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_pci_bandwidth_get(uint32_t, rsmi_pcie_bandwidth_t*)’:
/build/reproducible-path/rocm-smi-lib-6.1.2/src/rocm_smi.cc:2374:19: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
 2374 |   if (width_index == -1 || speed_index == -1) {
      |       ~~~~~~~~~~~~^~~~~
/build/reproducible-path/rocm-smi-lib-6.1.2/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_pci_bandwidth_get(uint32_t, rsmi_pcie_bandwidth_t*)’:
/build/reproducible-path/rocm-smi-lib-6.1.2/src/rocm_smi.cc:2374:19: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
 2374 |   if (width_index == -1 || speed_index == -1) {
      |       ~~~~~~~~~~~~^~~~~
/build/reproducible-path/rocm-smi-lib-6.1.2/src/rocm_smi.cc:2374:40: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
 2374 |   if (width_index == -1 || speed_index == -1) {
      |                            ~~~~~~~~~~~~^~~~~
/build/reproducible-path/rocm-smi-lib-6.1.2/src/rocm_smi.cc:2374:40: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
 2374 |   if (width_index == -1 || speed_index == -1) {
      |                            ~~~~~~~~~~~~^~~~~
make[3]: *** [oam/CMakeFiles/oam.dir/build.make:236: oam/CMakeFiles/oam.dir/__/src/rocm_smi_properties.cc.o] Error 1
make[3]: *** [rocm_smi/CMakeFiles/rocm_smi64.dir/build.make:236: rocm_smi/CMakeFiles/rocm_smi64.dir/__/src/rocm_smi_properties.cc.o] Error 1
/build/reproducible-path/rocm-smi-lib-6.1.2/src/rocm_smi.cc: At global scope:
/build/reproducible-path/rocm-smi-lib-6.1.2/src/rocm_smi.cc:199:13: warning: ‘void freq_volt_string_to_point(std::string, rsmi_od_vddc_point_t*)’ defined but not used [-Wunused-function]
  199 | static void freq_volt_string_to_point(std::string in_line,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
/build/reproducible-path/rocm-smi-lib-6.1.2/src/rocm_smi.cc: At global scope:
/build/reproducible-path/rocm-smi-lib-6.1.2/src/rocm_smi.cc:199:13: warning: ‘void freq_volt_string_to_point(std::string, rsmi_od_vddc_point_t*)’ defined but not used [-Wunused-function]
  199 | static void freq_volt_string_to_point(std::string in_line,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/build/reproducible-path/rocm-smi-lib-6.1.2/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:234: oam/CMakeFiles/oam.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/reproducible-path/rocm-smi-lib-6.1.2/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:138: rocm_smi/CMakeFiles/rocm_smi64.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/rocm-smi-lib-6.1.2/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:159: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/rocm-smi-lib-6.1.2/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:12: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

--- End Message ---
--- Begin Message ---
Version: 6.4.1-1

The src:rocm-smi-lib package appears to have build successfully on GCC 15 with the latest upload to unstable [1].

Sincerely,
Cory Bloor

[1]: https://buildd.debian.org/status/fetch.php?pkg=rocm-smi-lib&arch=amd64&ver=6.4.1-1&stamp=1761863582&raw=0
--- End Message ---

Reply to: