git: bb35b52f490f - main - devel/opencl-clang: fix build with lld 17
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Dec 2023 20:58:24 UTC
The branch main has been updated by dim:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bb35b52f490f391b20885221e95d672e4b711dd6
commit bb35b52f490f391b20885221e95d672e4b711dd6
Author: Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-12-07 20:55:46 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-12-07 20:57:54 +0000
devel/opencl-clang: fix build with lld 17
Building devel/opencl-clang with lld 17 results in the following link
error:
ld: error: version script assignment of 'global' to symbol 'CheckLinkOptions' failed: symbol not defined
ld: error: version script assignment of 'global' to symbol 'Link' failed: symbol not defined
ld: error: version script assignment of 'global' to symbol 'GetKernelArgInfo' failed: symbol not defined
The mentioned symbols are no longer in common_clang.cpp, so remove them
from the linker version script.
PR: 273753
MFH: 2023Q4
---
devel/opencl-clang/files/patch-common__clang.map | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/devel/opencl-clang/files/patch-common__clang.map b/devel/opencl-clang/files/patch-common__clang.map
new file mode 100644
index 000000000000..1189d6c1655a
--- /dev/null
+++ b/devel/opencl-clang/files/patch-common__clang.map
@@ -0,0 +1,13 @@
+--- common_clang.map.orig 2022-08-31 01:41:40 UTC
++++ common_clang.map
+@@ -2,10 +2,7 @@ global:
+ global:
+ extern "C" {
+ CheckCompileOptions;
+- CheckLinkOptions;
+ Compile;
+- Link;
+- GetKernelArgInfo;
+ PCM_OPENCL_C_H*;
+ PCM_OPENCL_C_BASE_H*;
+ };