Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 921171

Summary: dev-util/hip-6.0.0: ld.lld: error: version script assignment of 'hip_4.2' to symbol 'hipExtModuleLaunchKernel' failed: symbol not defined
Product: Gentoo Linux Reporter: Sv. Lockal <lockalsash>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: candrews, gentoo, jstein, xgreenlandforwyy
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/34595
https://github.com/ROCm/HIP/issues/3382
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 731004, 912821    

Description Sv. Lockal 2024-01-01 18:03:18 UTC
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.
Comment 1 Sv. Lockal 2024-01-01 18:44:00 UTC
Upstream report: https://github.com/ROCm/HIP/issues/3382
Comment 2 Larry the Git Cow gentoo-dev 2024-01-06 07:21:54 UTC
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(-)