Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/amdsmi.spec'], chrootPath='/var/lib/mock/f42-build-56340463-6543438/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.46gf1d7z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.46gf1d7z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '17e7571a58a84a148cc37992eed97f0b', '-D', '/var/lib/mock/f42-build-56340463-6543438/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.46gf1d7z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/amdsmi.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1736294400 Wrote: /builddir/build/SRPMS/amdsmi-6.3.1-3.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/amdsmi.spec'], chrootPath='/var/lib/mock/f42-build-56340463-6543438/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.46gf1d7z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.46gf1d7z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '4a114c22d9504e57abc5cbbaad5e563c', '-D', '/var/lib/mock/f42-build-56340463-6543438/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.46gf1d7z:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/amdsmi.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1736294400 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.TEQOUj + umask 022 + cd /builddir/build/BUILD/amdsmi-6.3.1-build + test -d /builddir/build/BUILD/amdsmi-6.3.1-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/amdsmi-6.3.1-build + /usr/bin/rm -rf /builddir/build/BUILD/amdsmi-6.3.1-build + /usr/bin/mkdir -p /builddir/build/BUILD/amdsmi-6.3.1-build + /usr/bin/mkdir -p /builddir/build/BUILD/amdsmi-6.3.1-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9bkw2T + umask 022 + cd /builddir/build/BUILD/amdsmi-6.3.1-build + cd /builddir/build/BUILD/amdsmi-6.3.1-build + rm -rf amdsmi-rocm-6.3.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/amdsmi-6.3.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd amdsmi-rocm-6.3.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Do-not-automatically-download-kernel-header-amd_hsmp.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Fix-empty-return.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Include-cstdint-for-gcc-15.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + tar xf /builddir/build/SOURCES/esmi_pkg_ver-3.0.3.tar.gz + mv esmi_ib_library-esmi_pkg_ver-3.0.3 esmi_ib_library + mv esmi_ib_library/License.txt esmi_ib_library_License.txt + chmod a-x README.md + sed -i -e 's@bdf_regex = "@bdf_regex = r"@' amdsmi_cli/BDF.py + sed -i -e 's@${CPACK_PACKAGING_INSTALL_PREFIX}/lib@${SHARE_INSTALL_PREFIX}/tests@' tests/amd_smi_test/CMakeLists.txt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.74zcuE + umask 022 + cd /builddir/build/BUILD/amdsmi-6.3.1-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd amdsmi-rocm-6.3.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/cmake -S . -B redhat-linux-build -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_KERNEL_ASM_DIR=/usr/include/asm -DCMAKE_SKIP_INSTALL_RPATH=TRUE -DBUILD_TESTS=OFF -- Found PkgConfig: /usr/bin/pkg-config (found version "2.3.0") /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/cmake_modules/version_util.sh: line 18: git: command not found /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/cmake_modules/version_util.sh: line 22: git: command not found /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/cmake_modules/version_util.sh: line 23: git: command not found 0 were found since previous release Package version: 24.7.1.0-local-build-0-unknown -- The C compiler identification is GNU 14.2.1 -- The CXX compiler identification is GNU 14.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done Using CPACK_DEBIAN_PACKAGE_RELEASE Using CPACK_RPM_PACKAGE_RELEASE -- Copying amd_hsmp.h from /usr/include/asm/amd_hsmp.h -- Checking for module 'libdrm' -- Found libdrm, version 2.4.124 -- Checking for module 'libdrm_amdgpu' -- Found libdrm_amdgpu, version 2.4.124 &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& CMake ROCm SMI (Library) &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Build Configuration: --------Proj Src Dir: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 Package version: 24.7.1.0-local-build-0-unknown SOVERSION: 1.0 &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& CMake AMD SMI C/C++ Library &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Build Configuration: --------Proj Src Dir: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 Package version: 24.7.1.0-local-build-0-unknown SOVERSION: 0.0 CMake Warning (dev) at py-interface/CMakeLists.txt:34 (message): A wrapper will not be re-generated! Using old wrapper instead. Set -DBUILD_WRAPPER=ON to re-build the wrapper This warning is for project developers. Use -Wno-dev to suppress it. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& CMake AMDSMI CLI Install &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& CMake Deprecation Warning at goamdsmi_shim/CMakeLists.txt:7 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& CMake AMD goamdsmi_shim Library &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& SOVERSION: 1.0 -- Configuring done (1.3s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE CMAKE_INSTALL_DO_STRIP INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build + /usr/bin/cmake --build redhat-linux-build -j6 --verbose Change Dir: '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile -j6 /usr/bin/cmake -S/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 -B/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/CMakeFiles /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build//CMakeFiles/progress.marks /usr/bin/gmake -f CMakeFiles/Makefile2 all gmake[1]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f rocm_smi/CMakeFiles/rocm_smi64.dir/build.make rocm_smi/CMakeFiles/rocm_smi64.dir/depend /usr/bin/gmake -f src/CMakeFiles/amd_smi.dir/build.make src/CMakeFiles/amd_smi.dir/depend /usr/bin/gmake -f goamdsmi_shim/smiwrapper/CMakeFiles/go_amd_smi_.dir/build.make goamdsmi_shim/smiwrapper/CMakeFiles/go_amd_smi_.dir/depend gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi/CMakeFiles/rocm_smi64.dir/DependInfo.cmake "--color=" gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/goamdsmi_shim/smiwrapper /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/goamdsmi_shim/smiwrapper/CMakeFiles/go_amd_smi_.dir/DependInfo.cmake "--color=" gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src/CMakeFiles/amd_smi.dir/DependInfo.cmake "--color=" gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f rocm_smi/CMakeFiles/rocm_smi64.dir/build.make rocm_smi/CMakeFiles/rocm_smi64.dir/build gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f src/CMakeFiles/amd_smi.dir/build.make src/CMakeFiles/amd_smi.dir/build gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f goamdsmi_shim/smiwrapper/CMakeFiles/go_amd_smi_.dir/build.make goamdsmi_shim/smiwrapper/CMakeFiles/go_amd_smi_.dir/build gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [ 1%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi.cc.o [ 6%] Building CXX object src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi.cc.o [ 6%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_device.cc.o [ 6%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_gpu_metrics.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi.cc.o -MF CMakeFiles/amd_smi.dir/amd_smi/amd_smi.cc.o.d -o CMakeFiles/amd_smi.dir/amd_smi/amd_smi.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_device.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_device.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_device.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc [ 7%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_counters.cc.o [ 9%] Building C object goamdsmi_shim/smiwrapper/CMakeFiles/go_amd_smi_.dir/amdsmi_go_shim.c.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/goamdsmi_shim/smiwrapper && /usr/bin/gcc -DENABLE_DEBUG_LEVEL=0 -DENABLE_ESMI_LIB=1 -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MT goamdsmi_shim/smiwrapper/CMakeFiles/go_amd_smi_.dir/amdsmi_go_shim.c.o -MF CMakeFiles/go_amd_smi_.dir/amdsmi_go_shim.c.o.d -o CMakeFiles/go_amd_smi_.dir/amdsmi_go_shim.c.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper/amdsmi_go_shim.c cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_counters.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_counters.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_counters.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_counters.cc cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_gpu_metrics.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_gpu_metrics.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_gpu_metrics.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc In file included from /usr/include/pthread.h:21, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/fcntl.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/assert.h:35, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:43: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/sys/ioctl.h:21, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_counters.cc:46: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/bits/memoryfwd.h:48, from /usr/include/c++/14/memory:63, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_common.h:48, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_gpu_metrics.h:47, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper/amdsmi_go_shim.c: In function ‘goamdsmi_gpu_dev_temp_metric_get’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper/amdsmi_go_shim.c:528:177: warning: pointer targets in passing argument 4 of ‘amdsmi_get_temp_metric’ differ in signedness [-Wpointer-sign] 528 | if((dv_ind < num_gpu_devices_inAllSocket) && (AMDSMI_STATUS_SUCCESS == amdsmi_get_temp_metric(amdsmi_processor_handle_all_gpu_device_across_socket[dv_ind], sensor, metric, &gpu_temperature_temp))) | ^~~~~~~~~~~~~~~~~~~~~ | | | uint64_t * {aka long unsigned int *} In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper/amdsmi_go_shim.c:42: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:2943:68: note: expected ‘int64_t *’ {aka ‘long int *’} but argument is of type ‘uint64_t *’ {aka ‘long unsigned int *’} 2943 | amdsmi_temperature_metric_t metric, int64_t *temperature); | ~~~~~~~~~^~~~~~~~~~~ gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [ 9%] Built target go_amd_smi_ [ 11%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_binary_parser.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_binary_parser.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_binary_parser.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_binary_parser.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/bits/memoryfwd.h:48, from /usr/include/c++/14/memory:63, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_common.h:48, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_binary_parser.h:47, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc: In function ‘amdsmi_status_t amdsmi_get_gpu_asic_info(amdsmi_processor_handle, amdsmi_asic_info_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:1042:28: warning: the address of ‘amdsmi_asic_info_t::vendor_name’ will never be NULL [-Waddress] 1042 | if ((info->vendor_name != NULL && info->vendor_name[0] == '\0') && info->vendor_id == 0x1002) { | ^ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:62: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:653:8: note: ‘amdsmi_asic_info_t::vendor_name’ declared here 653 | char vendor_name[AMDSMI_MAX_STRING_LENGTH]; | ^~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_ras_feature_info_get(uint32_t, rsmi_ras_feature_info_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:922:41: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 922 | ras_feature->ras_eeprom_version = eeprom_version; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:946:49: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 946 | ras_feature->ecc_correction_schema_flag = schema; | ^~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc: In function ‘amdsmi_status_t amdsmi_get_gpu_accelerator_partition_profile(amdsmi_processor_handle, amdsmi_accelerator_partition_profile_t*, uint32_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:1529:10: warning: unused variable ‘tmp_xcd_count’ [-Wunused-variable] 1529 | auto tmp_xcd_count = uint16_t(0); | ^~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc: In function ‘amdsmi_status_t amdsmi_get_clock_info(amdsmi_processor_handle, amdsmi_clk_type_t, amdsmi_clk_info_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:2219:28: warning: conversion from ‘int’ to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion] 2219 | info->clk_deep_sleep = sleep_state_freq; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc: In function ‘amdsmi_status_t amdsmi_get_gpu_device_uuid(amdsmi_processor_handle, unsigned int*, char*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:2509:12: warning: unused variable ‘len’ [-Wunused-variable] 2509 | size_t len = AMDSMI_GPU_UUID_SIZE; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc: In function ‘amdsmi_status_t amdsmi_get_pcie_info(amdsmi_processor_handle, amdsmi_pcie_info_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:2572:51: warning: conversion from ‘double’ to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wfloat-conversion] 2572 | info->pcie_static.max_pcie_speed = pcie_speed * 1000; | ~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc: In member function ‘rsmi_status_t amd::smi::Device::restartAMDGpuDriver()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc:1498:8: warning: unused variable ‘restartInProgress’ [-Wunused-variable] 1498 | bool restartInProgress = true; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc: In member function ‘rsmi_status_t amd::smi::Device::isRestartInProgress(bool*, bool*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc:1584:8: warning: unused variable ‘restartSuccessful’ [-Wunused-variable] 1584 | bool restartSuccessful = true; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc: In function ‘amdsmi_status_t amdsmi_get_link_topology_nearest(amdsmi_processor_handle, amdsmi_link_type_t, amdsmi_topology_nearest_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:2838:22: warning: unused variable ‘io_link_type_bck’ [-Wunused-variable] 2838 | auto io_link_type_bck(io_link_type); | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:2869:60: warning: conversion from ‘std::priority_queue, amdsmi_get_link_topology_nearest(amdsmi_processor_handle, amdsmi_link_type_t, amdsmi_topology_nearest_t*)::LinkTopogyOrderCmp_t>::size_type’ {aka ‘long unsigned int’} to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 2869 | topology_nearest_info->count = link_topology_order.size(); | ~~~~~~~~~~~~~~~~~~~~~~~~^~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:2738:20: warning: unused variable ‘kKFD_CRAT_INTRA_SOCKET_WEIGHT’ [-Wunused-variable] 2738 | constexpr auto kKFD_CRAT_INTRA_SOCKET_WEIGHT = uint32_t(13); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:2739:20: warning: unused variable ‘kKFD_CRAT_XGMI_WEIGHT’ [-Wunused-variable] 2739 | constexpr auto kKFD_CRAT_XGMI_WEIGHT = uint32_t(15); | ^~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:2782:11: warning: typedef ‘using LinkTopogyOrderPair_t = struct std::pair’ locally defined but not used [-Wunused-local-typedefs] 2782 | using LinkTopogyOrderPair_t = std::pair; | ^~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc: In function ‘amdsmi_status_t amdsmi_get_cpu_handles(uint32_t*, void**)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:3975:34: warning: conversion from ‘std::vector::size_type’ {aka ‘long unsigned int’} to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 3975 | *cpu_count = cpu_handles.size(); | ~~~~~~~~~~~~~~~~^~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc: In function ‘amdsmi_status_t amdsmi_get_cpucore_handles(uint32_t*, void**)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:4031:37: warning: conversion from ‘std::vector::size_type’ {aka ‘long unsigned int’} to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 4031 | *cores_count = core_handles.size(); | ~~~~~~~~~~~~~~~~~^~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc: In function ‘amdsmi_status_t amdsmi_get_esmi_err_msg(amdsmi_status_t, const char**)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:4045:24: warning: comparison between ‘const enum esmi_status_t’ and ‘enum amdsmi_status_t’ [-Wenum-compare] 4045 | if (iter.first == status) { | ~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:75: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_utils.h: In instantiation of ‘decltype(auto) amd::smi::TagTextContents_t::get_structured_data_subkey_last(const PrimaryKeyType&) [with PrimaryKeyType = std::__cxx11::basic_string; PrimaryDataType = std::__cxx11::basic_string; SecondaryKeyType = std::__cxx11::basic_string; SecondaryDataType = std::__cxx11::basic_string]’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:1491:87: required from here 1491 | auto upper_bound_data = txt_power_dev_od_voltage.get_structured_data_subkey_last(prim_key); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_utils.h:450:138: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 450 | (get_structured_subkeys_size(prim_key) - 1)))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc: In function ‘int amd::smi::present_pmmetrics(const char*, rsmi_name_value_t**, uint32_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:158:16: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int32_t’ {aka ‘int’} may change value [-Wconversion] 158 | len = fread(buf1, 1, 65536, infile); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc: In function ‘int amd::smi::parse_reg_state_table(uint8_t*, int32_t, metric_field*, rsmi_name_value_t**, uint32_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:227:36: warning: conversion from ‘uint64_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion] 227 | num_instance = v; | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:230:31: warning: conversion from ‘uint64_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion] 230 | num_smn = v; | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:237:24: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare] 237 | if (*kvnum == kvsize) { | ~~~~~~~^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc: In function ‘int amd::smi::present_reg_state(const char*, rsmi_reg_type_t, rsmi_name_value_t**, uint32_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:314:16: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int32_t’ {aka ‘int’} may change value [-Wconversion] 314 | len = fread(buf, 1, sizeof buf, infile); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_gpu_clk_freq_set(uint32_t, rsmi_clk_type_t, uint64_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:2068:9: warning: unused variable ‘perms’ [-Wunused-variable] 2068 | int perms = amd::smi::isReadOnlyForAll(dev->path(), &read_only); | ^~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_process_isolation_set(uint32_t, uint32_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:2137:17: warning: unused variable ‘ret’ [-Wunused-variable] 2137 | rsmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_gpu_run_cleaner_shader(uint32_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:2202:17: warning: unused variable ‘ret’ [-Wunused-variable] 2202 | rsmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_xgmi_plpd_set(uint32_t, uint32_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:2318:17: warning: unused variable ‘ret’ [-Wunused-variable] 2318 | rsmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_soc_pstate_set(uint32_t, uint32_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:2432:17: warning: unused variable ‘ret’ [-Wunused-variable] 2432 | rsmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc: In member function ‘virtual void amd::smi::GpuMetricsBase_v16_t::dump_internal_metrics_table()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:594:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 594 | if (idy + 1 != (std::end(row.gfx_busy_inst) - std::end(row.gfx_busy_inst) - 1)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:597:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 597 | if (idx + 1 != | ~~~~~~~~^~ 598 | (std::end(m_gpu_metrics_tbl.m_xcp_stats) - std::end(m_gpu_metrics_tbl.m_xcp_stats) - 1)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:617:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 617 | if (idy + 1 != (std::end(row.vcn_busy) - std::end(row.vcn_busy) - 1)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:620:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 620 | if (idx + 1 != | ~~~~~~~~^~ 621 | (std::end(m_gpu_metrics_tbl.m_xcp_stats) - std::end(m_gpu_metrics_tbl.m_xcp_stats) - 1)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:640:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 640 | if (idy + 1 != (std::end(row.jpeg_busy) - std::end(row.jpeg_busy) - 1)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:643:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 643 | if (idx + 1 != | ~~~~~~~~^~ 644 | (std::end(m_gpu_metrics_tbl.m_xcp_stats) - std::end(m_gpu_metrics_tbl.m_xcp_stats) - 1)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:663:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 663 | if (idy + 1 != (std::end(row.gfx_busy_acc) - std::end(row.gfx_busy_acc) - 1)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:666:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 666 | if (idx + 1 != | ~~~~~~~~^~ 667 | (std::end(m_gpu_metrics_tbl.m_xcp_stats) - std::end(m_gpu_metrics_tbl.m_xcp_stats) - 1)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_pci_bandwidth_get(uint32_t, rsmi_pcie_bandwidth_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:3023:19: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare] 3023 | if (width_index == -1 || speed_index == -1) { | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:3023:40: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare] 3023 | if (width_index == -1 || speed_index == -1) { | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_cache_info_get(uint32_t, rsmi_gpu_cache_info_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:3954:17: warning: unused variable ‘ret’ [-Wunused-variable] 3954 | rsmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_utilization_count_get(uint32_t, rsmi_utilization_counter_t*, uint32_t, uint64_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:4238:12: warning: unused variable ‘val_ui32’ [-Wunused-variable] 4238 | uint32_t val_ui32; | ^~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_memory_partition_set(uint32_t, rsmi_memory_partition_type_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:5729:8: warning: unused variable ‘isCorrectDevice’ [-Wunused-variable] 5729 | bool isCorrectDevice = false; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:5730:8: warning: variable ‘boardName’ set but not used [-Wunused-but-set-variable] 5730 | char boardName[kMaxBoardLength]; | ^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In lambda function: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6677:33: warning: format ‘%llx’ expects argument of type ‘long long unsigned int*’, but argument 3 has type ‘uint64_t*’ {aka ‘long unsigned int*’} [-Wformat=] 6677 | sscanf(message, "%llx:%llx\n", &bitmask, &counter); | ~~~^ ~~~~~~~~ | | | | | uint64_t* {aka long unsigned int*} | long long unsigned int* | %lx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6677:38: warning: format ‘%llx’ expects argument of type ‘long long unsigned int*’, but argument 4 has type ‘uint64_t*’ {aka ‘long unsigned int*’} [-Wformat=] 6677 | sscanf(message, "%llx:%llx\n", &bitmask, &counter); | ~~~^ ~~~~~~~~ | | | | | uint64_t* {aka long unsigned int*} | long long unsigned int* | %lx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6703:36: warning: format ‘%[^ ’ expects a matching ‘char*’ argument [-Wformat=] 6703 | sscanf(message, "%x %[^\n]\n", &reset_seq_num); | ~~~^~ | | | char* /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 5 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~~^ ~~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:46: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 6 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:50: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 7 has type ‘uint16_t*’ {aka ‘short unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~^ ~~~~~ | | | | unsigned int* uint16_t* {aka short unsigned int*} | %hx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:54: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 8 has type ‘uint16_t*’ {aka ‘short unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~^ ~~~ | | | | unsigned int* uint16_t* {aka short unsigned int*} | %hx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:57: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 9 has type ‘uint16_t*’ {aka ‘short unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~^ ~~~~~~~~~~~~~ | | | | unsigned int* uint16_t* {aka short unsigned int*} | %hx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:60: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 10 has type ‘uint16_t*’ {aka ‘short unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~^ ~~~~~~~~~~~~~~ | | | | unsigned int* uint16_t* {aka short unsigned int*} | %hx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6748:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6748 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %d %d\n", &ns, &pid, &start, &size, &from, &to, &migrate_trigger, &error_code); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6748:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 5 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6748 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %d %d\n", &ns, &pid, &start, &size, &from, &to, &migrate_trigger, &error_code); | ~~^ ~~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6748:46: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 6 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6748 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %d %d\n", &ns, &pid, &start, &size, &from, &to, &migrate_trigger, &error_code); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6770:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6770 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, rw); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6770:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 5 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6770 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, rw); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6789:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6789 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, migrate_update); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6789:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 5 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6789 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, migrate_update); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6807:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6807 | sscanf(message, "%lld -%d %x %d\n", &ns, &pid, &node, &evict_trigger); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6824:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6824 | sscanf(message, "%lld -%d %x %c\n", &ns, &pid, &node, rescheduled); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6843:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6843 | sscanf(message, "%lld -%d @%lx(%lx) %x %d\n", &ns, &pid, &addr, &size, &node, &unmap_trigger); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6843:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 5 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6843 | sscanf(message, "%lld -%d @%lx(%lx) %x %d\n", &ns, &pid, &addr, &size, &node, &unmap_trigger); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6843:46: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 6 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6843 | sscanf(message, "%lld -%d @%lx(%lx) %x %d\n", &ns, &pid, &addr, &size, &node, &unmap_trigger); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc: In function ‘rsmi_status_t rsmi_dev_gpu_metrics_info_get(uint32_t, rsmi_gpu_metrics_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:4048:8: warning: unused variable ‘ret’ [-Wunused-variable] 4048 | auto ret = rsmi_dev_partition_id_get(dv_ind, &partition_id); | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc: In function ‘amdsmi_status_t amdsmi_get_gpu_asic_info(amdsmi_processor_handle, amdsmi_asic_info_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi.cc:1044:16: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying 37 bytes from a string of the same length [-Wstringop-truncation] 1044 | strncpy(info->vendor_name, "Advanced Micro Devices Inc. [AMD/ATI]", 37); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 12%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_io_link.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_io_link.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_io_link.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_io_link.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_io_link.cc In file included from /usr/include/dirent.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_io_link.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 14%] Building CXX object src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_common.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_common.cc.o -MF CMakeFiles/amd_smi.dir/amd_smi/amd_smi_common.cc.o.d -o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_common.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_common.cc In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/functional:48, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_common.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:210:13: warning: ‘void freq_volt_string_to_point(std::string, rsmi_od_vddc_point_t*)’ defined but not used [-Wunused-function] 210 | static void freq_volt_string_to_point(std::string in_line, | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_common.cc:45: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 15%] Building CXX object src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_drm.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_drm.cc.o -MF CMakeFiles/amd_smi.dir/amd_smi/amd_smi_drm.cc.o.d -o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_drm.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_drm.cc In file included from /usr/include/sys/types.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_drm.cc:43: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In member function ‘rsmi_event_notification_get::{lambda(bool)#1}::operator()(bool) const’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6770:19: warning: ‘rw’ may be used uninitialized [-Wmaybe-uninitialized] 6770 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, rw); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6768:19: note: ‘rw’ was declared here 6768 | char *rw; | ^~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6789:19: warning: ‘migrate_update’ may be used uninitialized [-Wmaybe-uninitialized] 6789 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, migrate_update); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6787:19: note: ‘migrate_update’ was declared here 6787 | char *migrate_update; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6824:19: warning: ‘rescheduled’ may be used uninitialized [-Wmaybe-uninitialized] 6824 | sscanf(message, "%lld -%d %x %c\n", &ns, &pid, &node, rescheduled); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6822:19: note: ‘rescheduled’ was declared here 6822 | char *rescheduled; | ^~~~~~~~~~~ [ 17%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_kfd.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_kfd.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_kfd.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_kfd.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc In file included from /usr/include/dirent.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 19%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_monitor.cc.o [ 20%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_main.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_monitor.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_monitor.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_monitor.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_monitor.cc cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_main.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_main.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_main.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc In file included from /usr/include/dirent.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_monitor.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/dirent.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:43: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_drm.cc: In member function ‘std::string amd::smi::AMDSmiDrm::find_file_in_folder(const std::string&, const std::string&)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_drm.cc:64:61: warning: ignoring attributes on template argument ‘int (*)(DIR*)’ [-Wignored-attributes] 64 | using dir_ptr = std::unique_ptr; | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_drm.cc: In member function ‘amdsmi_status_t amd::smi::AMDSmiDrm::init()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_drm.cc:193:62: warning: conversion from ‘uint64_t’ {aka ‘long unsigned int’} to ‘long unsigned int:48’ may change value [-Wconversion] 193 | bdf.domain_number = ((bdf_rocm & 0xFFFFFFFF00000000) >> 32); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_drm.cc:87:20: warning: unused variable ‘dir’ [-Wunused-variable] 87 | struct dirent *dir = nullptr; | ^~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/impl/amd_smi_drm.h:52, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_drm.cc:50: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc: In member function ‘int amd::smi::KFDNode::get_used_memory(uint64_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc:903:16: warning: conversion from ‘uint64_t’ {aka ‘long unsigned int’} to ‘__u32’ {aka ‘unsigned int’} may change value [-Wconversion] 903 | mem.gpu_id = gpu_id_; | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc: In member function ‘int amd::smi::KFDNode::get_cache_info(rsmi_gpu_cache_info_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc:950:25: warning: conversion from ‘std::__iterator_traits<__gnu_cxx::__normal_iterator >, void>::difference_type’ {aka ‘long int’} to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 950 | std::count(sibling_map.begin(), sibling_map.end(), '1'); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc: In member function ‘uint32_t amd::smi::RocmSMI::DiscoverAmdgpuDevices()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:781:47: warning: ‘~’ on an expression of type ‘bool’ [-Wbool-operation] 781 | ~(ret_unique_id != 0 || ret_loc_id != 0 || ret_unique_id != 0)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:781:47: note: did you mean to use logical not (‘!’)? /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:778:9: warning: unused variable ‘ret_domain’ [-Wunused-variable] 778 | int ret_domain = | ^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:827:36: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 827 | for (uint32_t cardId = 0; cardId <= max_cardId; cardId++) { | ~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:989:14: warning: unused variable ‘erasedNodes’ [-Wunused-variable] 989 | auto erasedNodes = allSystemNodes.erase(0); | ^~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:940:16: warning: variable ‘primary_location_id’ set but not used [-Wunused-but-set-variable] 940 | uint64_t primary_location_id = 0; | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6643:13: warning: ‘memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6643 | memcpy(reinterpret_cast(event_in), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6662:19: warning: ‘memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6662 | memcpy(reinterpret_cast(task_name), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6689:19: warning: ‘memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6689 | memcpy(reinterpret_cast(reset_cause), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6864:15: warning: ‘memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6864 | memcpy(reinterpret_cast(event_in), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 22%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_power_mon.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_power_mon.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_power_mon.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_power_mon.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_power_mon.cc In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/cassert:43, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_power_mon.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 23%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_utils.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_utils.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_utils.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_utils.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc In file included from /usr/include/assert.h:35, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc:45: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 25%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/__/third_party/shared_mutex/shared_mutex.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/__/third_party/shared_mutex/shared_mutex.cc.o -MF CMakeFiles/rocm_smi64.dir/__/third_party/shared_mutex/shared_mutex.cc.o.d -o CMakeFiles/rocm_smi64.dir/__/third_party/shared_mutex/shared_mutex.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex/shared_mutex.cc [ 26%] Building CXX object rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_logger.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/src/rocm_smi_logger.cc.o -MF CMakeFiles/rocm_smi64.dir/src/rocm_smi_logger.cc.o.d -o CMakeFiles/rocm_smi64.dir/src/rocm_smi_logger.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_logger.cc In file included from /usr/include/sys/stat.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex/shared_mutex.h:28, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex/shared_mutex.cc:25: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/cstdlib:41, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_logger.cc:63: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 28%] Building C object rocm_smi/CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi.c.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/gcc -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi.c.o -MF CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi.c.o.d -o CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi.c.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘create_cpu_mappings’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:274:47: warning: pointer targets in passing argument 3 of ‘parse_lines’ differ in signedness [-Wpointer-sign] 274 | parse_lines(&str, fp, &sm->map[i].sock_id, node_str); | ^~~~~~~~~~~~~~~~~~~ | | | int * /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:232:57: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’ 232 | static void parse_lines(char **str, FILE *fp, uint32_t *val, const char *cmp_str) | ~~~~~~~~~~^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:275:47: warning: pointer targets in passing argument 3 of ‘parse_lines’ differ in signedness [-Wpointer-sign] 275 | parse_lines(&str, fp, &sm->map[i].apic_id, apic_str); | ^~~~~~~~~~~~~~~~~~~ | | | int * /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:232:57: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’ 232 | static void parse_lines(char **str, FILE *fp, uint32_t *val, const char *cmp_str) | ~~~~~~~~~~^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘esmi_socket_energy_get’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:556:69: warning: pointer targets in passing argument 2 of ‘esmi_first_online_core_on_socket’ differ in signedness [-Wpointer-sign] 556 | status = esmi_first_online_core_on_socket(sock_ind, &core_ind); | ^~~~~~~~~ | | | int * /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:80:58: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’ 80 | uint32_t *pcore_ind) | ~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘esmi_prochot_status_get’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:828:14: warning: unused variable ‘hot’ [-Wunused-variable] 828 | char hot[9]; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘esmi_xgmi_width_set’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:857:13: warning: unused variable ‘drv_val’ [-Wunused-variable] 857 | int drv_val; | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘esmi_fclk_mclk_get’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:939:18: warning: unused variable ‘clk’ [-Wunused-variable] 939 | uint64_t clk; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘esmi_socket_lclk_dpm_level_get’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:1051:18: warning: unused variable ‘dpm_val’ [-Wunused-variable] 1051 | uint32_t dpm_val; | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘validate_link_name’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:1357:23: warning: unused variable ‘ret’ [-Wunused-variable] 1357 | esmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘validate_max_min_values’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:1458:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] 1458 | if (max_value > max_limit | max_value < min_value) | ~~~~~~~~~~^~~~~~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:18: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At top level: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 30%] Building CXX object src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_gpu_device.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_gpu_device.cc.o -MF CMakeFiles/amd_smi.dir/amd_smi/amd_smi_gpu_device.cc.o.d -o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_gpu_device.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_gpu_device.cc In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/cstdlib:41, from /usr/include/c++/14/stdlib.h:36, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:51, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/impl/amd_smi_gpu_device.h:47, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_gpu_device.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc: In function ‘rsmi_status_t amd::smi::rsmi_dev_number_of_computes_get(uint32_t, uint32_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc:1266:35: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 1266 | *num_computes = (tmp_simd_count / tmp_simd_per_cu); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc: In function ‘int amd::smi::countDigit(uint64_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc:1320:44: warning: conversion from ‘uint64_t’ {aka ‘long unsigned int’} to ‘double’ may change value [-Wconversion] 1320 | return static_cast(std::floor(log10(n) + 1)); | ^ [ 31%] Building C object rocm_smi/CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_monitor.c.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/gcc -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_monitor.c.o -MF CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_monitor.c.o.d -o CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_monitor.c.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_monitor.c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_monitor.c: In function ‘find_energy’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_monitor.c:37:13: warning: unused variable ‘i’ [-Wunused-variable] 37 | int i = 0; | ^ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_monitor.c:18: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At top level: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 33%] Building C object rocm_smi/CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_plat.c.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/gcc -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_plat.c.o -MF CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_plat.c.o.d -o CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_plat.c.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_plat.c In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_plat.c:9: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 34%] Building C object rocm_smi/CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_utils.c.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/gcc -DENABLE_ESMI_LIB=1 -Drocm_smi64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MT rocm_smi/CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_utils.c.o -MF CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_utils.c.o.d -o CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_utils.c.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_utils.c [ 36%] Building CXX object src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_lib_loader.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_lib_loader.cc.o -MF CMakeFiles/amd_smi.dir/amd_smi/amd_smi_lib_loader.cc.o.d -o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_lib_loader.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_lib_loader.cc In file included from /usr/include/dlfcn.h:22, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/impl/amd_smi_lib_loader.h:24, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_lib_loader.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 38%] Building CXX object src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_socket.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_socket.cc.o -MF CMakeFiles/amd_smi.dir/amd_smi/amd_smi_socket.cc.o.d -o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_socket.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_socket.cc In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/functional:48, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_socket.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 39%] Building CXX object src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_system.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_system.cc.o -MF CMakeFiles/amd_smi.dir/amd_smi/amd_smi_system.cc.o.d -o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_system.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_system.cc In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/bits/requires_hosted.h:31, from /usr/include/c++/14/sstream:38, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_system.cc:43: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/impl/amd_smi_socket.h:50, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_socket.cc:45: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/impl/amd_smi_lib_loader.h:29: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 41%] Building CXX object src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_utils.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_utils.cc.o -MF CMakeFiles/amd_smi.dir/amd_smi/amd_smi_utils.cc.o.d -o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_utils.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_utils.cc [ 42%] Building CXX object src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_uuid.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/amd_smi/amd_smi_uuid.cc.o -MF CMakeFiles/amd_smi.dir/amd_smi/amd_smi_uuid.cc.o.d -o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_uuid.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_uuid.cc In file included from /usr/include/errno.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_utils.cc:21: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/cstdlib:41, from /usr/include/c++/14/stdlib.h:36, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:51, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_uuid.cc:23: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc:1149:20: warning: ‘std::string amd::smi::pt_vddc_curve(rsmi_od_volt_curve*)’ defined but not used [-Wunused-function] 1149 | static std::string pt_vddc_curve(rsmi_od_volt_curve *c) { | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 44%] Building CXX object src/CMakeFiles/amd_smi.dir/amd_smi/fdinfo.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/amd_smi/fdinfo.cc.o -MF CMakeFiles/amd_smi.dir/amd_smi/fdinfo.cc.o.d -o CMakeFiles/amd_smi.dir/amd_smi/fdinfo.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/fdinfo.cc In file included from /usr/include/sys/types.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/fdinfo.cc:21: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_system.cc: In member function ‘amdsmi_status_t amd::smi::AMDSmiSystem::get_gpu_socket_id(uint32_t, std::string&)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_system.cc:253:14: warning: unused variable ‘partition_id’ [-Wunused-variable] 253 | uint64_t partition_id = (bdfid >> 28) & 0xf; | ^~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_system.cc:256:14: warning: unused variable ‘function’ [-Wunused-variable] 256 | uint64_t function = bdfid & 0x7; | ^~~~~~~~ [ 46%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc [ 47%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_counters.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_counters.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_counters.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_counters.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_counters.cc In file included from /usr/include/fcntl.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/sys/ioctl.h:21, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_counters.cc:46: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/impl/amd_smi_system.h:49, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_system.cc:45: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/fdinfo.cc: In function ‘amdsmi_status_t gpuvsmi_get_pids(const amdsmi_bdf_t&, std::vector&, uint64_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/fdinfo.cc:76:35: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=] 76 | snprintf(bdf_str, 13, "%04x:%02x:%02x.%d", | ~~~^ | | | unsigned int | %04lx 77 | bdf.domain_number & 0xffff, | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/fdinfo.cc: In function ‘amdsmi_status_t gpuvsmi_get_pid_info(const amdsmi_bdf_t&, long int, amdsmi_proc_info_t&)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/fdinfo.cc:125:35: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=] 125 | snprintf(bdf_str, 13, "%04x:%02x:%02x.%d", | ~~~^ | | | unsigned int | %04lx 126 | bdf.domain_number & 0xffff, | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/fdinfo.cc:159:79: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[13]’ [-Wformat=] 159 | if (sscanf(bdfline.c_str(), "drm-pdev: %s", &fd_bdf_str) != 1) | ~^ ~~~~~~~~~~~ | | | | | char (*)[13] | char* /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_utils.cc: In function ‘amdsmi_status_t smi_amdgpu_get_driver_version(amd::smi::AMDSmiGPUDevice*, int*, char*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_utils.cc:523:46: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion] 523 | *length = version[len-1] == '\n' ? len - 1 : len; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/fdinfo.cc:31: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 49%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_device.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_device.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_device.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_device.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc In file included from /usr/include/pthread.h:21, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 50%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_gpu_metrics.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_gpu_metrics.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_gpu_metrics.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_gpu_metrics.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/bits/memoryfwd.h:48, from /usr/include/c++/14/memory:63, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_common.h:48, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_gpu_metrics.h:47, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_ras_feature_info_get(uint32_t, rsmi_ras_feature_info_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:922:41: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 922 | ras_feature->ras_eeprom_version = eeprom_version; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:946:49: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 946 | ras_feature->ecc_correction_schema_flag = schema; | ^~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_utils.cc: In function ‘std::string smi_amdgpu_split_string(std::string, char)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_utils.cc:643:1: warning: control reaches end of non-void function [-Wreturn-type] 643 | } | ^ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/impl/amd_smi_utils.h:29, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/amd_smi/amd_smi_utils.cc:46: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:75: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_utils.h: In instantiation of ‘decltype(auto) amd::smi::TagTextContents_t::get_structured_data_subkey_last(const PrimaryKeyType&) [with PrimaryKeyType = std::__cxx11::basic_string; PrimaryDataType = std::__cxx11::basic_string; SecondaryKeyType = std::__cxx11::basic_string; SecondaryDataType = std::__cxx11::basic_string]’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:1491:87: required from here 1491 | auto upper_bound_data = txt_power_dev_od_voltage.get_structured_data_subkey_last(prim_key); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_utils.h:450:138: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 450 | (get_structured_subkeys_size(prim_key) - 1)))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_gpu_clk_freq_set(uint32_t, rsmi_clk_type_t, uint64_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:2068:9: warning: unused variable ‘perms’ [-Wunused-variable] 2068 | int perms = amd::smi::isReadOnlyForAll(dev->path(), &read_only); | ^~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_process_isolation_set(uint32_t, uint32_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:2137:17: warning: unused variable ‘ret’ [-Wunused-variable] 2137 | rsmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_gpu_run_cleaner_shader(uint32_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:2202:17: warning: unused variable ‘ret’ [-Wunused-variable] 2202 | rsmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_xgmi_plpd_set(uint32_t, uint32_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:2318:17: warning: unused variable ‘ret’ [-Wunused-variable] 2318 | rsmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_soc_pstate_set(uint32_t, uint32_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:2432:17: warning: unused variable ‘ret’ [-Wunused-variable] 2432 | rsmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_pci_bandwidth_get(uint32_t, rsmi_pcie_bandwidth_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:3023:19: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare] 3023 | if (width_index == -1 || speed_index == -1) { | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:3023:40: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare] 3023 | if (width_index == -1 || speed_index == -1) { | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_cache_info_get(uint32_t, rsmi_gpu_cache_info_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:3954:17: warning: unused variable ‘ret’ [-Wunused-variable] 3954 | rsmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_utilization_count_get(uint32_t, rsmi_utilization_counter_t*, uint32_t, uint64_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:4238:12: warning: unused variable ‘val_ui32’ [-Wunused-variable] 4238 | uint32_t val_ui32; | ^~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In function ‘rsmi_status_t rsmi_dev_memory_partition_set(uint32_t, rsmi_memory_partition_type_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:5729:8: warning: unused variable ‘isCorrectDevice’ [-Wunused-variable] 5729 | bool isCorrectDevice = false; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:5730:8: warning: variable ‘boardName’ set but not used [-Wunused-but-set-variable] 5730 | char boardName[kMaxBoardLength]; | ^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In lambda function: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6677:33: warning: format ‘%llx’ expects argument of type ‘long long unsigned int*’, but argument 3 has type ‘uint64_t*’ {aka ‘long unsigned int*’} [-Wformat=] 6677 | sscanf(message, "%llx:%llx\n", &bitmask, &counter); | ~~~^ ~~~~~~~~ | | | | | uint64_t* {aka long unsigned int*} | long long unsigned int* | %lx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6677:38: warning: format ‘%llx’ expects argument of type ‘long long unsigned int*’, but argument 4 has type ‘uint64_t*’ {aka ‘long unsigned int*’} [-Wformat=] 6677 | sscanf(message, "%llx:%llx\n", &bitmask, &counter); | ~~~^ ~~~~~~~~ | | | | | uint64_t* {aka long unsigned int*} | long long unsigned int* | %lx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6703:36: warning: format ‘%[^ ’ expects a matching ‘char*’ argument [-Wformat=] 6703 | sscanf(message, "%x %[^\n]\n", &reset_seq_num); | ~~~^~ | | | char* /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 5 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~~^ ~~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:46: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 6 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:50: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 7 has type ‘uint16_t*’ {aka ‘short unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~^ ~~~~~ | | | | unsigned int* uint16_t* {aka short unsigned int*} | %hx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:54: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 8 has type ‘uint16_t*’ {aka ‘short unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~^ ~~~ | | | | unsigned int* uint16_t* {aka short unsigned int*} | %hx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:57: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 9 has type ‘uint16_t*’ {aka ‘short unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~^ ~~~~~~~~~~~~~ | | | | unsigned int* uint16_t* {aka short unsigned int*} | %hx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6722:60: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 10 has type ‘uint16_t*’ {aka ‘short unsigned int*’} [-Wformat=] 6722 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %x:%x %d\n", &ns, &pid, &start, &size, &from, &to, &prefetch_loc, &preferred_loc, &migrate_trigger); | ~^ ~~~~~~~~~~~~~~ | | | | unsigned int* uint16_t* {aka short unsigned int*} | %hx /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6748:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6748 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %d %d\n", &ns, &pid, &start, &size, &from, &to, &migrate_trigger, &error_code); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6748:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 5 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6748 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %d %d\n", &ns, &pid, &start, &size, &from, &to, &migrate_trigger, &error_code); | ~~^ ~~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6748:46: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 6 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6748 | sscanf(message, "%lld -%d @%lx(%lx) %x->%x %d %d\n", &ns, &pid, &start, &size, &from, &to, &migrate_trigger, &error_code); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6770:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6770 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, rw); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6770:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 5 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6770 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, rw); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6789:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6789 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, migrate_update); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6789:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 5 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6789 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, migrate_update); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6807:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6807 | sscanf(message, "%lld -%d %x %d\n", &ns, &pid, &node, &evict_trigger); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6824:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6824 | sscanf(message, "%lld -%d %x %c\n", &ns, &pid, &node, rescheduled); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6843:33: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int64_t*’ {aka ‘long int*’} [-Wformat=] 6843 | sscanf(message, "%lld -%d @%lx(%lx) %x %d\n", &ns, &pid, &addr, &size, &node, &unmap_trigger); | ~~~^ ~~~ | | | | long long int* int64_t* {aka long int*} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6843:42: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 5 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6843 | sscanf(message, "%lld -%d @%lx(%lx) %x %d\n", &ns, &pid, &addr, &size, &node, &unmap_trigger); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6843:46: warning: format ‘%lx’ expects argument of type ‘long unsigned int*’, but argument 6 has type ‘uint32_t*’ {aka ‘unsigned int*’} [-Wformat=] 6843 | sscanf(message, "%lld -%d @%lx(%lx) %x %d\n", &ns, &pid, &addr, &size, &node, &unmap_trigger); | ~~^ ~~~~~ | | | | long unsigned int* uint32_t* {aka unsigned int*} | %x [ 52%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_binary_parser.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_binary_parser.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_binary_parser.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_binary_parser.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/bits/memoryfwd.h:48, from /usr/include/c++/14/memory:63, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_common.h:48, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include/rocm_smi/rocm_smi_binary_parser.h:47, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc: In member function ‘rsmi_status_t amd::smi::Device::restartAMDGpuDriver()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc:1498:8: warning: unused variable ‘restartInProgress’ [-Wunused-variable] 1498 | bool restartInProgress = true; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc: In member function ‘rsmi_status_t amd::smi::Device::isRestartInProgress(bool*, bool*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_device.cc:1584:8: warning: unused variable ‘restartSuccessful’ [-Wunused-variable] 1584 | bool restartSuccessful = true; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:210:13: warning: ‘void freq_volt_string_to_point(std::string, rsmi_od_vddc_point_t*)’ defined but not used [-Wunused-function] 210 | static void freq_volt_string_to_point(std::string in_line, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc: In member function ‘virtual void amd::smi::GpuMetricsBase_v16_t::dump_internal_metrics_table()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:594:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 594 | if (idy + 1 != (std::end(row.gfx_busy_inst) - std::end(row.gfx_busy_inst) - 1)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:597:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 597 | if (idx + 1 != | ~~~~~~~~^~ 598 | (std::end(m_gpu_metrics_tbl.m_xcp_stats) - std::end(m_gpu_metrics_tbl.m_xcp_stats) - 1)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:617:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 617 | if (idy + 1 != (std::end(row.vcn_busy) - std::end(row.vcn_busy) - 1)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:620:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 620 | if (idx + 1 != | ~~~~~~~~^~ 621 | (std::end(m_gpu_metrics_tbl.m_xcp_stats) - std::end(m_gpu_metrics_tbl.m_xcp_stats) - 1)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:640:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 640 | if (idy + 1 != (std::end(row.jpeg_busy) - std::end(row.jpeg_busy) - 1)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:643:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 643 | if (idx + 1 != | ~~~~~~~~^~ 644 | (std::end(m_gpu_metrics_tbl.m_xcp_stats) - std::end(m_gpu_metrics_tbl.m_xcp_stats) - 1)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:663:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 663 | if (idy + 1 != (std::end(row.gfx_busy_acc) - std::end(row.gfx_busy_acc) - 1)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:666:19: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 666 | if (idx + 1 != | ~~~~~~~~^~ 667 | (std::end(m_gpu_metrics_tbl.m_xcp_stats) - std::end(m_gpu_metrics_tbl.m_xcp_stats) - 1)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc: In function ‘rsmi_status_t rsmi_dev_gpu_metrics_info_get(uint32_t, rsmi_gpu_metrics_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_gpu_metrics.cc:4048:8: warning: unused variable ‘ret’ [-Wunused-variable] 4048 | auto ret = rsmi_dev_partition_id_get(dv_ind, &partition_id); | ^~~ [ 53%] Linking CXX shared library librocm_smi64.so cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/cmake -E cmake_link_script CMakeFiles/rocm_smi64.dir/link.txt --verbose=1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc: In function ‘int amd::smi::present_pmmetrics(const char*, rsmi_name_value_t**, uint32_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:158:16: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int32_t’ {aka ‘int’} may change value [-Wconversion] 158 | len = fread(buf1, 1, 65536, infile); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc: In function ‘int amd::smi::parse_reg_state_table(uint8_t*, int32_t, metric_field*, rsmi_name_value_t**, uint32_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:227:36: warning: conversion from ‘uint64_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion] 227 | num_instance = v; | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:230:31: warning: conversion from ‘uint64_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion] 230 | num_smn = v; | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:237:24: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare] 237 | if (*kvnum == kvsize) { | ~~~~~~~^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc: In function ‘int amd::smi::present_reg_state(const char*, rsmi_reg_type_t, rsmi_name_value_t**, uint32_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_binary_parser.cc:314:16: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int32_t’ {aka ‘int’} may change value [-Wconversion] 314 | len = fread(buf, 1, sizeof buf, infile); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In member function ‘rsmi_event_notification_get::{lambda(bool)#1}::operator()(bool) const’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6770:19: warning: ‘rw’ may be used uninitialized [-Wmaybe-uninitialized] 6770 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, rw); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6768:19: note: ‘rw’ was declared here 6768 | char *rw; | ^~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6789:19: warning: ‘migrate_update’ may be used uninitialized [-Wmaybe-uninitialized] 6789 | sscanf(message, "%lld -%d @%lx(%x) %c\n", &ns, &pid, &addr, &node, migrate_update); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6787:19: note: ‘migrate_update’ was declared here 6787 | char *migrate_update; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6824:19: warning: ‘rescheduled’ may be used uninitialized [-Wmaybe-uninitialized] 6824 | sscanf(message, "%lld -%d %x %c\n", &ns, &pid, &node, rescheduled); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6822:19: note: ‘rescheduled’ was declared here 6822 | char *rescheduled; | ^~~~~~~~~~~ [ 55%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_io_link.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_io_link.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_io_link.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_io_link.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_io_link.cc In file included from /usr/include/dirent.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_io_link.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 57%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_kfd.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_kfd.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_kfd.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_kfd.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc In file included from /usr/include/dirent.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 58%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_main.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_main.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_main.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_main.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc In file included from /usr/include/dirent.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:43: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6643:13: warning: ‘memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6643 | memcpy(reinterpret_cast(event_in), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6662:19: warning: ‘memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6662 | memcpy(reinterpret_cast(task_name), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6689:19: warning: ‘memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6689 | memcpy(reinterpret_cast(reset_cause), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6864:15: warning: ‘memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6864 | memcpy(reinterpret_cast(event_in), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc: In member function ‘int amd::smi::KFDNode::get_used_memory(uint64_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc:903:16: warning: conversion from ‘uint64_t’ {aka ‘long unsigned int’} to ‘__u32’ {aka ‘unsigned int’} may change value [-Wconversion] 903 | mem.gpu_id = gpu_id_; | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc: In member function ‘int amd::smi::KFDNode::get_cache_info(rsmi_gpu_cache_info_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_kfd.cc:950:25: warning: conversion from ‘std::__iterator_traits<__gnu_cxx::__normal_iterator >, void>::difference_type’ {aka ‘long int’} to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 950 | std::count(sibling_map.begin(), sibling_map.end(), '1'); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In member function ‘operator()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6643:13: warning: ‘__builtin_memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6643 | memcpy(reinterpret_cast(event_in), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6662:19: warning: ‘__builtin_memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6662 | memcpy(reinterpret_cast(task_name), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6689:19: warning: ‘__builtin_memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6689 | memcpy(reinterpret_cast(reset_cause), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6864:15: warning: ‘__builtin_memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6864 | memcpy(reinterpret_cast(event_in), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc: In member function ‘uint32_t amd::smi::RocmSMI::DiscoverAmdgpuDevices()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:781:47: warning: ‘~’ on an expression of type ‘bool’ [-Wbool-operation] 781 | ~(ret_unique_id != 0 || ret_loc_id != 0 || ret_unique_id != 0)) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:781:47: note: did you mean to use logical not (‘!’)? /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:778:9: warning: unused variable ‘ret_domain’ [-Wunused-variable] 778 | int ret_domain = | ^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:827:36: warning: comparison of integer expressions of different signedness: ‘uint32_t’ {aka ‘unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare] 827 | for (uint32_t cardId = 0; cardId <= max_cardId; cardId++) { | ~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:989:14: warning: unused variable ‘erasedNodes’ [-Wunused-variable] 989 | auto erasedNodes = allSystemNodes.erase(0); | ^~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_main.cc:940:16: warning: variable ‘primary_location_id’ set but not used [-Wunused-but-set-variable] 940 | uint64_t primary_location_id = 0; | ^~~~~~~~~~~~~~~~~~~ [ 60%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_monitor.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_monitor.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_monitor.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_monitor.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_monitor.cc In file included from /usr/include/dirent.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_monitor.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 61%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_power_mon.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_power_mon.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_power_mon.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_power_mon.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_power_mon.cc In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/cassert:43, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_power_mon.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 63%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_utils.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_utils.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_utils.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_utils.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc In file included from /usr/include/assert.h:35, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc:45: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 65%] Building CXX object src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_logger.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_logger.cc.o -MF CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_logger.cc.o.d -o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_logger.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_logger.cc In file included from /usr/include/c++/14/x86_64-redhat-linux/bits/os_defines.h:39, from /usr/include/c++/14/x86_64-redhat-linux/bits/c++config.h:2524, from /usr/include/c++/14/cstdlib:41, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_logger.cc:63: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 66%] Building CXX object src/CMakeFiles/amd_smi.dir/__/third_party/shared_mutex/shared_mutex.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/third_party/shared_mutex/shared_mutex.cc.o -MF CMakeFiles/amd_smi.dir/__/third_party/shared_mutex/shared_mutex.cc.o.d -o CMakeFiles/amd_smi.dir/__/third_party/shared_mutex/shared_mutex.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex/shared_mutex.cc In file included from /usr/include/sys/stat.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex/shared_mutex.h:28, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex/shared_mutex.cc:25: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 68%] Building C object src/CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi.c.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/gcc -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi.c.o -MF CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi.c.o.d -o CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi.c.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘create_cpu_mappings’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:274:47: warning: pointer targets in passing argument 3 of ‘parse_lines’ differ in signedness [-Wpointer-sign] 274 | parse_lines(&str, fp, &sm->map[i].sock_id, node_str); | ^~~~~~~~~~~~~~~~~~~ | | | int * /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:232:57: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’ 232 | static void parse_lines(char **str, FILE *fp, uint32_t *val, const char *cmp_str) | ~~~~~~~~~~^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:275:47: warning: pointer targets in passing argument 3 of ‘parse_lines’ differ in signedness [-Wpointer-sign] 275 | parse_lines(&str, fp, &sm->map[i].apic_id, apic_str); | ^~~~~~~~~~~~~~~~~~~ | | | int * /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:232:57: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’ 232 | static void parse_lines(char **str, FILE *fp, uint32_t *val, const char *cmp_str) | ~~~~~~~~~~^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘esmi_socket_energy_get’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:556:69: warning: pointer targets in passing argument 2 of ‘esmi_first_online_core_on_socket’ differ in signedness [-Wpointer-sign] 556 | status = esmi_first_online_core_on_socket(sock_ind, &core_ind); | ^~~~~~~~~ | | | int * /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:80:58: note: expected ‘uint32_t *’ {aka ‘unsigned int *’} but argument is of type ‘int *’ 80 | uint32_t *pcore_ind) | ~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘esmi_prochot_status_get’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:828:14: warning: unused variable ‘hot’ [-Wunused-variable] 828 | char hot[9]; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘esmi_xgmi_width_set’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:857:13: warning: unused variable ‘drv_val’ [-Wunused-variable] 857 | int drv_val; | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘esmi_fclk_mclk_get’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:939:18: warning: unused variable ‘clk’ [-Wunused-variable] 939 | uint64_t clk; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘esmi_socket_lclk_dpm_level_get’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:1051:18: warning: unused variable ‘dpm_val’ [-Wunused-variable] 1051 | uint32_t dpm_val; | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘validate_link_name’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:1357:23: warning: unused variable ‘ret’ [-Wunused-variable] 1357 | esmi_status_t ret; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c: In function ‘validate_max_min_values’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:1458:23: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] 1458 | if (max_value > max_limit | max_value < min_value) | ~~~~~~~~~~^~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc: In function ‘rsmi_status_t amd::smi::rsmi_dev_number_of_computes_get(uint32_t, uint32_t*)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc:1266:35: warning: conversion from ‘long unsigned int’ to ‘uint32_t’ {aka ‘unsigned int’} may change value [-Wconversion] 1266 | *num_computes = (tmp_simd_count / tmp_simd_per_cu); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc: In function ‘int amd::smi::countDigit(uint64_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc:1320:44: warning: conversion from ‘uint64_t’ {aka ‘long unsigned int’} to ‘double’ may change value [-Wconversion] 1320 | return static_cast(std::floor(log10(n) + 1)); | ^ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi.c:18: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At top level: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 69%] Building C object src/CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_monitor.c.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/gcc -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_monitor.c.o -MF CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_monitor.c.o.d -o CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_monitor.c.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_monitor.c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_monitor.c: In function ‘find_energy’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_monitor.c:37:13: warning: unused variable ‘i’ [-Wunused-variable] 37 | int i = 0; | ^ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_monitor.c:18: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At top level: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 71%] Building C object src/CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_plat.c.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/gcc -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_plat.c.o -MF CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_plat.c.o.d -o CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_plat.c.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_plat.c In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_plat.c:9: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 73%] Building C object src/CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_utils.c.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/gcc -DENABLE_ESMI_LIB=1 -Damd_smi_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/common/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MT src/CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_utils.c.o -MF CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_utils.c.o.d -o CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_utils.c.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/src/e_smi_utils.c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi_utils.cc:1149:20: warning: ‘std::string amd::smi::pt_vddc_curve(rsmi_od_volt_curve*)’ defined but not used [-Wunused-function] 1149 | static std::string pt_vddc_curve(rsmi_od_volt_curve *c) { | ^~~~~~~~~~~~~ [ 74%] Linking CXX shared library libamd_smi.so cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/amd_smi.dir/link.txt --verbose=1 /usr/bin/g++ -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -Wl,--dependency-file=CMakeFiles/rocm_smi64.dir/link.d -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -shared -Wl,-soname,librocm_smi64.so.1 -o librocm_smi64.so.1.0 CMakeFiles/rocm_smi64.dir/src/rocm_smi.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_counters.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_device.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_gpu_metrics.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_binary_parser.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_io_link.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_kfd.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_main.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_monitor.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_power_mon.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_utils.cc.o CMakeFiles/rocm_smi64.dir/src/rocm_smi_logger.cc.o CMakeFiles/rocm_smi64.dir/__/third_party/shared_mutex/shared_mutex.cc.o CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi.c.o CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_monitor.c.o CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_plat.c.o CMakeFiles/rocm_smi64.dir/__/esmi_ib_library/src/e_smi_utils.c.o -lpthread -lrt -ldl cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/cmake -E cmake_symlink_library librocm_smi64.so.1.0 librocm_smi64.so.1 librocm_smi64.so gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [ 74%] Built target rocm_smi64 /usr/bin/gmake -f rocm_smi/CMakeFiles/rocm_smi_ex.dir/build.make rocm_smi/CMakeFiles/rocm_smi_ex.dir/depend gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi/CMakeFiles/rocm_smi_ex.dir/DependInfo.cmake "--color=" gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f rocm_smi/CMakeFiles/rocm_smi_ex.dir/build.make rocm_smi/CMakeFiles/rocm_smi_ex.dir/build gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [ 76%] Building CXX object rocm_smi/CMakeFiles/rocm_smi_ex.dir/example/rocm_smi_example.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -MD -MT rocm_smi/CMakeFiles/rocm_smi_ex.dir/example/rocm_smi_example.cc.o -MF CMakeFiles/rocm_smi_ex.dir/example/rocm_smi_example.cc.o.d -o CMakeFiles/rocm_smi_ex.dir/example/rocm_smi_example.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc In file included from /usr/include/assert.h:35, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:46: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc: In function ‘rsmi_status_t test_set_compute_partitioning(uint32_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:634:44: warning: the address of ‘originalComputePartition’ will never be NULL [-Waddress] 634 | << (((originalComputePartition == nullptr) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:622:8: note: ‘originalComputePartition’ declared here 622 | char originalComputePartition[kLength]; | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:635:47: warning: the address of ‘originalComputePartition’ will never be NULL [-Waddress] 635 | || ((originalComputePartition != nullptr) | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:622:8: note: ‘originalComputePartition’ declared here 622 | char originalComputePartition[kLength]; | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc: In function ‘rsmi_status_t test_set_memory_partition(uint32_t)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:682:43: warning: the address of ‘originalMemoryPartition’ will never be NULL [-Waddress] 682 | << (((originalMemoryPartition == nullptr) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:671:8: note: ‘originalMemoryPartition’ declared here 671 | char originalMemoryPartition[kLength]; | ^~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:683:46: warning: the address of ‘originalMemoryPartition’ will never be NULL [-Waddress] 683 | || ((originalMemoryPartition != nullptr) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:671:8: note: ‘originalMemoryPartition’ declared here 671 | char originalMemoryPartition[kLength]; | ^~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc: In function ‘int main()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:784:47: warning: the address of ‘current_compute_partition’ will never be NULL [-Waddress] 784 | << (((current_compute_partition == nullptr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:780:10: note: ‘current_compute_partition’ declared here 780 | char current_compute_partition[256]; | ^~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:785:50: warning: the address of ‘current_compute_partition’ will never be NULL [-Waddress] 785 | || ((current_compute_partition != nullptr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:780:10: note: ‘current_compute_partition’ declared here 780 | char current_compute_partition[256]; | ^~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:800:38: warning: the address of ‘memory_partition’ will never be NULL [-Waddress] 800 | << (((memory_partition == nullptr) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:796:10: note: ‘memory_partition’ declared here 796 | char memory_partition[kLength]; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:801:41: warning: the address of ‘memory_partition’ will never be NULL [-Waddress] 801 | || ((memory_partition != nullptr) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:796:10: note: ‘memory_partition’ declared here 796 | char memory_partition[kLength]; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:1138:49: warning: conversion from ‘uint64_t’ {aka ‘long unsigned int’} to ‘float’ may change value [-Wconversion] 1138 | std::cout << (static_cast(val_i64)/val_ui64) * 100; | ^~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc: In instantiation of ‘constexpr float convert_mw_to_w(T) [with T = long unsigned int]’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:1169:35: required from here 1169 | std::cout << convert_mw_to_w(val_ui64) << " W" << "\n"; | ~~~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/example/rocm_smi_example.cc:721:31: warning: conversion from ‘long unsigned int’ to ‘double’ may change value [-Wconversion] 721 | return static_cast(mw / 1000.0); | ^~ [ 77%] Linking CXX executable rocm_smi_ex cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi && /usr/bin/cmake -E cmake_link_script CMakeFiles/rocm_smi_ex.dir/link.txt --verbose=1 /usr/bin/g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -Wl,--dependency-file=CMakeFiles/rocm_smi_ex.dir/link.d CMakeFiles/rocm_smi_ex.dir/example/rocm_smi_example.cc.o -o rocm_smi_ex -Wl,-rpath,/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/rocm_smi librocm_smi64.so.1.0 -lpthread -lrt -ldl gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [ 77%] Built target rocm_smi_ex /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc: In member function ‘operator()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6643:13: warning: ‘__builtin_memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6643 | memcpy(reinterpret_cast(event_in), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6662:19: warning: ‘__builtin_memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6662 | memcpy(reinterpret_cast(task_name), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6689:19: warning: ‘__builtin_memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6689 | memcpy(reinterpret_cast(reset_cause), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/rocm_smi/src/rocm_smi.cc:6864:15: warning: ‘__builtin_memcpy’ reading 96 bytes from a region of size 2 [-Wstringop-overread] 6864 | memcpy(reinterpret_cast(event_in), "\0", MAX_EVENT_NOTIFICATION_MSG_SIZE); | ^ /usr/bin/g++ -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -Wl,--dependency-file=CMakeFiles/amd_smi.dir/link.d -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -shared -Wl,-soname,libamd_smi.so.0 -o libamd_smi.so.0.0 CMakeFiles/amd_smi.dir/amd_smi/amd_smi.cc.o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_common.cc.o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_drm.cc.o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_gpu_device.cc.o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_lib_loader.cc.o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_socket.cc.o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_system.cc.o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_utils.cc.o CMakeFiles/amd_smi.dir/amd_smi/amd_smi_uuid.cc.o CMakeFiles/amd_smi.dir/amd_smi/fdinfo.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_counters.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_device.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_gpu_metrics.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_binary_parser.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_io_link.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_kfd.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_main.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_monitor.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_power_mon.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_utils.cc.o CMakeFiles/amd_smi.dir/__/rocm_smi/src/rocm_smi_logger.cc.o CMakeFiles/amd_smi.dir/__/third_party/shared_mutex/shared_mutex.cc.o CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi.c.o CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_monitor.c.o CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_plat.c.o CMakeFiles/amd_smi.dir/__/esmi_ib_library/src/e_smi_utils.c.o -lpthread -lrt -ldl cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/cmake -E cmake_symlink_library libamd_smi.so.0.0 libamd_smi.so.0 libamd_smi.so gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [ 77%] Built target amd_smi /usr/bin/gmake -f src/CMakeFiles/amd_smi_ex.dir/build.make src/CMakeFiles/amd_smi_ex.dir/depend /usr/bin/gmake -f example/CMakeFiles/amd_smi_drm_ex.dir/build.make example/CMakeFiles/amd_smi_drm_ex.dir/depend /usr/bin/gmake -f example/CMakeFiles/amd_smi_nodrm_ex.dir/build.make example/CMakeFiles/amd_smi_nodrm_ex.dir/depend /usr/bin/gmake -f example/CMakeFiles/amd_smi_esmi_ex.dir/build.make example/CMakeFiles/amd_smi_esmi_ex.dir/depend /usr/bin/gmake -f py-interface/CMakeFiles/python_wrapper.dir/build.make py-interface/CMakeFiles/python_wrapper.dir/depend gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src/CMakeFiles/amd_smi_ex.dir/DependInfo.cmake "--color=" gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example/CMakeFiles/amd_smi_drm_ex.dir/DependInfo.cmake "--color=" /usr/bin/gmake -f goamdsmi_shim/CMakeFiles/goamdsmi_shim64.dir/build.make goamdsmi_shim/CMakeFiles/goamdsmi_shim64.dir/depend gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example/CMakeFiles/amd_smi_nodrm_ex.dir/DependInfo.cmake "--color=" gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example/CMakeFiles/amd_smi_esmi_ex.dir/DependInfo.cmake "--color=" gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/py-interface /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface/CMakeFiles/python_wrapper.dir/DependInfo.cmake "--color=" gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/goamdsmi_shim /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/goamdsmi_shim/CMakeFiles/goamdsmi_shim64.dir/DependInfo.cmake "--color=" gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f example/CMakeFiles/amd_smi_drm_ex.dir/build.make example/CMakeFiles/amd_smi_drm_ex.dir/build gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f example/CMakeFiles/amd_smi_nodrm_ex.dir/build.make example/CMakeFiles/amd_smi_nodrm_ex.dir/build /usr/bin/gmake -f example/CMakeFiles/amd_smi_esmi_ex.dir/build.make example/CMakeFiles/amd_smi_esmi_ex.dir/build /usr/bin/gmake -f py-interface/CMakeFiles/python_wrapper.dir/build.make py-interface/CMakeFiles/python_wrapper.dir/build gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f src/CMakeFiles/amd_smi_ex.dir/build.make src/CMakeFiles/amd_smi_ex.dir/build gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f goamdsmi_shim/CMakeFiles/goamdsmi_shim64.dir/build.make goamdsmi_shim/CMakeFiles/goamdsmi_shim64.dir/build gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [ 79%] Building CXX object example/CMakeFiles/amd_smi_esmi_ex.dir/amdsmi_esmi_intg_example.cc.o [ 80%] Building CXX object example/CMakeFiles/amd_smi_nodrm_ex.dir/amd_smi_nodrm_example.cc.o [ 82%] Generating amdsmi_wrapper.py, python_package/amdsmi/amdsmi_wrapper.py cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -MD -MT example/CMakeFiles/amd_smi_esmi_ex.dir/amdsmi_esmi_intg_example.cc.o -MF CMakeFiles/amd_smi_esmi_ex.dir/amdsmi_esmi_intg_example.cc.o.d -o CMakeFiles/amd_smi_esmi_ex.dir/amdsmi_esmi_intg_example.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amdsmi_esmi_intg_example.cc [ 84%] Building CXX object src/CMakeFiles/amd_smi_ex.dir/__/example/amd_smi_drm_example.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -MD -MT example/CMakeFiles/amd_smi_nodrm_ex.dir/amd_smi_nodrm_example.cc.o -MF CMakeFiles/amd_smi_nodrm_ex.dir/amd_smi_nodrm_example.cc.o.d -o CMakeFiles/amd_smi_nodrm_ex.dir/amd_smi_nodrm_example.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_nodrm_example.cc cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface && mkdir -p python_package/amdsmi [ 85%] Building CXX object example/CMakeFiles/amd_smi_drm_ex.dir/amd_smi_drm_example.cc.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -MD -MT src/CMakeFiles/amd_smi_ex.dir/__/example/amd_smi_drm_example.cc.o -MF CMakeFiles/amd_smi_ex.dir/__/example/amd_smi_drm_example.cc.o.d -o CMakeFiles/amd_smi_ex.dir/__/example/amd_smi_drm_example.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example && /usr/bin/g++ -DENABLE_ESMI_LIB=1 -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -std=c++17 -MD -MT example/CMakeFiles/amd_smi_drm_ex.dir/amd_smi_drm_example.cc.o -MF CMakeFiles/amd_smi_drm_ex.dir/amd_smi_drm_example.cc.o.d -o CMakeFiles/amd_smi_drm_ex.dir/amd_smi_drm_example.cc.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc [ 87%] Building C object goamdsmi_shim/CMakeFiles/goamdsmi_shim64.dir/smiwrapper/amdsmi_go_shim.c.o cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/py-interface/amdsmi_wrapper.py python_package/amdsmi/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/goamdsmi_shim && /usr/bin/gcc -DENABLE_DEBUG_LEVEL=0 -DENABLE_ESMI_LIB=1 -Dgoamdsmi_shim64_EXPORTS -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/third_party/shared_mutex -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include -I/usr/include/libdrm -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper -I/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/src/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -MD -MT goamdsmi_shim/CMakeFiles/goamdsmi_shim64.dir/smiwrapper/amdsmi_go_shim.c.o -MF CMakeFiles/goamdsmi_shim64.dir/smiwrapper/amdsmi_go_shim.c.o.d -o CMakeFiles/goamdsmi_shim64.dir/smiwrapper/amdsmi_go_shim.c.o -c /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper/amdsmi_go_shim.c gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' In file included from /usr/include/assert.h:35, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amdsmi_esmi_intg_example.cc:43: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/pwd.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_nodrm_example.cc:45: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/pwd.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/pwd.h:25, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:44: /usr/include/features.h:435:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 435 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ [ 87%] Built target python_wrapper /usr/bin/gmake -f py-interface/CMakeFiles/python_package.dir/build.make py-interface/CMakeFiles/python_package.dir/depend gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/py-interface /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface/CMakeFiles/python_package.dir/DependInfo.cmake "--color=" gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f py-interface/CMakeFiles/python_package.dir/build.make py-interface/CMakeFiles/python_package.dir/build gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [ 88%] Generating python_package/amdsmi/__init__.py, python_package/amdsmi/amdsmi_exception.py, python_package/amdsmi/amdsmi_interface.py, python_package/amdsmi/README.md, python_package/amdsmi/LICENSE cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/py-interface/__init__.py python_package/amdsmi/ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper/amdsmi_go_shim.c: In function ‘goamdsmi_gpu_dev_temp_metric_get’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper/amdsmi_go_shim.c:528:177: warning: pointer targets in passing argument 4 of ‘amdsmi_get_temp_metric’ differ in signedness [-Wpointer-sign] 528 | if((dv_ind < num_gpu_devices_inAllSocket) && (AMDSMI_STATUS_SUCCESS == amdsmi_get_temp_metric(amdsmi_processor_handle_all_gpu_device_across_socket[dv_ind], sensor, metric, &gpu_temperature_temp))) | ^~~~~~~~~~~~~~~~~~~~~ | | | uint64_t * {aka long unsigned int *} cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/py-interface/amdsmi_exception.py python_package/amdsmi/ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/goamdsmi_shim/smiwrapper/amdsmi_go_shim.c:42: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:2943:68: note: expected ‘int64_t *’ {aka ‘long int *’} but argument is of type ‘uint64_t *’ {aka ‘long unsigned int *’} 2943 | amdsmi_temperature_metric_t metric, int64_t *temperature); | ~~~~~~~~~^~~~~~~~~~~ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/py-interface/amdsmi_interface.py python_package/amdsmi/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/py-interface/README.md python_package/amdsmi/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/LICENSE python_package/amdsmi/ [ 90%] Generating python_package/amdsmi/libamd_smi.so cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/py-interface && cp /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src/libamd_smi.so python_package/amdsmi/ gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [ 90%] Built target python_package /usr/bin/gmake -f amdsmi_cli/CMakeFiles/amdsmi_cli.dir/build.make amdsmi_cli/CMakeFiles/amdsmi_cli.dir/depend gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli/CMakeFiles/amdsmi_cli.dir/DependInfo.cmake "--color=" [ 92%] Linking C shared library libgoamdsmi_shim64.so cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/goamdsmi_shim && /usr/bin/cmake -E cmake_link_script CMakeFiles/goamdsmi_shim64.dir/link.txt --verbose=1 gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f amdsmi_cli/CMakeFiles/amdsmi_cli.dir/build.make amdsmi_cli/CMakeFiles/amdsmi_cli.dir/build gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [ 93%] Generating amdsmi_cli/__init__.py, amdsmi_cli/amdsmi_cli.py, amdsmi_cli/amdsmi_commands.py, amdsmi_cli/amdsmi_helpers.py, amdsmi_cli/amdsmi_init.py, amdsmi_cli/amdsmi_logger.py, amdsmi_cli/amdsmi_parser.py, amdsmi_cli/amdsmi_cli_exceptions.py, amdsmi_cli/rocm_version.py, amdsmi_cli/BDF.py, amdsmi_cli/README.md, amdsmi_cli/Release_Notes.md cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && mkdir -p amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/__init__.py amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/amdsmi_cli.py amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/amdsmi_commands.py amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/amdsmi_helpers.py amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/amdsmi_init.py amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/amdsmi_logger.py amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/amdsmi_parser.py amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/amdsmi_cli_exceptions.py amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/rocm_version.py amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/BDF.py amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/README.md amdsmi_cli/ cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && ln -Pf /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli/Release_Notes.md amdsmi_cli/ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_nodrm_example.cc: In function ‘int main()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_nodrm_example.cc:344:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 344 | for (int x=0; x < policy.num_supported; x++) { | ~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc: In function ‘int main()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:433:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 433 | printf("\tPCIe replay count: %d\n", pcie_info.pcie_metric.pcie_replay_count); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:434:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 434 | printf("\tPCIe L0 recovery count: %d\n", pcie_info.pcie_metric.pcie_l0_to_recovery_count); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:435:45: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 435 | printf("\tPCIe rollover count: %d\n", pcie_info.pcie_metric.pcie_replay_roll_over_count); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:436:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 436 | printf("\tPCIe nak received count: %d\n", pcie_info.pcie_metric.pcie_nak_received_count); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:437:45: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 437 | printf("\tPCIe nak sent count: %d\n", pcie_info.pcie_metric.pcie_nak_sent_count); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:577:47: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘amdsmi_process_handle_t’ {aka ‘unsigned int’} [-Wformat=] 577 | printf("\t *Process id: %ld / Name: %s / VRAM: %lld \n", process.pid, process.name, process.memory_usage.vram_mem); | ~~^ ~~~~~~~~~~~ | | | | long int amdsmi_process_handle_t {aka unsigned int} | %d /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:577:71: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 577 | printf("\t *Process id: %ld / Name: %s / VRAM: %lld \n", process.pid, process.name, process.memory_usage.vram_mem); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:593:37: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 593 | for (int it = 0; it < num_process; it++) { | ~~~^~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:635:27: warning: format ‘%lu’ expects a matching ‘long unsigned int’ argument [-Wformat=] 635 | "%lu %lu %lu |\n", | ~~^ | | | long unsigned int /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:635:32: warning: format ‘%lu’ expects a matching ‘long unsigned int’ argument [-Wformat=] 635 | "%lu %lu %lu |\n", | ~~^ | | | long unsigned int /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:635:37: warning: format ‘%lu’ expects a matching ‘long unsigned int’ argument [-Wformat=] 635 | "%lu %lu %lu |\n", | ~~^ | | | long unsigned int /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:571:21: warning: unused variable ‘num’ [-Wunused-variable] 571 | int num = 0; | ^~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:730:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 730 | if ((idx + 1) != std::size(smu.temperature_hbm)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:747:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 747 | if ((idx + 1) != std::size(smu.vcn_activity)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:760:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 760 | if ((idx + 1) != std::size(smu.jpeg_activity)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:797:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 797 | if ((idx + 1) != std::size(smu.current_gfxclks)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:810:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 810 | if ((idx + 1) != std::size(smu.current_socclks)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:824:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 824 | if ((idx + 1) != std::size(smu.current_vclk0s)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:837:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 837 | if ((idx + 1) != std::size(smu.current_dclk0s)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:874:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 874 | if ((idx + 1) != std::size(smu.xgmi_read_data_acc)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:886:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 886 | if ((idx + 1) != std::size(smu.xgmi_write_data_acc)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_nodrm_example.cc:56: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 93%] Built target amdsmi_cli /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:946:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 946 | if ((idy + 1) != std::size(row.gfx_busy_inst)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/gmake -f amdsmi_cli/CMakeFiles/link_amdsmi_cli.dir/build.make amdsmi_cli/CMakeFiles/link_amdsmi_cli.dir/depend /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:964:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 964 | if ((idy + 1) != std::size(row.vcn_busy)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/amdsmi_cli /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli/CMakeFiles/link_amdsmi_cli.dir/DependInfo.cmake "--color=" /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:982:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 982 | if ((idy + 1) != std::size(row.jpeg_busy)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:1000:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 1000 | if ((idy + 1) != std::size(row.gfx_busy_acc)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:547:18: warning: variable ‘compare’ set but not used [-Wunused-but-set-variable] 547 | auto compare = [](const void *a, const void *b) -> int { | ^~~~~~~ /usr/bin/gcc -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,--dependency-file=CMakeFiles/goamdsmi_shim64.dir/link.d -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -shared -Wl,-soname,libgoamdsmi_shim64.so.1 -o libgoamdsmi_shim64.so.1.0 CMakeFiles/goamdsmi_shim64.dir/smiwrapper/amdsmi_go_shim.c.o -Wl,-rpath,/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src: -lpthread -lrt -lm ../src/libamd_smi.so.0.0 -L/lib -L/lib64 -lpthread -lrt -ldl gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/gmake -f amdsmi_cli/CMakeFiles/link_amdsmi_cli.dir/build.make amdsmi_cli/CMakeFiles/link_amdsmi_cli.dir/build cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/goamdsmi_shim && /usr/bin/cmake -E cmake_symlink_library libgoamdsmi_shim64.so.1.0 libgoamdsmi_shim64.so.1 libgoamdsmi_shim64.so gmake[2]: Entering directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli && /usr/bin/cmake -E create_symlink ../libexec/amdsmi_cli/amdsmi_cli.py /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/amdsmi_cli/bin/amd-smi /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc: In function ‘int main()’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:433:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 433 | printf("\tPCIe replay count: %d\n", pcie_info.pcie_metric.pcie_replay_count); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:434:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 434 | printf("\tPCIe L0 recovery count: %d\n", pcie_info.pcie_metric.pcie_l0_to_recovery_count); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:435:45: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 435 | printf("\tPCIe rollover count: %d\n", pcie_info.pcie_metric.pcie_replay_roll_over_count); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:436:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 436 | printf("\tPCIe nak received count: %d\n", pcie_info.pcie_metric.pcie_nak_received_count); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:437:45: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 437 | printf("\tPCIe nak sent count: %d\n", pcie_info.pcie_metric.pcie_nak_sent_count); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %ld gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:577:47: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘amdsmi_process_handle_t’ {aka ‘unsigned int’} [-Wformat=] 577 | printf("\t *Process id: %ld / Name: %s / VRAM: %lld \n", process.pid, process.name, process.memory_usage.vram_mem); | ~~^ ~~~~~~~~~~~ | | | | long int amdsmi_process_handle_t {aka unsigned int} | %d /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:577:71: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 577 | printf("\t *Process id: %ld / Name: %s / VRAM: %lld \n", process.pid, process.name, process.memory_usage.vram_mem); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:593:37: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 593 | for (int it = 0; it < num_process; it++) { | ~~~^~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:635:27: warning: format ‘%lu’ expects a matching ‘long unsigned int’ argument [-Wformat=] 635 | "%lu %lu %lu |\n", | ~~^ | | | long unsigned int /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:635:32: warning: format ‘%lu’ expects a matching ‘long unsigned int’ argument [-Wformat=] 635 | "%lu %lu %lu |\n", | ~~^ | | | long unsigned int /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:635:37: warning: format ‘%lu’ expects a matching ‘long unsigned int’ argument [-Wformat=] 635 | "%lu %lu %lu |\n", | ~~^ | | | long unsigned int /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:571:21: warning: unused variable ‘num’ [-Wunused-variable] 571 | int num = 0; | ^~~ [ 93%] Built target link_amdsmi_cli gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:730:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 730 | if ((idx + 1) != std::size(smu.temperature_hbm)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:747:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 747 | if ((idx + 1) != std::size(smu.vcn_activity)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:760:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 760 | if ((idx + 1) != std::size(smu.jpeg_activity)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 93%] Built target goamdsmi_shim64 /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:797:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 797 | if ((idx + 1) != std::size(smu.current_gfxclks)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:810:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 810 | if ((idx + 1) != std::size(smu.current_socclks)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:824:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 824 | if ((idx + 1) != std::size(smu.current_vclk0s)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:837:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 837 | if ((idx + 1) != std::size(smu.current_dclk0s)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:874:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 874 | if ((idx + 1) != std::size(smu.xgmi_read_data_acc)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:886:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 886 | if ((idx + 1) != std::size(smu.xgmi_write_data_acc)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:946:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 946 | if ((idy + 1) != std::size(row.gfx_busy_inst)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:964:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 964 | if ((idy + 1) != std::size(row.vcn_busy)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:982:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 982 | if ((idy + 1) != std::size(row.jpeg_busy)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:1000:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 1000 | if ((idy + 1) != std::size(row.gfx_busy_acc)) { | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:547:18: warning: variable ‘compare’ set but not used [-Wunused-but-set-variable] 547 | auto compare = [](const void *a, const void *b) -> int { | ^~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:56: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amdsmi_esmi_intg_example.cc: In function ‘int main(int, char**)’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amdsmi_esmi_intg_example.cc:180:28: warning: unused variable ‘cclk’ [-Wunused-variable] 180 | uint32_t fclk, mclk, cclk; | ^~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amdsmi_esmi_intg_example.cc:288:19: warning: unused variable ‘err_str1’ [-Wunused-variable] 288 | const char* err_str1; | ^~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amdsmi_esmi_intg_example.cc:77:14: warning: unused parameter ‘argc’ [-Wunused-parameter] 77 | int main(int argc, char **argv) { | ~~~~^~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amdsmi_esmi_intg_example.cc:77:27: warning: unused parameter ‘argv’ [-Wunused-parameter] 77 | int main(int argc, char **argv) { | ~~~~~~~^~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc: In function ‘main’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:566:53: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 566 | sprintf(bdf_str, "%04lx:%02x:%02x.%d", | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:566:24: note: ‘sprintf’ output between 13 and 21 bytes into a destination of size 20 566 | sprintf(bdf_str, "%04lx:%02x:%02x.%d", | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 567 | bdf.domain_number, | ~~~~~~~~~~~~~~~~~~ 568 | bdf.bus_number, | ~~~~~~~~~~~~~~~ 569 | bdf.device_number, | ~~~~~~~~~~~~~~~~~~ 570 | bdf.function_number); | ~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:56: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ [ 95%] Linking CXX executable amd_smi_nodrm_ex cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example && /usr/bin/cmake -E cmake_link_script CMakeFiles/amd_smi_nodrm_ex.dir/link.txt --verbose=1 In file included from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/include/amd_smi/amdsmi.h:57, from /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amdsmi_esmi_intg_example.cc:50: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h: At global scope: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library/include/e_smi/e_smi.h:22:20: warning: ‘bw_string’ defined but not used [-Wunused-variable] 22 | static const char *bw_string[3] = {"aggregate", "read", "write"}; //!< bandwidth types for io/xgmi links | ^~~~~~~~~ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc: In function ‘main’: /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:566:53: warning: ‘sprintf’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 566 | sprintf(bdf_str, "%04lx:%02x:%02x.%d", | ^ /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/example/amd_smi_drm_example.cc:566:24: note: ‘sprintf’ output between 13 and 21 bytes into a destination of size 20 566 | sprintf(bdf_str, "%04lx:%02x:%02x.%d", | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 567 | bdf.domain_number, | ~~~~~~~~~~~~~~~~~~ 568 | bdf.bus_number, | ~~~~~~~~~~~~~~~ 569 | bdf.device_number, | ~~~~~~~~~~~~~~~~~~ 570 | bdf.function_number); | ~~~~~~~~~~~~~~~~~~~~ [ 96%] Linking CXX executable amd_smi_esmi_ex cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example && /usr/bin/cmake -E cmake_link_script CMakeFiles/amd_smi_esmi_ex.dir/link.txt --verbose=1 [ 98%] Linking CXX executable amd_smi_ex cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/amd_smi_ex.dir/link.txt --verbose=1 [100%] Linking CXX executable amd_smi_drm_ex cd /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/example && /usr/bin/cmake -E cmake_link_script CMakeFiles/amd_smi_drm_ex.dir/link.txt --verbose=1 /usr/bin/g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -Wl,--dependency-file=CMakeFiles/amd_smi_nodrm_ex.dir/link.d CMakeFiles/amd_smi_nodrm_ex.dir/amd_smi_nodrm_example.cc.o -o amd_smi_nodrm_ex -Wl,-rpath,/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src ../src/libamd_smi.so.0.0 -lpthread -lrt -ldl gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [100%] Built target amd_smi_nodrm_ex /usr/bin/g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -Wl,--dependency-file=CMakeFiles/amd_smi_esmi_ex.dir/link.d CMakeFiles/amd_smi_esmi_ex.dir/amdsmi_esmi_intg_example.cc.o -o amd_smi_esmi_ex -Wl,-rpath,/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src ../src/libamd_smi.so.0.0 -lpthread -lrt -ldl gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [100%] Built target amd_smi_esmi_ex /usr/bin/g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -Wl,--dependency-file=CMakeFiles/amd_smi_ex.dir/link.d CMakeFiles/amd_smi_ex.dir/__/example/amd_smi_drm_example.cc.o -o amd_smi_ex -Wl,-rpath,/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src libamd_smi.so.0.0 -lpthread -lrt -ldl gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [100%] Built target amd_smi_ex /usr/bin/g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wtrampolines -Wl,-z,now -Wall -Wextra -fno-rtti -m64 -msse -msse2 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -ggdb -O0 -DDEBUG -Wno-write-strings -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -Wl,--dependency-file=CMakeFiles/amd_smi_drm_ex.dir/link.d CMakeFiles/amd_smi_drm_ex.dir/amd_smi_drm_example.cc.o -o amd_smi_drm_ex -Wl,-rpath,/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/src ../src/libamd_smi.so.0.0 -lpthread -lrt -ldl gmake[2]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' [100%] Built target amd_smi_drm_ex gmake[1]: Leaving directory '/builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build' /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/redhat-linux-build/CMakeFiles 0 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.IyhV92 + umask 022 + cd /builddir/build/BUILD/amdsmi-6.3.1-build + '[' /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT ++ dirname /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT + mkdir -p /builddir/build/BUILD/amdsmi-6.3.1-build + mkdir /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd amdsmi-rocm-6.3.1 + DESTDIR=/builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT + /usr/bin/cmake --install redhat-linux-build -- Install configuration: "" -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/libamd_smi.so.0.0 -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/libamd_smi.so.0 -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/libamd_smi.so -- Up-to-date: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/libamd_smi.so.0.0 -- Up-to-date: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/libamd_smi.so.0 -- Up-to-date: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/libamd_smi.so -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/include/amd_smi/amdsmi.h -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/include/amd_smi/amd_smiConfig.h -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/include/amd_smi/kfd_ioctl.h -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/example -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/example/amd_smi_drm_example.cc -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/example/amd_smi_nodrm_example.cc -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/example/amdsmi_esmi_intg_example.cc -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/example/CMakeLists.txt -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/pyproject.toml -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/setup.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/_version.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/amdsmi -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/amdsmi/_version.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/amdsmi/amdsmi_wrapper.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/amdsmi/__init__.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/amdsmi/amdsmi_exception.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/amdsmi/amdsmi_interface.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/amdsmi/README.md -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/amdsmi/LICENSE -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/amdsmi/libamd_smi.so -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/_version.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/__init__.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/amdsmi_cli.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/amdsmi_commands.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/amdsmi_helpers.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/amdsmi_init.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/amdsmi_logger.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/amdsmi_parser.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/amdsmi_cli_exceptions.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/rocm_version.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/BDF.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/README.md -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/Release_Notes.md -- Up-to-date: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/libexec/amdsmi_cli/amdsmi_cli.py -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/bin/amd-smi -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/cmake/amd_smi/amd_smi-config.cmake -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/cmake/amd_smi/amd_smi-config-version.cmake -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/cmake/amd_smi/amd_smiTargets.cmake -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/cmake/amd_smi/amd_smiTargets-noconfig.cmake -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amd_smi-asan/LICENSE.txt -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amd_smi/LICENSE.txt -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amd_smi/README.md -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/libgoamdsmi_shim64.so.1.0 -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/libgoamdsmi_shim64.so.1 -- Set non-toolchain portion of runtime path of "/builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/libgoamdsmi_shim64.so.1.0" to "" -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/libgoamdsmi_shim64.so -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/include/goamdsmi.h -- Installing: /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/include/amdsmi_go_shim.h + mkdir -p /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/lib/python3.13/site-packages + mv /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/amdsmi /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/lib/python3.13/site-packages + mv /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/pyproject.toml /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/lib/python3.13/site-packages/amdsmi/ + '[' -d /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/example ']' + rm -rf /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/example + '[' -f /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amd_smi-asan/LICENSE.txt ']' + rm /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amd_smi-asan/LICENSE.txt + '[' -f /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amd_smi/LICENSE.txt ']' + rm /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amd_smi/LICENSE.txt + '[' -f /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amd_smi/README.md ']' + rm /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amd_smi/README.md + '[' -f /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/_version.py ']' + rm /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/_version.py + '[' -f /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/setup.py ']' + rm /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/setup.py + strip /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/lib/python3.13/site-packages/amdsmi/libamd_smi.so + chmod a+x /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/BDF.py /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/__init__.py /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/_version.py /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/amdsmi_cli.py /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/amdsmi_cli_exceptions.py /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/amdsmi_commands.py /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/amdsmi_helpers.py /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/amdsmi_init.py /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/amdsmi_logger.py /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/amdsmi_parser.py /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT//usr/libexec/amdsmi_cli/rocm_version.py + rm /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib64/cmake/amd_smi/amd_smi-config.cmake + /usr/bin/find-debuginfo -j6 --strict-build-id -m -i --build-id-seed 6.3.1-3.fc42 --unique-debug-suffix -6.3.1-3.fc42.x86_64 --unique-debug-src-base amdsmi-6.3.1-3.fc42.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1 find-debuginfo: starting Extracting debug info from 2 files DWARF-compressing 2 files sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/amdsmi-6.3.1-3.fc42.x86_64 find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs *** WARNING: ./usr/libexec/amdsmi_cli/_version.py is executable but has no shebang, removing executable bit *** WARNING: ./usr/libexec/amdsmi_cli/__init__.py is executable but has no shebang, removing executable bit mangling shebang in /usr/libexec/amdsmi_cli/amdsmi_cli.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/libexec/amdsmi_cli/amdsmi_commands.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/libexec/amdsmi_cli/amdsmi_helpers.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/libexec/amdsmi_cli/amdsmi_init.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/libexec/amdsmi_cli/amdsmi_logger.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/libexec/amdsmi_cli/amdsmi_parser.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/libexec/amdsmi_cli/amdsmi_cli_exceptions.py from /usr/bin/env python3 to #!/usr/bin/python3 *** WARNING: ./usr/libexec/amdsmi_cli/rocm_version.py is executable but has no shebang, removing executable bit *** WARNING: ./usr/libexec/amdsmi_cli/BDF.py is executable but has no shebang, removing executable bit + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j6 Bytecompiling .py files below /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib/python3.13 using python3.13 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-determinism --brp -j6 /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib/python3.13/site-packages/amdsmi/__pycache__/_version.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib/python3.13/site-packages/amdsmi/__pycache__/__init__.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib/python3.13/site-packages/amdsmi/__pycache__/amdsmi_exception.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib/python3.13/site-packages/amdsmi/__pycache__/amdsmi_wrapper.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/lib/python3.13/site-packages/amdsmi/__pycache__/amdsmi_interface.cpython-313.pyc: rewriting with normalized contents Scanned 46 directories and 111 files, processed 5 inodes, 5 modified (0 replaced + 5 rewritten), 0 unsupported format, 0 errors Reading /builddir/build/BUILD/amdsmi-6.3.1-build/SPECPARTS/rpm-debuginfo.specpart Processing files: amdsmi-6.3.1-3.fc42.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.xuQATp + umask 022 + cd /builddir/build/BUILD/amdsmi-6.3.1-build + cd amdsmi-rocm-6.3.1 + DOCDIR=/builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amdsmi + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amdsmi + cp -pr /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/README.md /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/doc/amdsmi + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.h6szjh + umask 022 + cd /builddir/build/BUILD/amdsmi-6.3.1-build + cd amdsmi-rocm-6.3.1 + LICENSEDIR=/builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/licenses/amdsmi + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/licenses/amdsmi + cp -pr /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/LICENSE /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/licenses/amdsmi + cp -pr /builddir/build/BUILD/amdsmi-6.3.1-build/amdsmi-rocm-6.3.1/esmi_ib_library_License.txt /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT/usr/share/licenses/amdsmi + RPM_EC=0 ++ jobs -p + exit 0 Provides: amdsmi = 6.3.1-3.fc42 amdsmi(x86-64) = 6.3.1-3.fc42 bundled(esmi_ib_library) = 3.0.3 libamd_smi.so.0()(64bit) libgoamdsmi_shim64.so.1()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 libamd_smi.so.0()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.27)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.32)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_ABI_DT_RELR)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libm.so.6(GLIBC_2.29)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.5)(64bit) libstdc++.so.6(CXXABI_1.3.8)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.14)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.18)(64bit) libstdc++.so.6(GLIBCXX_3.4.19)(64bit) libstdc++.so.6(GLIBCXX_3.4.20)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIBCXX_3.4.26)(64bit) libstdc++.so.6(GLIBCXX_3.4.29)(64bit) libstdc++.so.6(GLIBCXX_3.4.30)(64bit) libstdc++.so.6(GLIBCXX_3.4.32)(64bit) python(abi) = 3.13 rtld(GNU_HASH) Processing files: amdsmi-devel-6.3.1-3.fc42.x86_64 Provides: amdsmi-devel = 6.3.1-3.fc42 amdsmi-devel(x86-64) = 6.3.1-3.fc42 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libamd_smi.so.0()(64bit) libgoamdsmi_shim64.so.1()(64bit) Processing files: amdsmi-debugsource-6.3.1-3.fc42.x86_64 Provides: amdsmi-debugsource = 6.3.1-3.fc42 amdsmi-debugsource(x86-64) = 6.3.1-3.fc42 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: amdsmi-debuginfo-6.3.1-3.fc42.x86_64 Provides: amdsmi-debuginfo = 6.3.1-3.fc42 amdsmi-debuginfo(x86-64) = 6.3.1-3.fc42 debuginfo(build-id) = c414d2e1f3d90385cc7ea647471f3cca23b4d935 debuginfo(build-id) = f2777ff003698193e9103e72013d9403b7957e79 libamd_smi.so.0.0-6.3.1-3.fc42.x86_64.debug()(64bit) libgoamdsmi_shim64.so.1.0-6.3.1-3.fc42.x86_64.debug()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: amdsmi-debugsource(x86-64) = 6.3.1-3.fc42 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILD/amdsmi-6.3.1-build/BUILDROOT Wrote: /builddir/build/RPMS/amdsmi-devel-6.3.1-3.fc42.x86_64.rpm Wrote: /builddir/build/RPMS/amdsmi-debugsource-6.3.1-3.fc42.x86_64.rpm Wrote: /builddir/build/RPMS/amdsmi-6.3.1-3.fc42.x86_64.rpm Wrote: /builddir/build/RPMS/amdsmi-debuginfo-6.3.1-3.fc42.x86_64.rpm Child return code was: 0