* Re: [PR PATCH] [Updated] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
@ 2024-02-12 21:59 ` Calandracas606
2024-02-12 22:47 ` [PR REVIEW] " classabbyamp
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Calandracas606 @ 2024-02-12 21:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]
There is an updated pull request by Calandracas606 against master on the void-packages repository
https://github.com/Calandracas606/void-packages llvm17-fix-compiler-cross
https://github.com/void-linux/void-packages/pull/48679
Llvm17 fix compiler-rt, add liblldb17
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64 (cross)
[ci skip]
A patch file from https://github.com/void-linux/void-packages/pull/48679.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-llvm17-fix-compiler-cross-48679.patch --]
[-- Type: text/x-diff, Size: 6993 bytes --]
From 6c0391e3ed86bf339bf3d504abbc66e43bc207da Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:24 -0500
Subject: [PATCH 1/3] llvm17: cross compile compiler-rt properly, add liblldb17
---
common/shlibs | 2 +-
srcpkgs/compiler-rt17 | 1 +
srcpkgs/liblldb17 | 1 +
srcpkgs/llvm17/template | 40 +++++++++++++++++++++++++---------------
4 files changed, 28 insertions(+), 16 deletions(-)
create mode 120000 srcpkgs/compiler-rt17
create mode 120000 srcpkgs/liblldb17
diff --git a/common/shlibs b/common/shlibs
index 93fb4b2608729..a1380061324a2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -982,7 +982,7 @@ libuchardet.so.0 uchardet-0.0.6_1
libgtksourceviewmm-3.0.so.0 gtksourceviewmm-3.2.0_1
libyajl.so.2 yajl-2.0.1_1
libconfuse.so.2 confuse-3.2.1_1
-liblldb.so.17 lldb17-17.0.6_1
+liblldb.so.17 liblldb17-17.0.6_3
liblldb.so.15 lldb15-15.0.7_4
libclang.so.17 libclang17-17.0.6_1
libclang.so.15 libclang15-15.0.7_4
diff --git a/srcpkgs/compiler-rt17 b/srcpkgs/compiler-rt17
new file mode 120000
index 0000000000000..96970d5c02c13
--- /dev/null
+++ b/srcpkgs/compiler-rt17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/liblldb17 b/srcpkgs/liblldb17
new file mode 120000
index 0000000000000..96970d5c02c13
--- /dev/null
+++ b/srcpkgs/liblldb17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/llvm17/template b/srcpkgs/llvm17/template
index aef0bf773d6be..a2a021f9dee80 100644
--- a/srcpkgs/llvm17/template
+++ b/srcpkgs/llvm17/template
@@ -1,7 +1,7 @@
# Template file for 'llvm17'
pkgname=llvm17
version=17.0.6
-revision=2
+revision=3
build_wrksrc=llvm
build_style=cmake
_ext_suffix=".cpython-${py3_ver/./}-linux-${XBPS_TARGET_LIBC/glibc/gnu}.so"
@@ -9,6 +9,7 @@ pycompile_dirs="usr/share/scan-view"
configure_args="
-DCMAKE_BUILD_TYPE=Release -Wno-dev
-DENABLE_LINKER_BUILD_ID=YES
+ -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
-DLLDB_USE_SYSTEM_SIX=YES
-DLIBCXX_CXX_ABI=libcxxabi
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=YES
@@ -58,8 +59,9 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
fi
subpackages="libllvm17 llvm17-doc llvm17-devel"
-_enabled_projects=
-_enabled_runtimes=
+
+# use $(:) to silence xlint
+_enabled_projects=$(:)
if [ "$build_option_clang" ]; then
_enabled_projects+="clang;"
@@ -78,7 +80,7 @@ if [ "$build_option_polly" ]; then
fi
if [ "$build_option_lldb" ]; then
_enabled_projects+="lldb;"
- subpackages+=" lldb17 lldb17-devel "
+ subpackages+=" lldb17 lldb17-devel liblldb17 "
fi
if [ "$build_option_lld" ]; then
_enabled_projects+="lld;"
@@ -96,16 +98,17 @@ if [ "$build_option_flang" ]; then
subpackages+=" flang17 flang17-devel "
fi
+subpackages+=" compiler-rt17 "
+_enabled_runtimes="compiler-rt"
+
# enable if runtime subpackages link to this version of llvm
if true; then
subpackages+=" llvm-libunwind llvm-libunwind-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libunwind"
+ _enabled_runtimes+=";libunwind"
subpackages+=" libcxx libcxx-devel libcxxabi libcxxabi-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libcxxabi;libcxx"
+ _enabled_runtimes+=";libcxxabi;libcxx"
- subpackages+=" compiler-rt "
- _enabled_runtimes+="${_enabled_runtimes:+;}compiler-rt"
case "$XBPS_TARGET_MACHINE" in
x86_64*|aarch64*)
@@ -113,15 +116,15 @@ if true; then
if [ "$CROSS_BUILD" ]; then
_enabled_projects+="openmp;"
else
- _enabled_runtimes+="${_enabled_runtimes:+;}openmp"
+ _enabled_runtimes+=";openmp"
fi
subpackages+=" libomp libomp-devel "
;;
esac
- configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
fi
+configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
configure_args+=" -DLLVM_ENABLE_PROJECTS=${_enabled_projects}"
if [ "$CROSS_BUILD" ]; then
@@ -456,11 +459,7 @@ lldb17_package() {
vmove usr/bin/lldb-instr
vmove usr/bin/lldb-server
vmove usr/bin/lldb-vscode
- vmove "usr/lib/liblldb*.so.*"
vmove "usr/lib/python${py3_ver}/site-packages/lldb"
- if [ -z "$CROSS_BUILD" ]; then
- vmove /usr/lib/lua/5.3/lldb.so
- fi
}
}
@@ -474,6 +473,17 @@ lldb17-devel_package() {
}
}
+liblldb17_package() {
+ lib32disabled=yes
+ short_desc+=" - LLDB debugger - runtime library"
+ pkg_install() {
+ vmove "usr/lib/liblldb*.so.*"
+ if [ -z "$CROSS_BUILD" ]; then
+ vmove /usr/lib/lua/5.3/lldb.so
+ fi
+ }
+}
+
lld17_package() {
lib32disabled=yes
short_desc+=" - linker"
@@ -654,7 +664,7 @@ libcxx-devel_package() {
}
}
-compiler-rt_package() {
+compiler-rt17_package() {
short_desc+=" - runtime libraries"
homepage="https://compiler-rt.llvm.org/"
pkg_install() {
From b7091892cad1aac1ecaa09901290bf1a6471cc37 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:51 -0500
Subject: [PATCH 2/3] llvm: add compiler-rt meta-package
---
srcpkgs/compiler-rt | 2 +-
srcpkgs/llvm/template | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/compiler-rt b/srcpkgs/compiler-rt
index 96970d5c02c13..0d68131b9b308 120000
--- a/srcpkgs/compiler-rt
+++ b/srcpkgs/compiler-rt
@@ -1 +1 @@
-llvm17
\ No newline at end of file
+llvm
\ No newline at end of file
diff --git a/srcpkgs/llvm/template b/srcpkgs/llvm/template
index b27a80da2fee1..bfa7da4ab4868 100644
--- a/srcpkgs/llvm/template
+++ b/srcpkgs/llvm/template
@@ -1,7 +1,7 @@
# Template file for 'llvm'
pkgname=llvm
version=17
-revision=2
+revision=3
build_style=meta
depends="llvm${version}"
short_desc="LLVM meta package"
@@ -57,3 +57,9 @@ libllvm_package() {
depends="libllvm${version}>=0"
short_desc+=" - transitional meta package"
}
+
+compiler-rt_package() {
+ build_style=meta
+ depends="compiler-rt${version}>=0"
+ short_desc+=" - transitional meta package"
+}
From bfa8b676199737397922d757e3f5995736cf3d96 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:48:00 -0500
Subject: [PATCH 3/3] codelite: rebuild for lldb17
---
srcpkgs/codelite/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index f8206426888fd..bcb40dd697b7c 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -1,7 +1,7 @@
# Template file for 'codelite'
pkgname=codelite
version=16.0.0
-revision=4
+revision=5
create_wrksrc=yes
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
@@ -10,7 +10,7 @@ configure_args="-DWITH_PCH=0 -DWITH_WX_CONFIG=wx-config-gtk3
$(vopt_if lldb -DENABLE_LLDB=1 -DENABLE_LLDB=0)"
hostmakedepends="pkg-config which"
makedepends="gtk+3-devel wxWidgets-gtk3-devel sqlite-devel MesaLib-devel
- $(vopt_if lldb lldb-devel) $(vopt_if hunspell hunspell-devel)
+ $(vopt_if lldb lldb17-devel) $(vopt_if hunspell hunspell-devel)
$(vopt_if sftp libssh-devel)"
short_desc="Open-source, cross platform IDE for the C/C++ programming languages"
maintainer="Orphaned <orphan@voidlinux.org>"
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
2024-02-12 21:59 ` [PR PATCH] [Updated] Llvm17 fix compiler-rt, add liblldb17 Calandracas606
@ 2024-02-12 22:47 ` classabbyamp
2024-02-13 3:05 ` [PR PATCH] [Updated] " Calandracas606
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: classabbyamp @ 2024-02-12 22:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 202 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/48679#discussion_r1486886459
Comment:
https://github.com/leahneukirchen/xtools/pull/323
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR PATCH] [Updated] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
2024-02-12 21:59 ` [PR PATCH] [Updated] Llvm17 fix compiler-rt, add liblldb17 Calandracas606
2024-02-12 22:47 ` [PR REVIEW] " classabbyamp
@ 2024-02-13 3:05 ` Calandracas606
2024-02-13 11:26 ` [PR REVIEW] " leahneukirchen
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Calandracas606 @ 2024-02-13 3:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]
There is an updated pull request by Calandracas606 against master on the void-packages repository
https://github.com/Calandracas606/void-packages llvm17-fix-compiler-cross
https://github.com/void-linux/void-packages/pull/48679
Llvm17 fix compiler-rt, add liblldb17
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64 (cross)
[ci skip]
A patch file from https://github.com/void-linux/void-packages/pull/48679.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-llvm17-fix-compiler-cross-48679.patch --]
[-- Type: text/x-diff, Size: 6896 bytes --]
From d2051a4c9abf0b627d9fe29dddaf1e2106b92d85 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:24 -0500
Subject: [PATCH 1/3] llvm17: cross compile compiler-rt properly, add liblldb17
---
common/shlibs | 2 +-
srcpkgs/compiler-rt17 | 1 +
srcpkgs/liblldb17 | 1 +
srcpkgs/llvm17/template | 34 ++++++++++++++++++++++------------
4 files changed, 25 insertions(+), 13 deletions(-)
create mode 120000 srcpkgs/compiler-rt17
create mode 120000 srcpkgs/liblldb17
diff --git a/common/shlibs b/common/shlibs
index 93fb4b2608729..a1380061324a2 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -982,7 +982,7 @@ libuchardet.so.0 uchardet-0.0.6_1
libgtksourceviewmm-3.0.so.0 gtksourceviewmm-3.2.0_1
libyajl.so.2 yajl-2.0.1_1
libconfuse.so.2 confuse-3.2.1_1
-liblldb.so.17 lldb17-17.0.6_1
+liblldb.so.17 liblldb17-17.0.6_3
liblldb.so.15 lldb15-15.0.7_4
libclang.so.17 libclang17-17.0.6_1
libclang.so.15 libclang15-15.0.7_4
diff --git a/srcpkgs/compiler-rt17 b/srcpkgs/compiler-rt17
new file mode 120000
index 0000000000000..96970d5c02c13
--- /dev/null
+++ b/srcpkgs/compiler-rt17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/liblldb17 b/srcpkgs/liblldb17
new file mode 120000
index 0000000000000..96970d5c02c13
--- /dev/null
+++ b/srcpkgs/liblldb17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/llvm17/template b/srcpkgs/llvm17/template
index aef0bf773d6be..187baed479dba 100644
--- a/srcpkgs/llvm17/template
+++ b/srcpkgs/llvm17/template
@@ -1,7 +1,7 @@
# Template file for 'llvm17'
pkgname=llvm17
version=17.0.6
-revision=2
+revision=3
build_wrksrc=llvm
build_style=cmake
_ext_suffix=".cpython-${py3_ver/./}-linux-${XBPS_TARGET_LIBC/glibc/gnu}.so"
@@ -9,6 +9,7 @@ pycompile_dirs="usr/share/scan-view"
configure_args="
-DCMAKE_BUILD_TYPE=Release -Wno-dev
-DENABLE_LINKER_BUILD_ID=YES
+ -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
-DLLDB_USE_SYSTEM_SIX=YES
-DLIBCXX_CXX_ABI=libcxxabi
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=YES
@@ -58,8 +59,9 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
fi
subpackages="libllvm17 llvm17-doc llvm17-devel"
-_enabled_projects=
-_enabled_runtimes=
+
+# use $(:) to silence xlint
+_enabled_projects=$(:)
if [ "$build_option_clang" ]; then
_enabled_projects+="clang;"
@@ -78,7 +80,7 @@ if [ "$build_option_polly" ]; then
fi
if [ "$build_option_lldb" ]; then
_enabled_projects+="lldb;"
- subpackages+=" lldb17 lldb17-devel "
+ subpackages+=" lldb17 lldb17-devel liblldb17 "
fi
if [ "$build_option_lld" ]; then
_enabled_projects+="lld;"
@@ -96,16 +98,17 @@ if [ "$build_option_flang" ]; then
subpackages+=" flang17 flang17-devel "
fi
+subpackages+=" compiler-rt17 "
+_enabled_runtimes="compiler-rt"
+
# enable if runtime subpackages link to this version of llvm
if true; then
subpackages+=" llvm-libunwind llvm-libunwind-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libunwind"
+ _enabled_runtimes+=";libunwind"
subpackages+=" libcxx libcxx-devel libcxxabi libcxxabi-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libcxxabi;libcxx"
+ _enabled_runtimes+=";libcxxabi;libcxx"
- subpackages+=" compiler-rt "
- _enabled_runtimes+="${_enabled_runtimes:+;}compiler-rt"
case "$XBPS_TARGET_MACHINE" in
x86_64*|aarch64*)
@@ -113,15 +116,15 @@ if true; then
if [ "$CROSS_BUILD" ]; then
_enabled_projects+="openmp;"
else
- _enabled_runtimes+="${_enabled_runtimes:+;}openmp"
+ _enabled_runtimes+=";openmp"
fi
subpackages+=" libomp libomp-devel "
;;
esac
- configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
fi
+configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
configure_args+=" -DLLVM_ENABLE_PROJECTS=${_enabled_projects}"
if [ "$CROSS_BUILD" ]; then
@@ -456,7 +459,6 @@ lldb17_package() {
vmove usr/bin/lldb-instr
vmove usr/bin/lldb-server
vmove usr/bin/lldb-vscode
- vmove "usr/lib/liblldb*.so.*"
vmove "usr/lib/python${py3_ver}/site-packages/lldb"
if [ -z "$CROSS_BUILD" ]; then
vmove /usr/lib/lua/5.3/lldb.so
@@ -474,6 +476,14 @@ lldb17-devel_package() {
}
}
+liblldb17_package() {
+ lib32disabled=yes
+ short_desc+=" - LLDB debugger - runtime library"
+ pkg_install() {
+ vmove "usr/lib/liblldb*.so.*"
+ }
+}
+
lld17_package() {
lib32disabled=yes
short_desc+=" - linker"
@@ -654,7 +664,7 @@ libcxx-devel_package() {
}
}
-compiler-rt_package() {
+compiler-rt17_package() {
short_desc+=" - runtime libraries"
homepage="https://compiler-rt.llvm.org/"
pkg_install() {
From 0f4f681b53fb9d821301e4eaf14d5859e8b2a92d Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:51 -0500
Subject: [PATCH 2/3] llvm: add compiler-rt meta-package
---
srcpkgs/compiler-rt | 2 +-
srcpkgs/llvm/template | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/compiler-rt b/srcpkgs/compiler-rt
index 96970d5c02c13..0d68131b9b308 120000
--- a/srcpkgs/compiler-rt
+++ b/srcpkgs/compiler-rt
@@ -1 +1 @@
-llvm17
\ No newline at end of file
+llvm
\ No newline at end of file
diff --git a/srcpkgs/llvm/template b/srcpkgs/llvm/template
index b27a80da2fee1..bfa7da4ab4868 100644
--- a/srcpkgs/llvm/template
+++ b/srcpkgs/llvm/template
@@ -1,7 +1,7 @@
# Template file for 'llvm'
pkgname=llvm
version=17
-revision=2
+revision=3
build_style=meta
depends="llvm${version}"
short_desc="LLVM meta package"
@@ -57,3 +57,9 @@ libllvm_package() {
depends="libllvm${version}>=0"
short_desc+=" - transitional meta package"
}
+
+compiler-rt_package() {
+ build_style=meta
+ depends="compiler-rt${version}>=0"
+ short_desc+=" - transitional meta package"
+}
From 6a4540c4470e38f59eb26965fd8893b1807b2d37 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:48:00 -0500
Subject: [PATCH 3/3] codelite: rebuild for lldb17
---
srcpkgs/codelite/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/codelite/template b/srcpkgs/codelite/template
index f8206426888fd..bcb40dd697b7c 100644
--- a/srcpkgs/codelite/template
+++ b/srcpkgs/codelite/template
@@ -1,7 +1,7 @@
# Template file for 'codelite'
pkgname=codelite
version=16.0.0
-revision=4
+revision=5
create_wrksrc=yes
build_style=cmake
build_helper=cmake-wxWidgets-gtk3
@@ -10,7 +10,7 @@ configure_args="-DWITH_PCH=0 -DWITH_WX_CONFIG=wx-config-gtk3
$(vopt_if lldb -DENABLE_LLDB=1 -DENABLE_LLDB=0)"
hostmakedepends="pkg-config which"
makedepends="gtk+3-devel wxWidgets-gtk3-devel sqlite-devel MesaLib-devel
- $(vopt_if lldb lldb-devel) $(vopt_if hunspell hunspell-devel)
+ $(vopt_if lldb lldb17-devel) $(vopt_if hunspell hunspell-devel)
$(vopt_if sftp libssh-devel)"
short_desc="Open-source, cross platform IDE for the C/C++ programming languages"
maintainer="Orphaned <orphan@voidlinux.org>"
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (2 preceding siblings ...)
2024-02-13 3:05 ` [PR PATCH] [Updated] " Calandracas606
@ 2024-02-13 11:26 ` leahneukirchen
2024-02-14 16:44 ` [PR PATCH] [Updated] " Calandracas606
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: leahneukirchen @ 2024-02-13 11:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 230 bytes --]
New review comment by leahneukirchen on void-packages repository
https://github.com/void-linux/void-packages/pull/48679#discussion_r1487674350
Comment:
or initialize it with `-DLLVM_ENABLE_PROJECTS=`, but i don't care strongly.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR PATCH] [Updated] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (3 preceding siblings ...)
2024-02-13 11:26 ` [PR REVIEW] " leahneukirchen
@ 2024-02-14 16:44 ` Calandracas606
2024-02-26 16:57 ` Calandracas606
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Calandracas606 @ 2024-02-14 16:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]
There is an updated pull request by Calandracas606 against master on the void-packages repository
https://github.com/Calandracas606/void-packages llvm17-fix-compiler-cross
https://github.com/void-linux/void-packages/pull/48679
Llvm17 fix compiler-rt, add liblldb17
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64 (cross)
[ci skip]
A patch file from https://github.com/void-linux/void-packages/pull/48679.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-llvm17-fix-compiler-cross-48679.patch --]
[-- Type: text/x-diff, Size: 6702 bytes --]
From 407f165084b427e17c51b5e530698d96c12ffa29 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:24 -0500
Subject: [PATCH 1/3] llvm17: cross compile compiler-rt properly, add liblldb17
---
common/shlibs | 2 +-
srcpkgs/compiler-rt17 | 1 +
srcpkgs/liblldb17 | 1 +
srcpkgs/llvm17/template | 34 ++++++++++++++++++++++------------
srcpkgs/llvm17/update | 2 +-
5 files changed, 26 insertions(+), 14 deletions(-)
create mode 120000 srcpkgs/compiler-rt17
create mode 120000 srcpkgs/liblldb17
diff --git a/common/shlibs b/common/shlibs
index 935ace564ff11..8ba541ff1dcf3 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -982,7 +982,7 @@ libuchardet.so.0 uchardet-0.0.6_1
libgtksourceviewmm-3.0.so.0 gtksourceviewmm-3.2.0_1
libyajl.so.2 yajl-2.0.1_1
libconfuse.so.2 confuse-3.2.1_1
-liblldb.so.17 lldb17-17.0.6_1
+liblldb.so.17 liblldb17-17.0.6_3
liblldb.so.15 lldb15-15.0.7_4
libclang.so.17 libclang17-17.0.6_1
libclang.so.15 libclang15-15.0.7_4
diff --git a/srcpkgs/compiler-rt17 b/srcpkgs/compiler-rt17
new file mode 120000
index 0000000000000..96970d5c02c13
--- /dev/null
+++ b/srcpkgs/compiler-rt17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/liblldb17 b/srcpkgs/liblldb17
new file mode 120000
index 0000000000000..96970d5c02c13
--- /dev/null
+++ b/srcpkgs/liblldb17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/llvm17/template b/srcpkgs/llvm17/template
index aef0bf773d6be..187baed479dba 100644
--- a/srcpkgs/llvm17/template
+++ b/srcpkgs/llvm17/template
@@ -1,7 +1,7 @@
# Template file for 'llvm17'
pkgname=llvm17
version=17.0.6
-revision=2
+revision=3
build_wrksrc=llvm
build_style=cmake
_ext_suffix=".cpython-${py3_ver/./}-linux-${XBPS_TARGET_LIBC/glibc/gnu}.so"
@@ -9,6 +9,7 @@ pycompile_dirs="usr/share/scan-view"
configure_args="
-DCMAKE_BUILD_TYPE=Release -Wno-dev
-DENABLE_LINKER_BUILD_ID=YES
+ -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
-DLLDB_USE_SYSTEM_SIX=YES
-DLIBCXX_CXX_ABI=libcxxabi
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=YES
@@ -58,8 +59,9 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
fi
subpackages="libllvm17 llvm17-doc llvm17-devel"
-_enabled_projects=
-_enabled_runtimes=
+
+# use $(:) to silence xlint
+_enabled_projects=$(:)
if [ "$build_option_clang" ]; then
_enabled_projects+="clang;"
@@ -78,7 +80,7 @@ if [ "$build_option_polly" ]; then
fi
if [ "$build_option_lldb" ]; then
_enabled_projects+="lldb;"
- subpackages+=" lldb17 lldb17-devel "
+ subpackages+=" lldb17 lldb17-devel liblldb17 "
fi
if [ "$build_option_lld" ]; then
_enabled_projects+="lld;"
@@ -96,16 +98,17 @@ if [ "$build_option_flang" ]; then
subpackages+=" flang17 flang17-devel "
fi
+subpackages+=" compiler-rt17 "
+_enabled_runtimes="compiler-rt"
+
# enable if runtime subpackages link to this version of llvm
if true; then
subpackages+=" llvm-libunwind llvm-libunwind-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libunwind"
+ _enabled_runtimes+=";libunwind"
subpackages+=" libcxx libcxx-devel libcxxabi libcxxabi-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libcxxabi;libcxx"
+ _enabled_runtimes+=";libcxxabi;libcxx"
- subpackages+=" compiler-rt "
- _enabled_runtimes+="${_enabled_runtimes:+;}compiler-rt"
case "$XBPS_TARGET_MACHINE" in
x86_64*|aarch64*)
@@ -113,15 +116,15 @@ if true; then
if [ "$CROSS_BUILD" ]; then
_enabled_projects+="openmp;"
else
- _enabled_runtimes+="${_enabled_runtimes:+;}openmp"
+ _enabled_runtimes+=";openmp"
fi
subpackages+=" libomp libomp-devel "
;;
esac
- configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
fi
+configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
configure_args+=" -DLLVM_ENABLE_PROJECTS=${_enabled_projects}"
if [ "$CROSS_BUILD" ]; then
@@ -456,7 +459,6 @@ lldb17_package() {
vmove usr/bin/lldb-instr
vmove usr/bin/lldb-server
vmove usr/bin/lldb-vscode
- vmove "usr/lib/liblldb*.so.*"
vmove "usr/lib/python${py3_ver}/site-packages/lldb"
if [ -z "$CROSS_BUILD" ]; then
vmove /usr/lib/lua/5.3/lldb.so
@@ -474,6 +476,14 @@ lldb17-devel_package() {
}
}
+liblldb17_package() {
+ lib32disabled=yes
+ short_desc+=" - LLDB debugger - runtime library"
+ pkg_install() {
+ vmove "usr/lib/liblldb*.so.*"
+ }
+}
+
lld17_package() {
lib32disabled=yes
short_desc+=" - linker"
@@ -654,7 +664,7 @@ libcxx-devel_package() {
}
}
-compiler-rt_package() {
+compiler-rt17_package() {
short_desc+=" - runtime libraries"
homepage="https://compiler-rt.llvm.org/"
pkg_install() {
diff --git a/srcpkgs/llvm17/update b/srcpkgs/llvm17/update
index e95cf26b3586b..cc8edb6c005ac 100644
--- a/srcpkgs/llvm17/update
+++ b/srcpkgs/llvm17/update
@@ -1,3 +1,3 @@
site="https://github.com/llvm/llvm-project/releases"
-pattern="llvmorg-\K(\d+.){2}\d+(-rc\d+)?"
+pattern="llvmorg-\K(17)\.(\d+)\.+\d+(-rc\d+)?"
ignore="*-rc*"
From 21cda1d76a64b1d8d41548ea733698732c195cc1 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:51 -0500
Subject: [PATCH 2/3] llvm: add compiler-rt meta-package
---
srcpkgs/compiler-rt | 2 +-
srcpkgs/llvm/template | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/compiler-rt b/srcpkgs/compiler-rt
index 96970d5c02c13..0d68131b9b308 120000
--- a/srcpkgs/compiler-rt
+++ b/srcpkgs/compiler-rt
@@ -1 +1 @@
-llvm17
\ No newline at end of file
+llvm
\ No newline at end of file
diff --git a/srcpkgs/llvm/template b/srcpkgs/llvm/template
index b27a80da2fee1..bfa7da4ab4868 100644
--- a/srcpkgs/llvm/template
+++ b/srcpkgs/llvm/template
@@ -1,7 +1,7 @@
# Template file for 'llvm'
pkgname=llvm
version=17
-revision=2
+revision=3
build_style=meta
depends="llvm${version}"
short_desc="LLVM meta package"
@@ -57,3 +57,9 @@ libllvm_package() {
depends="libllvm${version}>=0"
short_desc+=" - transitional meta package"
}
+
+compiler-rt_package() {
+ build_style=meta
+ depends="compiler-rt${version}>=0"
+ short_desc+=" - transitional meta package"
+}
From 72972f62641df5e6b6da74a69803952bf2567e6d Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Wed, 14 Feb 2024 11:41:33 -0500
Subject: [PATCH 3/3] llvm15: fix update file
---
srcpkgs/llvm15/update | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/llvm15/update b/srcpkgs/llvm15/update
index e95cf26b3586b..baa6a6b6acf9a 100644
--- a/srcpkgs/llvm15/update
+++ b/srcpkgs/llvm15/update
@@ -1,3 +1,3 @@
site="https://github.com/llvm/llvm-project/releases"
-pattern="llvmorg-\K(\d+.){2}\d+(-rc\d+)?"
+pattern="llvmorg-\K(15)\.(\d+)\.+\d+(-rc\d+)?"
ignore="*-rc*"
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR PATCH] [Updated] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (4 preceding siblings ...)
2024-02-14 16:44 ` [PR PATCH] [Updated] " Calandracas606
@ 2024-02-26 16:57 ` Calandracas606
2024-02-26 17:07 ` Calandracas606
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Calandracas606 @ 2024-02-26 16:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]
There is an updated pull request by Calandracas606 against master on the void-packages repository
https://github.com/Calandracas606/void-packages llvm17-fix-compiler-cross
https://github.com/void-linux/void-packages/pull/48679
Llvm17 fix compiler-rt, add liblldb17
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64 (cross)
[ci skip]
A patch file from https://github.com/void-linux/void-packages/pull/48679.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-llvm17-fix-compiler-cross-48679.patch --]
[-- Type: text/x-diff, Size: 7634 bytes --]
From 247487037789805d4e923eccd71944522107158a Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:24 -0500
Subject: [PATCH 1/3] llvm17: cross compile compiler-rt properly, add liblldb17
---
common/shlibs | 2 +-
srcpkgs/compiler-rt17 | 1 +
srcpkgs/liblldb17 | 1 +
srcpkgs/llvm17/template | 58 +++++++++++++++++++++++------------------
srcpkgs/llvm17/update | 2 +-
5 files changed, 37 insertions(+), 27 deletions(-)
create mode 120000 srcpkgs/compiler-rt17
create mode 120000 srcpkgs/liblldb17
diff --git a/common/shlibs b/common/shlibs
index 363b157bd5fc9c..ad0068090b7a90 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -982,7 +982,7 @@ libuchardet.so.0 uchardet-0.0.6_1
libgtksourceviewmm-3.0.so.0 gtksourceviewmm-3.2.0_1
libyajl.so.2 yajl-2.0.1_1
libconfuse.so.2 confuse-3.2.1_1
-liblldb.so.17 lldb17-17.0.6_1
+liblldb.so.17 liblldb17-17.0.6_3
liblldb.so.15 lldb15-15.0.7_4
libclang.so.17 libclang17-17.0.6_1
libclang.so.15 libclang15-15.0.7_4
diff --git a/srcpkgs/compiler-rt17 b/srcpkgs/compiler-rt17
new file mode 120000
index 00000000000000..96970d5c02c13a
--- /dev/null
+++ b/srcpkgs/compiler-rt17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/liblldb17 b/srcpkgs/liblldb17
new file mode 120000
index 00000000000000..96970d5c02c13a
--- /dev/null
+++ b/srcpkgs/liblldb17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/llvm17/template b/srcpkgs/llvm17/template
index de5603085382c1..a93afe00a641a5 100644
--- a/srcpkgs/llvm17/template
+++ b/srcpkgs/llvm17/template
@@ -1,7 +1,7 @@
# Template file for 'llvm17'
pkgname=llvm17
version=17.0.6
-revision=2
+revision=3
build_wrksrc=llvm
build_style=cmake
_ext_suffix=".cpython-${py3_ver/./}-linux-${XBPS_TARGET_LIBC/glibc/gnu}.so"
@@ -9,6 +9,7 @@ pycompile_dirs="usr/share/scan-view"
configure_args="
-DCMAKE_BUILD_TYPE=Release -Wno-dev
-DENABLE_LINKER_BUILD_ID=YES
+ -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
-DLLDB_USE_SYSTEM_SIX=YES
-DLIBCXX_CXX_ABI=libcxxabi
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=YES
@@ -45,11 +46,11 @@ checksum=58a8818c60e6627064f312dbf46c02d9949956558340938b71cf731ad8bc0813
lib32disabled=yes
python_version=3
-build_options="clang clang_tools_extra lld mlir libclc polly lldb flang bolt"
-build_options_default="clang clang_tools_extra lld mlir libclc polly lldb"
+build_options="clang clang_tools_extra lld mlir libclc polly lldb flang bolt openmp"
+build_options_default="clang clang_tools_extra lld mlir libclc polly lldb openmp"
case "$XBPS_TARGET_MACHINE" in
- x86_64*|aarch64*) build_options_default+=" flang bolt ";;
+ x86_64*|aarch64*) build_options_default+=" flang bolt openmp";;
esac
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
@@ -58,8 +59,9 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
fi
subpackages="libllvm17 llvm17-doc llvm17-devel"
-_enabled_projects=
-_enabled_runtimes=
+
+# use $(:) to silence xlint
+_enabled_projects=$(:)
if [ "$build_option_clang" ]; then
_enabled_projects+="clang;"
@@ -78,7 +80,7 @@ if [ "$build_option_polly" ]; then
fi
if [ "$build_option_lldb" ]; then
_enabled_projects+="lldb;"
- subpackages+=" lldb17 lldb17-devel "
+ subpackages+=" lldb17 lldb17-devel liblldb17 "
fi
if [ "$build_option_lld" ]; then
_enabled_projects+="lld;"
@@ -96,32 +98,31 @@ if [ "$build_option_flang" ]; then
subpackages+=" flang17 flang17-devel "
fi
+subpackages+=" compiler-rt17 "
+_enabled_runtimes="compiler-rt"
+
# enable if runtime subpackages link to this version of llvm
if true; then
subpackages+=" llvm-libunwind llvm-libunwind-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libunwind"
+ _enabled_runtimes+=";libunwind"
subpackages+=" libcxx libcxx-devel libcxxabi libcxxabi-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libcxxabi;libcxx"
+ _enabled_runtimes+=";libcxxabi;libcxx"
- subpackages+=" compiler-rt "
- _enabled_runtimes+="${_enabled_runtimes:+;}compiler-rt"
- case "$XBPS_TARGET_MACHINE" in
- x86_64*|aarch64*)
- # openmp fails when built as runtime if cross-compiled
- if [ "$CROSS_BUILD" ]; then
- _enabled_projects+="openmp;"
- else
- _enabled_runtimes+="${_enabled_runtimes:+;}openmp"
- fi
- subpackages+=" libomp libomp-devel "
- ;;
- esac
+ if [ "$build_option_openmp" ]; then
+ # openmp fails when built as runtime if cross-compiled
+ if [ "$CROSS_BUILD" ]; then
+ _enabled_projects+="openmp;"
+ else
+ _enabled_runtimes+=";openmp"
+ fi
+ subpackages+=" libomp libomp-devel "
+ fi
- configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
fi
+configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
configure_args+=" -DLLVM_ENABLE_PROJECTS=${_enabled_projects}"
if [ "$CROSS_BUILD" ]; then
@@ -456,7 +457,6 @@ lldb17_package() {
vmove usr/bin/lldb-instr
vmove usr/bin/lldb-server
vmove usr/bin/lldb-vscode
- vmove "usr/lib/liblldb*.so.*"
vmove "usr/lib/python${py3_ver}/site-packages/lldb"
if [ -z "$CROSS_BUILD" ]; then
vmove /usr/lib/lua/5.3/lldb.so
@@ -474,6 +474,14 @@ lldb17-devel_package() {
}
}
+liblldb17_package() {
+ lib32disabled=yes
+ short_desc+=" - LLDB debugger - runtime library"
+ pkg_install() {
+ vmove "usr/lib/liblldb*.so.*"
+ }
+}
+
lld17_package() {
lib32disabled=yes
short_desc+=" - linker"
@@ -654,7 +662,7 @@ libcxx-devel_package() {
}
}
-compiler-rt_package() {
+compiler-rt17_package() {
short_desc+=" - runtime libraries"
homepage="https://compiler-rt.llvm.org/"
pkg_install() {
diff --git a/srcpkgs/llvm17/update b/srcpkgs/llvm17/update
index e95cf26b3586b7..cc8edb6c005acb 100644
--- a/srcpkgs/llvm17/update
+++ b/srcpkgs/llvm17/update
@@ -1,3 +1,3 @@
site="https://github.com/llvm/llvm-project/releases"
-pattern="llvmorg-\K(\d+.){2}\d+(-rc\d+)?"
+pattern="llvmorg-\K(17)\.(\d+)\.+\d+(-rc\d+)?"
ignore="*-rc*"
From 16bc5c366ebd0bbb3300108803266fb3e2031ee6 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:51 -0500
Subject: [PATCH 2/3] llvm: add compiler-rt meta-package
---
srcpkgs/compiler-rt | 2 +-
srcpkgs/llvm/template | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/compiler-rt b/srcpkgs/compiler-rt
index 96970d5c02c13a..0d68131b9b3088 120000
--- a/srcpkgs/compiler-rt
+++ b/srcpkgs/compiler-rt
@@ -1 +1 @@
-llvm17
\ No newline at end of file
+llvm
\ No newline at end of file
diff --git a/srcpkgs/llvm/template b/srcpkgs/llvm/template
index b27a80da2fee1e..bfa7da4ab48684 100644
--- a/srcpkgs/llvm/template
+++ b/srcpkgs/llvm/template
@@ -1,7 +1,7 @@
# Template file for 'llvm'
pkgname=llvm
version=17
-revision=2
+revision=3
build_style=meta
depends="llvm${version}"
short_desc="LLVM meta package"
@@ -57,3 +57,9 @@ libllvm_package() {
depends="libllvm${version}>=0"
short_desc+=" - transitional meta package"
}
+
+compiler-rt_package() {
+ build_style=meta
+ depends="compiler-rt${version}>=0"
+ short_desc+=" - transitional meta package"
+}
From 6d54cdce6bb5fed2fecf58bc0f2e40aa9fc97dcb Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Wed, 14 Feb 2024 11:41:33 -0500
Subject: [PATCH 3/3] llvm15: fix update file
---
srcpkgs/llvm15/update | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/llvm15/update b/srcpkgs/llvm15/update
index e95cf26b3586b7..baa6a6b6acf9a7 100644
--- a/srcpkgs/llvm15/update
+++ b/srcpkgs/llvm15/update
@@ -1,3 +1,3 @@
site="https://github.com/llvm/llvm-project/releases"
-pattern="llvmorg-\K(\d+.){2}\d+(-rc\d+)?"
+pattern="llvmorg-\K(15)\.(\d+)\.+\d+(-rc\d+)?"
ignore="*-rc*"
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR PATCH] [Updated] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (5 preceding siblings ...)
2024-02-26 16:57 ` Calandracas606
@ 2024-02-26 17:07 ` Calandracas606
2024-02-26 19:33 ` Calandracas606
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Calandracas606 @ 2024-02-26 17:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]
There is an updated pull request by Calandracas606 against master on the void-packages repository
https://github.com/Calandracas606/void-packages llvm17-fix-compiler-cross
https://github.com/void-linux/void-packages/pull/48679
Llvm17 fix compiler-rt, add liblldb17
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64 (cross)
[ci skip]
A patch file from https://github.com/void-linux/void-packages/pull/48679.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-llvm17-fix-compiler-cross-48679.patch --]
[-- Type: text/x-diff, Size: 8552 bytes --]
From 0770c5e67aca03ca1d3b546b5a0acfe350774ea0 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:24 -0500
Subject: [PATCH 1/3] llvm17: cross compile compiler-rt properly, add liblldb17
---
common/shlibs | 2 +-
srcpkgs/compiler-rt17 | 1 +
srcpkgs/liblldb17 | 1 +
srcpkgs/llvm17/template | 64 +++++++++++++++++++++++------------------
srcpkgs/llvm17/update | 2 +-
5 files changed, 40 insertions(+), 30 deletions(-)
create mode 120000 srcpkgs/compiler-rt17
create mode 120000 srcpkgs/liblldb17
diff --git a/common/shlibs b/common/shlibs
index 363b157bd5fc9c..ad0068090b7a90 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -982,7 +982,7 @@ libuchardet.so.0 uchardet-0.0.6_1
libgtksourceviewmm-3.0.so.0 gtksourceviewmm-3.2.0_1
libyajl.so.2 yajl-2.0.1_1
libconfuse.so.2 confuse-3.2.1_1
-liblldb.so.17 lldb17-17.0.6_1
+liblldb.so.17 liblldb17-17.0.6_3
liblldb.so.15 lldb15-15.0.7_4
libclang.so.17 libclang17-17.0.6_1
libclang.so.15 libclang15-15.0.7_4
diff --git a/srcpkgs/compiler-rt17 b/srcpkgs/compiler-rt17
new file mode 120000
index 00000000000000..96970d5c02c13a
--- /dev/null
+++ b/srcpkgs/compiler-rt17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/liblldb17 b/srcpkgs/liblldb17
new file mode 120000
index 00000000000000..96970d5c02c13a
--- /dev/null
+++ b/srcpkgs/liblldb17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/llvm17/template b/srcpkgs/llvm17/template
index de5603085382c1..d9aa05984cd98e 100644
--- a/srcpkgs/llvm17/template
+++ b/srcpkgs/llvm17/template
@@ -1,14 +1,14 @@
# Template file for 'llvm17'
pkgname=llvm17
version=17.0.6
-revision=2
+revision=3
build_wrksrc=llvm
build_style=cmake
_ext_suffix=".cpython-${py3_ver/./}-linux-${XBPS_TARGET_LIBC/glibc/gnu}.so"
-pycompile_dirs="usr/share/scan-view"
configure_args="
-DCMAKE_BUILD_TYPE=Release -Wno-dev
-DENABLE_LINKER_BUILD_ID=YES
+ -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
-DLLDB_USE_SYSTEM_SIX=YES
-DLIBCXX_CXX_ABI=libcxxabi
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=YES
@@ -45,11 +45,11 @@ checksum=58a8818c60e6627064f312dbf46c02d9949956558340938b71cf731ad8bc0813
lib32disabled=yes
python_version=3
-build_options="clang clang_tools_extra lld mlir libclc polly lldb flang bolt"
-build_options_default="clang clang_tools_extra lld mlir libclc polly lldb"
+build_options="clang clang_tools_extra lld mlir libclc polly lldb flang bolt openmp"
+build_options_default="clang clang_tools_extra lld mlir libclc polly lldb openmp"
case "$XBPS_TARGET_MACHINE" in
- x86_64*|aarch64*) build_options_default+=" flang bolt ";;
+ x86_64*|aarch64*) build_options_default+=" flang bolt openmp";;
esac
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
@@ -58,8 +58,9 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
fi
subpackages="libllvm17 llvm17-doc llvm17-devel"
-_enabled_projects=
-_enabled_runtimes=
+
+# use $(:) to silence xlint
+_enabled_projects=$(:)
if [ "$build_option_clang" ]; then
_enabled_projects+="clang;"
@@ -78,7 +79,7 @@ if [ "$build_option_polly" ]; then
fi
if [ "$build_option_lldb" ]; then
_enabled_projects+="lldb;"
- subpackages+=" lldb17 lldb17-devel "
+ subpackages+=" lldb17 lldb17-devel liblldb17 "
fi
if [ "$build_option_lld" ]; then
_enabled_projects+="lld;"
@@ -96,32 +97,31 @@ if [ "$build_option_flang" ]; then
subpackages+=" flang17 flang17-devel "
fi
+subpackages+=" compiler-rt17 "
+_enabled_runtimes="compiler-rt"
+
# enable if runtime subpackages link to this version of llvm
if true; then
subpackages+=" llvm-libunwind llvm-libunwind-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libunwind"
+ _enabled_runtimes+=";libunwind"
subpackages+=" libcxx libcxx-devel libcxxabi libcxxabi-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libcxxabi;libcxx"
+ _enabled_runtimes+=";libcxxabi;libcxx"
- subpackages+=" compiler-rt "
- _enabled_runtimes+="${_enabled_runtimes:+;}compiler-rt"
- case "$XBPS_TARGET_MACHINE" in
- x86_64*|aarch64*)
- # openmp fails when built as runtime if cross-compiled
- if [ "$CROSS_BUILD" ]; then
- _enabled_projects+="openmp;"
- else
- _enabled_runtimes+="${_enabled_runtimes:+;}openmp"
- fi
- subpackages+=" libomp libomp-devel "
- ;;
- esac
+ if [ "$build_option_openmp" ]; then
+ # openmp fails when built as runtime if cross-compiled
+ if [ "$CROSS_BUILD" ]; then
+ _enabled_projects+="openmp;"
+ else
+ _enabled_runtimes+=";openmp"
+ fi
+ subpackages+=" libomp libomp-devel "
+ fi
- configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
fi
+configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
configure_args+=" -DLLVM_ENABLE_PROJECTS=${_enabled_projects}"
if [ "$CROSS_BUILD" ]; then
@@ -312,6 +312,8 @@ clang17_package() {
vmove usr/bin/diagtool
vmove usr/bin/amdgpu-arch
vmove usr/bin/nvptx-arch
+ vmove usr/bin/hmaptool
+ vmove usr/bin/git-clang-format
vmove usr/share/man/man1/clang.1
vmove usr/share/man/man1/diagtool.1
if [ "$build_option_polly" ]; then
@@ -348,8 +350,6 @@ clang17-devel_package() {
vmove "usr/lib/libclang*.a"
vmove "usr/lib/libclang*.so"
vmove usr/share/clang
- vmove usr/bin/hmaptool
- vmove usr/bin/git-clang-format
if [ "$build_option_clang_tools_extra" ]; then
vmove usr/include/clang-tidy
vmove usr/lib/libfindAllSymbols.a
@@ -382,6 +382,7 @@ clang-analyzer17_package() {
depends="clang17>=${version}_${revision} python3 perl"
short_desc+=" - A source code analysis framework"
homepage="https://clang-analyzer.llvm.org/"
+ pycompile_dirs="usr/share/scan-view"
pkg_install() {
vmove usr/share/scan-view
vmove usr/share/scan-build
@@ -456,7 +457,6 @@ lldb17_package() {
vmove usr/bin/lldb-instr
vmove usr/bin/lldb-server
vmove usr/bin/lldb-vscode
- vmove "usr/lib/liblldb*.so.*"
vmove "usr/lib/python${py3_ver}/site-packages/lldb"
if [ -z "$CROSS_BUILD" ]; then
vmove /usr/lib/lua/5.3/lldb.so
@@ -474,6 +474,14 @@ lldb17-devel_package() {
}
}
+liblldb17_package() {
+ lib32disabled=yes
+ short_desc+=" - LLDB debugger - runtime library"
+ pkg_install() {
+ vmove "usr/lib/liblldb*.so.*"
+ }
+}
+
lld17_package() {
lib32disabled=yes
short_desc+=" - linker"
@@ -654,7 +662,7 @@ libcxx-devel_package() {
}
}
-compiler-rt_package() {
+compiler-rt17_package() {
short_desc+=" - runtime libraries"
homepage="https://compiler-rt.llvm.org/"
pkg_install() {
diff --git a/srcpkgs/llvm17/update b/srcpkgs/llvm17/update
index e95cf26b3586b7..cc8edb6c005acb 100644
--- a/srcpkgs/llvm17/update
+++ b/srcpkgs/llvm17/update
@@ -1,3 +1,3 @@
site="https://github.com/llvm/llvm-project/releases"
-pattern="llvmorg-\K(\d+.){2}\d+(-rc\d+)?"
+pattern="llvmorg-\K(17)\.(\d+)\.+\d+(-rc\d+)?"
ignore="*-rc*"
From 54637413e2cd540ac98b57c10d5e0d05458c070e Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:51 -0500
Subject: [PATCH 2/3] llvm: add compiler-rt meta-package
---
srcpkgs/compiler-rt | 2 +-
srcpkgs/llvm/template | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/compiler-rt b/srcpkgs/compiler-rt
index 96970d5c02c13a..0d68131b9b3088 120000
--- a/srcpkgs/compiler-rt
+++ b/srcpkgs/compiler-rt
@@ -1 +1 @@
-llvm17
\ No newline at end of file
+llvm
\ No newline at end of file
diff --git a/srcpkgs/llvm/template b/srcpkgs/llvm/template
index b27a80da2fee1e..bfa7da4ab48684 100644
--- a/srcpkgs/llvm/template
+++ b/srcpkgs/llvm/template
@@ -1,7 +1,7 @@
# Template file for 'llvm'
pkgname=llvm
version=17
-revision=2
+revision=3
build_style=meta
depends="llvm${version}"
short_desc="LLVM meta package"
@@ -57,3 +57,9 @@ libllvm_package() {
depends="libllvm${version}>=0"
short_desc+=" - transitional meta package"
}
+
+compiler-rt_package() {
+ build_style=meta
+ depends="compiler-rt${version}>=0"
+ short_desc+=" - transitional meta package"
+}
From 3457f3357e0696020a1f215c668896484d41d156 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Wed, 14 Feb 2024 11:41:33 -0500
Subject: [PATCH 3/3] llvm15: fix update file
---
srcpkgs/llvm15/update | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/llvm15/update b/srcpkgs/llvm15/update
index e95cf26b3586b7..baa6a6b6acf9a7 100644
--- a/srcpkgs/llvm15/update
+++ b/srcpkgs/llvm15/update
@@ -1,3 +1,3 @@
site="https://github.com/llvm/llvm-project/releases"
-pattern="llvmorg-\K(\d+.){2}\d+(-rc\d+)?"
+pattern="llvmorg-\K(15)\.(\d+)\.+\d+(-rc\d+)?"
ignore="*-rc*"
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (6 preceding siblings ...)
2024-02-26 17:07 ` Calandracas606
@ 2024-02-26 19:33 ` Calandracas606
2024-02-26 21:14 ` [PR PATCH] [Updated] " Calandracas606
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Calandracas606 @ 2024-02-26 19:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 273 bytes --]
New comment by Calandracas606 on void-packages repository
https://github.com/void-linux/void-packages/pull/48679#issuecomment-1965088720
Comment:
compiler_rt is failing to build on armv6l, since it is trying to use the `ldrexd` instruction which doesn't exist on armv6l
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR PATCH] [Updated] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (7 preceding siblings ...)
2024-02-26 19:33 ` Calandracas606
@ 2024-02-26 21:14 ` Calandracas606
2024-02-26 21:57 ` [PR REVIEW] " Johnnynator
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Calandracas606 @ 2024-02-26 21:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]
There is an updated pull request by Calandracas606 against master on the void-packages repository
https://github.com/Calandracas606/void-packages llvm17-fix-compiler-cross
https://github.com/void-linux/void-packages/pull/48679
Llvm17 fix compiler-rt, add liblldb17
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64 (cross)
[ci skip]
A patch file from https://github.com/void-linux/void-packages/pull/48679.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-llvm17-fix-compiler-cross-48679.patch --]
[-- Type: text/x-diff, Size: 9976 bytes --]
From 3abb07409eb6c05747f35bc83049a0b9dcdf0fd9 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:24 -0500
Subject: [PATCH 1/3] llvm17: cross compile compiler-rt properly, add liblldb17
---
common/shlibs | 2 +-
srcpkgs/compiler-rt17 | 1 +
srcpkgs/liblldb17 | 1 +
srcpkgs/llvm17/template | 90 ++++++++++++++++++++++++-----------------
srcpkgs/llvm17/update | 2 +-
5 files changed, 58 insertions(+), 38 deletions(-)
create mode 120000 srcpkgs/compiler-rt17
create mode 120000 srcpkgs/liblldb17
diff --git a/common/shlibs b/common/shlibs
index 363b157bd5fc9c..ad0068090b7a90 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -982,7 +982,7 @@ libuchardet.so.0 uchardet-0.0.6_1
libgtksourceviewmm-3.0.so.0 gtksourceviewmm-3.2.0_1
libyajl.so.2 yajl-2.0.1_1
libconfuse.so.2 confuse-3.2.1_1
-liblldb.so.17 lldb17-17.0.6_1
+liblldb.so.17 liblldb17-17.0.6_3
liblldb.so.15 lldb15-15.0.7_4
libclang.so.17 libclang17-17.0.6_1
libclang.so.15 libclang15-15.0.7_4
diff --git a/srcpkgs/compiler-rt17 b/srcpkgs/compiler-rt17
new file mode 120000
index 00000000000000..96970d5c02c13a
--- /dev/null
+++ b/srcpkgs/compiler-rt17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/liblldb17 b/srcpkgs/liblldb17
new file mode 120000
index 00000000000000..96970d5c02c13a
--- /dev/null
+++ b/srcpkgs/liblldb17
@@ -0,0 +1 @@
+llvm17
\ No newline at end of file
diff --git a/srcpkgs/llvm17/template b/srcpkgs/llvm17/template
index de5603085382c1..c2e5736f5ac449 100644
--- a/srcpkgs/llvm17/template
+++ b/srcpkgs/llvm17/template
@@ -1,11 +1,10 @@
# Template file for 'llvm17'
pkgname=llvm17
version=17.0.6
-revision=2
+revision=3
build_wrksrc=llvm
build_style=cmake
_ext_suffix=".cpython-${py3_ver/./}-linux-${XBPS_TARGET_LIBC/glibc/gnu}.so"
-pycompile_dirs="usr/share/scan-view"
configure_args="
-DCMAKE_BUILD_TYPE=Release -Wno-dev
-DENABLE_LINKER_BUILD_ID=YES
@@ -45,11 +44,17 @@ checksum=58a8818c60e6627064f312dbf46c02d9949956558340938b71cf731ad8bc0813
lib32disabled=yes
python_version=3
-build_options="clang clang_tools_extra lld mlir libclc polly lldb flang bolt"
-build_options_default="clang clang_tools_extra lld mlir libclc polly lldb"
+build_options="clang clang_tools_extra lld mlir libclc polly lldb flang bolt openmp"
+build_options_default="clang clang_tools_extra lld mlir libclc polly lldb openmp"
+if [ "$XBPS_TARGET_WORDSIZE" = "64" ]; then
+ build_options_default+=" flang bolt"
+fi
+
+# build fails because compiler_rt generates armv7 instructions when target is armv6
case "$XBPS_TARGET_MACHINE" in
- x86_64*|aarch64*) build_options_default+=" flang bolt ";;
+ armv6*) ;;
+ *) configure_args+=" -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON" ;;
esac
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
@@ -58,8 +63,9 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
fi
subpackages="libllvm17 llvm17-doc llvm17-devel"
-_enabled_projects=
-_enabled_runtimes=
+
+# use $(:) to silence xlint
+_enabled_projects=$(:)
if [ "$build_option_clang" ]; then
_enabled_projects+="clang;"
@@ -78,7 +84,7 @@ if [ "$build_option_polly" ]; then
fi
if [ "$build_option_lldb" ]; then
_enabled_projects+="lldb;"
- subpackages+=" lldb17 lldb17-devel "
+ subpackages+=" lldb17 lldb17-devel liblldb17 "
fi
if [ "$build_option_lld" ]; then
_enabled_projects+="lld;"
@@ -96,42 +102,37 @@ if [ "$build_option_flang" ]; then
subpackages+=" flang17 flang17-devel "
fi
+subpackages+=" compiler-rt17 "
+_enabled_runtimes="compiler-rt"
+
# enable if runtime subpackages link to this version of llvm
if true; then
subpackages+=" llvm-libunwind llvm-libunwind-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libunwind"
+ _enabled_runtimes+=";libunwind"
subpackages+=" libcxx libcxx-devel libcxxabi libcxxabi-devel "
- _enabled_runtimes+="${_enabled_runtimes:+;}libcxxabi;libcxx"
+ _enabled_runtimes+=";libcxxabi;libcxx"
- subpackages+=" compiler-rt "
- _enabled_runtimes+="${_enabled_runtimes:+;}compiler-rt"
- case "$XBPS_TARGET_MACHINE" in
- x86_64*|aarch64*)
- # openmp fails when built as runtime if cross-compiled
- if [ "$CROSS_BUILD" ]; then
- _enabled_projects+="openmp;"
- else
- _enabled_runtimes+="${_enabled_runtimes:+;}openmp"
- fi
- subpackages+=" libomp libomp-devel "
- ;;
- esac
+ if [ "$build_option_openmp" ]; then
+ # openmp fails when built as runtime if cross-compiled
+ if [ "$CROSS_BUILD" ]; then
+ _enabled_projects+="openmp;"
+ else
+ _enabled_runtimes+=";openmp"
+ fi
+ subpackages+=" libomp libomp-devel "
+ fi
- configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
fi
+configure_args+=" -DLLVM_ENABLE_RUNTIMES=${_enabled_runtimes}"
configure_args+=" -DLLVM_ENABLE_PROJECTS=${_enabled_projects}"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" llvm17-cross-tools"
- # Seems to require a full host llvm/clang build
- configure_args+=" -DLIBOMPTARGET_BUILD_CUDA_PLUGIN=OFF"
- configure_args+=" -DLIBOMPTARGET_BUILD_AMDGPU_PLUGIN=OFF"
fi
-
# For OCaml bindings and lldb lua scripting
if [ -z "$CROSS_BUILD" ]; then
subpackages+=" llvm17-cross-tools"
@@ -312,6 +313,8 @@ clang17_package() {
vmove usr/bin/diagtool
vmove usr/bin/amdgpu-arch
vmove usr/bin/nvptx-arch
+ vmove usr/bin/hmaptool
+ vmove usr/bin/git-clang-format
vmove usr/share/man/man1/clang.1
vmove usr/share/man/man1/diagtool.1
if [ "$build_option_polly" ]; then
@@ -348,8 +351,6 @@ clang17-devel_package() {
vmove "usr/lib/libclang*.a"
vmove "usr/lib/libclang*.so"
vmove usr/share/clang
- vmove usr/bin/hmaptool
- vmove usr/bin/git-clang-format
if [ "$build_option_clang_tools_extra" ]; then
vmove usr/include/clang-tidy
vmove usr/lib/libfindAllSymbols.a
@@ -382,6 +383,7 @@ clang-analyzer17_package() {
depends="clang17>=${version}_${revision} python3 perl"
short_desc+=" - A source code analysis framework"
homepage="https://clang-analyzer.llvm.org/"
+ pycompile_dirs="usr/share/scan-view"
pkg_install() {
vmove usr/share/scan-view
vmove usr/share/scan-build
@@ -456,7 +458,6 @@ lldb17_package() {
vmove usr/bin/lldb-instr
vmove usr/bin/lldb-server
vmove usr/bin/lldb-vscode
- vmove "usr/lib/liblldb*.so.*"
vmove "usr/lib/python${py3_ver}/site-packages/lldb"
if [ -z "$CROSS_BUILD" ]; then
vmove /usr/lib/lua/5.3/lldb.so
@@ -474,6 +475,14 @@ lldb17-devel_package() {
}
}
+liblldb17_package() {
+ lib32disabled=yes
+ short_desc+=" - LLDB debugger - runtime library"
+ pkg_install() {
+ vmove "usr/lib/liblldb*.so.*"
+ }
+}
+
lld17_package() {
lib32disabled=yes
short_desc+=" - linker"
@@ -576,17 +585,26 @@ libomp-devel_package() {
short_desc+=" - Clang OpenMP support library - development files"
depends="libomp>=${version}_${revision} llvm17>=${version}_${revision}"
pkg_install() {
- vmove usr/bin/llvm-omp-device-info
- vmove usr/bin/llvm-omp-kernel-replay
- vmove "usr/lib/libarcher*.so"
+ if [ -f "${DESTDIR}/usr/bin/llvm-omp-device-info" ]; then
+ vmove usr/bin/llvm-omp-device-info
+ fi
+ if [ -f "${DESTDIR}/usr/bin/llvm-omp-kernel-replay" ]; then
+ vmove usr/bin/llvm-omp-kernel-replay
+ fi
+ if [ -f "${DESTDIR}/usr/lib/libarcher.so" ]; then
+ vmove "usr/lib/libarcher*.so"
+ fi
+ if [ -f "${DESTDIR}/usr/lib/libarcher_static.a" ]; then
+ vmove "usr/lib/libarcher*.a"
+ fi
vmove "usr/lib/libomp*.so"
vmove usr/lib/cmake/openmp
if [ -f "${DESTDIR}/usr/share/man/man1/llvmopenmp.1" ]; then
vmove usr/share/man/man1/llvmopenmp.1
fi
+
if [ -z "$CROSS_BUILD" ]; then
vmove "usr/lib/libomptarget*.bc"
- vmove "usr/lib/libarcher*.a"
vmove "usr/lib/libomp*.a"
fi
}
@@ -654,7 +672,7 @@ libcxx-devel_package() {
}
}
-compiler-rt_package() {
+compiler-rt17_package() {
short_desc+=" - runtime libraries"
homepage="https://compiler-rt.llvm.org/"
pkg_install() {
diff --git a/srcpkgs/llvm17/update b/srcpkgs/llvm17/update
index e95cf26b3586b7..cc8edb6c005acb 100644
--- a/srcpkgs/llvm17/update
+++ b/srcpkgs/llvm17/update
@@ -1,3 +1,3 @@
site="https://github.com/llvm/llvm-project/releases"
-pattern="llvmorg-\K(\d+.){2}\d+(-rc\d+)?"
+pattern="llvmorg-\K(17)\.(\d+)\.+\d+(-rc\d+)?"
ignore="*-rc*"
From e959b16d6a44ad79922a02119b130381ff382598 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Mon, 12 Feb 2024 16:47:51 -0500
Subject: [PATCH 2/3] llvm: add compiler-rt meta-package
---
srcpkgs/compiler-rt | 2 +-
srcpkgs/llvm/template | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/compiler-rt b/srcpkgs/compiler-rt
index 96970d5c02c13a..0d68131b9b3088 120000
--- a/srcpkgs/compiler-rt
+++ b/srcpkgs/compiler-rt
@@ -1 +1 @@
-llvm17
\ No newline at end of file
+llvm
\ No newline at end of file
diff --git a/srcpkgs/llvm/template b/srcpkgs/llvm/template
index b27a80da2fee1e..bfa7da4ab48684 100644
--- a/srcpkgs/llvm/template
+++ b/srcpkgs/llvm/template
@@ -1,7 +1,7 @@
# Template file for 'llvm'
pkgname=llvm
version=17
-revision=2
+revision=3
build_style=meta
depends="llvm${version}"
short_desc="LLVM meta package"
@@ -57,3 +57,9 @@ libllvm_package() {
depends="libllvm${version}>=0"
short_desc+=" - transitional meta package"
}
+
+compiler-rt_package() {
+ build_style=meta
+ depends="compiler-rt${version}>=0"
+ short_desc+=" - transitional meta package"
+}
From af466bc71a50e15bc08303e1aac76e8b0934be0c Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez@cock.li>
Date: Wed, 14 Feb 2024 11:41:33 -0500
Subject: [PATCH 3/3] llvm15: fix update file
---
srcpkgs/llvm15/update | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/srcpkgs/llvm15/update b/srcpkgs/llvm15/update
index e95cf26b3586b7..baa6a6b6acf9a7 100644
--- a/srcpkgs/llvm15/update
+++ b/srcpkgs/llvm15/update
@@ -1,3 +1,3 @@
site="https://github.com/llvm/llvm-project/releases"
-pattern="llvmorg-\K(\d+.){2}\d+(-rc\d+)?"
+pattern="llvmorg-\K(15)\.(\d+)\.+\d+(-rc\d+)?"
ignore="*-rc*"
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (8 preceding siblings ...)
2024-02-26 21:14 ` [PR PATCH] [Updated] " Calandracas606
@ 2024-02-26 21:57 ` Johnnynator
2024-02-26 23:47 ` Calandracas606
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Johnnynator @ 2024-02-26 21:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 245 bytes --]
New review comment by Johnnynator on void-packages repository
https://github.com/void-linux/void-packages/pull/48679#discussion_r1503356310
Comment:
This file was already moved 3 lines earlier. You should match the `vmove` with your condition
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (9 preceding siblings ...)
2024-02-26 21:57 ` [PR REVIEW] " Johnnynator
@ 2024-02-26 23:47 ` Calandracas606
2024-02-27 20:25 ` Johnnynator
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Calandracas606 @ 2024-02-26 23:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 226 bytes --]
New review comment by Calandracas606 on void-packages repository
https://github.com/void-linux/void-packages/pull/48679#discussion_r1503449149
Comment:
the shared `.so` was moved 3 lines earlier, this vmoves the static `.a`
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR REVIEW] Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (10 preceding siblings ...)
2024-02-26 23:47 ` Calandracas606
@ 2024-02-27 20:25 ` Johnnynator
2024-05-28 1:47 ` github-actions
2024-06-11 1:49 ` [PR PATCH] [Closed]: " github-actions
13 siblings, 0 replies; 15+ messages in thread
From: Johnnynator @ 2024-02-27 20:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 157 bytes --]
New review comment by Johnnynator on void-packages repository
https://github.com/void-linux/void-packages/pull/48679#discussion_r1504932825
Comment:
True.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (11 preceding siblings ...)
2024-02-27 20:25 ` Johnnynator
@ 2024-05-28 1:47 ` github-actions
2024-06-11 1:49 ` [PR PATCH] [Closed]: " github-actions
13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2024-05-28 1:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/48679#issuecomment-2134219444
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PR PATCH] [Closed]: Llvm17 fix compiler-rt, add liblldb17
2024-02-12 21:51 [PR PATCH] Llvm17 fix compiler cross Calandracas606
` (12 preceding siblings ...)
2024-05-28 1:47 ` github-actions
@ 2024-06-11 1:49 ` github-actions
13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2024-06-11 1:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]
There's a closed pull request on the void-packages repository
Llvm17 fix compiler-rt, add liblldb17
https://github.com/void-linux/void-packages/pull/48679
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64 (cross)
- armv6l-musl (cross)
[ci skip]
^ permalink raw reply [flat|nested] 15+ messages in thread