From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 15A6315803E for ; Sat, 6 Jan 2024 07:21:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 553BA2BC014; Sat, 6 Jan 2024 07:21:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 305DE2BC014 for ; Sat, 6 Jan 2024 07:21:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2E80A343136 for ; Sat, 6 Jan 2024 07:21:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8867A1082 for ; Sat, 6 Jan 2024 07:21:54 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1704525619.9fb562001ae0cf172c89dfa4561c6af6c996a406.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/hip/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/hip/hip-6.0.0.ebuild X-VCS-Directories: dev-util/hip/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 9fb562001ae0cf172c89dfa4561c6af6c996a406 X-VCS-Branch: master Date: Sat, 6 Jan 2024 07:21:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 649693e8-fa22-4d8b-8a81-3e87286600ba X-Archives-Hash: 254ceeb555bbd31805b6ac878a339de7 commit: 9fb562001ae0cf172c89dfa4561c6af6c996a406 Author: Sv. Lockal gmail com> AuthorDate: Mon Jan 1 18:05:03 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jan 6 07:20:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fb56200 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 gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34595 Signed-off-by: Sam James gentoo.org> dev-util/hip/hip-6.0.0.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dev-util/hip/hip-6.0.0.ebuild b/dev-util/hip/hip-6.0.0.ebuild index 9f8f62ca11ad..40efa9317ab4 100644 --- a/dev-util/hip/hip-6.0.0.ebuild +++ b/dev-util/hip/hip-6.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -81,6 +81,16 @@ src_prepare() { src_configure() { use debug && CMAKE_BUILD_TYPE="Debug" + # Fix ld.lld linker error: https://github.com/ROCm/HIP/issues/3382 + # See also: https://github.com/gentoo/gentoo/pull/29097 + + # ideally we want !tc-ld-is-bfd for best future-proofing, but it needs + # https://github.com/gentoo/gentoo/pull/28355 + # mold needs this too but right now tc-ld-is-mold is also not available + if tc-ld-is-lld; then + append-ldflags -Wl,--undefined-version + fi + local mycmakeargs=( -DCMAKE_PREFIX_PATH="$(get_llvm_prefix "${LLVM_MAX_SLOT}")" -DCMAKE_BUILD_TYPE=${buildtype}