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 5E2AB15838C for ; Sat, 20 Jan 2024 13:10:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B1E4CE29C8; Sat, 20 Jan 2024 13:10:33 +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 8ACEFE29C8 for ; Sat, 20 Jan 2024 13:10:33 +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 6E1F6343273 for ; Sat, 20 Jan 2024 13:10:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D32AA14B5 for ; Sat, 20 Jan 2024 13:10:30 +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: <1705755738.af35827c5fdb9e5ae44b0b16c0ff2acd68f5edab.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocm-opencl-runtime/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.5.1.ebuild dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.7.1-r1.ebuild dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.0.0.ebuild dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild X-VCS-Directories: dev-libs/rocm-opencl-runtime/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: af35827c5fdb9e5ae44b0b16c0ff2acd68f5edab X-VCS-Branch: master Date: Sat, 20 Jan 2024 13:10:30 +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: 6b3d0c46-ec3c-4b90-8813-e563e86f7515 X-Archives-Hash: 8e4bf34e4f41c361c6754f6d33a20c26 commit: af35827c5fdb9e5ae44b0b16c0ff2acd68f5edab Author: Sv. Lockal gmail com> AuthorDate: Tue Jan 9 13:55:57 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jan 20 13:02:18 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af35827c dev-libs/rocm-opencl-runtime: fix linker error for ld.lld: error: version script assignment issue Upstream bug: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 Signed-off-by: Sv. Lockal gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34720 Signed-off-by: Sam James gentoo.org> dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild | 10 +++++++++- .../rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild | 10 +++++++++- .../rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild | 10 +++++++++- dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.5.1.ebuild | 10 +++++++++- .../rocm-opencl-runtime/rocm-opencl-runtime-5.7.1-r1.ebuild | 10 +++++++++- dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.0.0.ebuild | 10 +++++++++- dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild | 10 +++++++++- 7 files changed, 63 insertions(+), 7 deletions(-) diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild index 9b54a7395c71..acf6d1e19593 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.1.3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake edo flag-o-matic prefix +inherit cmake edo flag-o-matic toolchain-funcs prefix DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" @@ -59,6 +59,14 @@ src_prepare() { } src_configure() { + # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 + # 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 + # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120 append-cflags -fcommon diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild index 3d3a0eca5d4a..d8fae3a7c08a 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.3.3-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake edo flag-o-matic +inherit cmake edo flag-o-matic toolchain-funcs DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" @@ -46,6 +46,14 @@ src_prepare() { } src_configure() { + # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 + # 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 + # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120 append-cflags -fcommon diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild index 8dd67252e8b4..a5831a2339c3 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.4.3-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake edo flag-o-matic +inherit cmake edo flag-o-matic toolchain-funcs DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" @@ -53,6 +53,14 @@ if [[ ${PV} == "9999" ]]; then fi } src_prepare() { + # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 + # 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 + cmake_src_prepare pushd ${CLR_S} || die diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.5.1.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.5.1.ebuild index 51b2ebd90ad8..eca90b34b094 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.5.1.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.5.1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake edo flag-o-matic +inherit cmake edo flag-o-matic toolchain-funcs DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" @@ -61,6 +61,14 @@ src_prepare() { } src_configure() { + # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 + # 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 + # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120 append-cflags -fcommon diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.7.1-r1.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.7.1-r1.ebuild index 00c9aabadb7c..ae568be79b96 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.7.1-r1.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-5.7.1-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 ROCM_SKIP_GLOBALS=1 -inherit cmake edo flag-o-matic rocm +inherit cmake edo flag-o-matic toolchain-funcs rocm DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" HOMEPAGE="https://github.com/ROCm-Developer-Tools/clr" @@ -48,6 +48,14 @@ OB git-r3_checkout } src_configure() { + # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 + # 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 + # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120 append-cflags -fcommon diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.0.0.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.0.0.ebuild index 20c734321744..1f792dd4cc24 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.0.0.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-6.0.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 ROCM_SKIP_GLOBALS=1 -inherit cmake edo flag-o-matic rocm +inherit cmake edo flag-o-matic toolchain-funcs rocm DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" HOMEPAGE="https://github.com/ROCm-Developer-Tools/clr" @@ -48,6 +48,14 @@ OB git-r3_checkout } src_configure() { + # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 + # 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 + # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120 append-cflags -fcommon diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild index 493ab906785e..fab2b10ec262 100644 --- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild +++ b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake edo flag-o-matic +inherit cmake edo flag-o-matic toolchain-funcs DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime" HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime" @@ -59,6 +59,14 @@ src_prepare() { } src_configure() { + # Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155 + # 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 + # Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120 append-cflags -fcommon