In clang-lto/ld.lld environment, dev-util/hip-6.0.0 fails to compile with the following error: ld.lld: error: version script assignment of 'hip_4.2' to symbol 'hipExtModuleLaunchKernel' failed: symbol not defined ld.lld: error: version script assignment of 'hip_4.2' to symbol 'hipTexRefGetArray' failed: symbol not defined ld.lld: error: version script assignment of 'hip_4.2' to symbol 'hipTexRefGetBorderColor' failed: symbol not defined ld.lld: error: version script assignment of 'hip_4.2' to symbol 'hipTexRefGetMipmappedArray' failed: symbol not defined ld.lld: warning: attempt to reassign symbol 'hipMemcpy2DToArray_spt' of version 'hip_5.2' to version 'hip_5.3' This looks like an issue of https://github.com/gentoo/gentoo/pull/29097/files family. After applying the same fix in src_configure, everything compiles successfully.
Upstream report: https://github.com/ROCm/HIP/issues/3382
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fb562001ae0cf172c89dfa4561c6af6c996a406 commit 9fb562001ae0cf172c89dfa4561c6af6c996a406 Author: Sv. Lockal <lockalsash@gmail.com> AuthorDate: 2024-01-01 18:05:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-06 07:20:19 +0000 dev-util/hip: fix linker error for ld.lld: error: version script assignment issue Closes: https://bugs.gentoo.org/921171 See also: https://github.com/gentoo/gentoo/pull/29097 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34595 Signed-off-by: Sam James <sam@gentoo.org> dev-util/hip/hip-6.0.0.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)