--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: rocm-smi-lib:FTBFS on hppa - out of range call
- From: John David Anglin <dave@parisc-linux.org>
- Date: Wed, 08 Feb 2023 17:28:54 +0000
- Message-id: <167587733484.28840.15877557086573400838.reportbug@mx3210>
Source: rocm-smi-lib
Version: 5.2.3-2
Severity: normal
Tags: ftbfs
Dear Maintainer,
The build fails with the following error:
[ 48%] Linking CXX shared library liboam.so
cd /<<PKGBUILDDIR>>/obj-hppa-linux-gnu/oam && /usr/bin/cmake -E cmake_link_script CMakeFiles/oam.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -fno-rtti -std=c++11 -Wconversion -Wcast-align -Wformat=2 -fno-common -Wstrict-overflow -Woverloaded-virtual -Wreorder -DFORTIFY_SOURCE=2 -fstack-protector-all -Wcast-align -Wl,-z,noexecstack -Wl,-znoexecheap -Wl,-z,relro -Wtrampolines -Wl,-z,now -fPIE -ggdb -O0 -DDEBUG -shared -Wl,-soname,liboam.so.1 -o liboam.so.1.0 CMakeFiles/oam.dir/__/src/rocm_smi_device.cc.o CMakeFiles/oam.dir/__/src/rocm_smi_main.cc.o CMakeFiles/oam.dir/__/src/rocm_smi_monitor.cc.o CMakeFiles/oam.dir/__/src/rocm_smi_power_mon.cc.o CMakeFiles/oam.dir/__/src/rocm_smi_utils.cc.o CMakeFiles/oam.dir/__/src/rocm_smi_counters.cc.o CMakeFiles/oam.dir/__/src/rocm_smi_kfd.cc.o CMakeFiles/oam.dir/__/src/rocm_smi_io_link.cc.o CMakeFiles/oam.dir/__/src/rocm_smi_gpu_metrics.cc.o CMakeFiles/oam.dir/__/src/rocm_smi.cc.o CMakeFiles/oam.dir/__/third_party/shared_mutex/shared_mutex.cc.o CMakeFiles/oam.dir/src/amd_oam.cc.o -lpthread -lrt
/usr/bin/ld: warning: -z noexecheap ignored
/usr/bin/ld: CMakeFiles/oam.dir/__/src/rocm_smi_device.cc.o(.text._ZNSt12_Vector_baseIN3amd3smi12DevInfoTypesESaIS2_EE12_Vector_implC2ERKS3_[_ZNSt12_Vector_baseIN3amd3smi12DevInfoTypesESaIS2_EE12_Vector_implC5ERKS3_]+0x3c): cannot reach 00001bea__ZNSaIN3amd3smi12DevInfoTypesEEC2ERKS2_+0, recompile with -ffunction-sections
/usr/bin/ld: CMakeFiles/oam.dir/__/src/rocm_smi_device.cc.o(.text._ZNSt12_Vector_baseIN3amd3smi12DevInfoTypesESaIS2_EE12_Vector_implC2ERKS3_[_ZNSt12_Vector_baseIN3amd3smi12DevInfoTypesESaIS2_EE12_Vector_implC5ERKS3_]+0x3c): cannot handle R_PARISC_PCREL17F for _ZNSaIN3amd3smi12DevInfoTypesEEC2ERKS2_
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[3]: *** [oam/CMakeFiles/oam.dir/build.make:276: oam/liboam.so.1.0] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-hppa-linux-gnu'
This can be worked around by adding "-mlong-calls" to CXXFLAGS.
See for example:
https://buildd.debian.org/status/fetch.php?pkg=rocm-smi-lib&arch=hppa&ver=5.2.3-2&stamp=1675874950&raw=0
Regards,
Dave Anglin
-- System Information:
Debian Release: bookworm/sid
APT prefers buildd-unstable
APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)
Kernel: Linux 6.1.10+ (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
--- End Message ---
--- Begin Message ---
Source: rocm-smi-lib
Source-Version: 5.2.3-3
Done: Étienne Mollier <emollier@debian.org>
We believe that the bug you reported is fixed in the latest version of
rocm-smi-lib, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1030876@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Étienne Mollier <emollier@debian.org> (supplier of updated rocm-smi-lib package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 27 Aug 2023 12:58:35 +0200
Source: rocm-smi-lib
Architecture: source
Version: 5.2.3-3
Distribution: unstable
Urgency: medium
Maintainer: ROCm Team <debian-ai@lists.debian.org>
Changed-By: Étienne Mollier <emollier@debian.org>
Closes: 1015653 1030876 1037846 1042134
Changes:
rocm-smi-lib (5.2.3-3) unstable; urgency=medium
.
* 0006-CMakeLists.txt-do-not-enforce-fPIE.patch: new.
This patch fixes both a link failure observed on amd64 when lto is
enabled and hppa, which had very similar symptom reported in the bug
tracker. (Closes: #1015653, #1030876)
* d/*.symbols*: update symbols table for gcc 13. (Closes: #1037846, #1042134)
* d/clean: remove build remnants.
* d/control: declare compliance to standards version 4.6.2.
Checksums-Sha1:
c54641ee86654dc099fa33c1c83d33f343b0582c 2470 rocm-smi-lib_5.2.3-3.dsc
d9014c3fdebf328a5701f7d1ae364232355c2a2d 86024 rocm-smi-lib_5.2.3-3.debian.tar.xz
Checksums-Sha256:
a820144e238d8e53dd17e69ae83627f2fcf0e66415700dbe3c246bce9754bd40 2470 rocm-smi-lib_5.2.3-3.dsc
fe6c2416dc158941098af89d9a8822cf491b9733f25a0508a8476c82157846eb 86024 rocm-smi-lib_5.2.3-3.debian.tar.xz
Files:
573e73819b2529badfbee17eb346653e 2470 devel optional rocm-smi-lib_5.2.3-3.dsc
0fe799d25b802af552ca506e31545e5e 86024 devel optional rocm-smi-lib_5.2.3-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmTrMhkUHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdpEiRAAspbzBchT9n1CIGLqCNjkIkHR2GDx
VxRSVKp6pfoU3hTf2wdiIgFI9wVrv+N2nimku0d3oNZzHiwRyRiTlNVxLT8gSURH
2f7B0ytk/cKnZiinvEktJGbpN/dJ8CURNmts1M/CfrNeNXktgiZjRcak5VAKe+LW
nzqM6vh9UkwxwMUe+bX6wNtNdls12DMXeg7yDz0GEsyonJH4MhrNVznA5hXsgnN4
2n5Gs2qpA0A2tCVV8smaMtFtjKjVPNeSiXzq13XaG8UAm30b6/O4OHq6j6CTH9UK
hlK6FWgWtzMeYZ9L/ccaWVnmsEpuzBgnprvk0VFQ0sdO1Ezb6xcRlgP3vNXnChC6
B1suarLYQfLX6emTwbLzWLvola2USNZPed8P+Z/g/PYjCjXRn9rcKCmuNue68vY4
AbwFVM3R0CDTUJh4lSNxcjg7BC1MYjTLwlw5AufNXcjvEyquyrKkdCLDoDYJkbyr
Lne1n5tTqg5CqZc4VjTYLffhTSMpodgxViw7aKNvjdKP51XATqPgryOi6xvaYAKy
coDu3TEkO1VzCfwrcZ58fyAun+04cb4+PVU+1PzhQsGVjFiY343ABBhUBBQeyZei
mDcNThfqISxN08xytAYyyNIQWhR9v7u8uES8r27Q4lcWFoFnZKJmtcWR1WnxLpfy
LQMdb74LMJlynjs=
=YYw7
-----END PGP SIGNATURE-----
--- End Message ---