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

Bug#1041005: libamdhip64-dev: compiler_rt not linked on ppc64el



Package: libamdhip64-dev
Version: 5.2.3-10
Severity: normal
X-Debbugs-Cc: cgmb@slerp.xyz

Dear Maintainer,

The rocprim-tests package FTBFS on ppc64el in part due to a failure to
link compiler_rt for half-float operations [1]. This results in the
errors:

/usr/bin/ld: CMakeFiles/test_block_reduce.dir/test_block_reduce.cpp.o: in function `__half::__half<double, (void*)0>(double)':
/usr/include/hip/amd_detail/amd_hip_fp16.h:101: undefined reference to `__truncdfhf2'
/usr/bin/ld: /usr/include/hip/amd_detail/amd_hip_fp16.h:101: undefined reference to `__truncdfhf2'

rocm-hipamd does not search correctly for compiler_rt on ppc64el. I'd
thought the architecture name would be `uname -m` (ppc64le) but it's
actually `dpkg-architecture -qDEB_HOST_GNU_CPU` (powerpc64le).
Until this is fixed in rocm-hipamd, users can work around this problem
by adding -lclang_rt.builtins-powerpc64le to their build flags.

[1]: https://buildd.debian.org/status/fetch.php?pkg=rocprim&arch=ppc64el&ver=5.3.3-6&stamp=1689203881&raw=0

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 6.3.0-1-powerpc64le (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libamdhip64-dev depends on:
ii  libamd-comgr-dev     5.2.3-2
ii  libamdhip64-5        5.2.3-10
ii  libhiprtc-builtins5  5.2.3-10
ii  libhsa-runtime-dev   5.2.3-4

libamdhip64-dev recommends no packages.

libamdhip64-dev suggests no packages.

-- no debconf information


Reply to: