Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921171 - dev-util/hip-6.0.0: ld.lld: error: version script assignment of 'hip_4.2' to symbol 'hipExtModuleLaunchKernel' failed: symbol not defined
Summary: dev-util/hip-6.0.0: ld.lld: error: version script assignment of 'hip_4.2' to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: LD-is-lld, systemwide-lld 912821
  Show dependency tree
 
Reported: 2024-01-01 18:03 UTC by Sv. Lockal
Modified: 2024-01-06 14:19 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(-)