Skip to content

Commit cd7f7c0

Browse files
committed
main/llvm*: update to 22.2.3
And sneaky other updates where relevant Fixes #5011
1 parent ce02bbd commit cd7f7c0

90 files changed

Lines changed: 3460 additions & 754 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
From 4c7be1ec6ab74e973f8d18a9011fa349c3d9dd58 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= <holger@applied-asynchrony.com>
3+
Date: Mon, 2 Mar 2026 10:03:15 +0100
4+
Subject: [PATCH] Fix build with LLVM-22
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
8+
9+
LLVM-22 changed the signatures of various createDiagnostics() calls [1].
10+
Introduce a new version macro guard and adapt the code to the changed API.
11+
12+
Fixes #5483
13+
14+
[1] https://github.com/llvm/llvm-project/commit/30633f30894129919050f24fdd1f8f6bc46beae0
15+
16+
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
17+
---
18+
src/cc/frontends/clang/loader.cc | 15 ++++++++++++---
19+
1 file changed, 12 insertions(+), 3 deletions(-)
20+
21+
diff --git a/src/cc/frontends/clang/loader.cc b/src/cc/frontends/clang/loader.cc
22+
index 6f8387aaf017..1f706344724d 100644
23+
--- a/src/cc/frontends/clang/loader.cc
24+
+++ b/src/cc/frontends/clang/loader.cc
25+
@@ -464,7 +464,10 @@ int ClangLoader::do_compile(
26+
}
27+
invocation0.getFrontendOpts().DisableFree = false;
28+
29+
-#if LLVM_VERSION_MAJOR >= 20
30+
+#if LLVM_VERSION_MAJOR >= 22
31+
+ compiler0.setVirtualFileSystem(llvm::vfs::getRealFileSystem());
32+
+ compiler0.createDiagnostics(new IgnoringDiagConsumer());
33+
+#elif LLVM_VERSION_MAJOR >= 20
34+
compiler0.createDiagnostics(*llvm::vfs::getRealFileSystem(), new IgnoringDiagConsumer());
35+
#else
36+
compiler0.createDiagnostics(new IgnoringDiagConsumer());
37+
@@ -487,7 +490,10 @@ int ClangLoader::do_compile(
38+
add_main_input(invocation1, main_path, &*out_buf);
39+
invocation1.getFrontendOpts().DisableFree = false;
40+
41+
-#if LLVM_VERSION_MAJOR >= 20
42+
+#if LLVM_VERSION_MAJOR >= 22
43+
+ compiler1.setVirtualFileSystem(llvm::vfs::getRealFileSystem());
44+
+ compiler1.createDiagnostics();
45+
+#elif LLVM_VERSION_MAJOR >= 20
46+
compiler1.createDiagnostics(*llvm::vfs::getRealFileSystem());
47+
#else
48+
compiler1.createDiagnostics();
49+
@@ -517,7 +523,10 @@ int ClangLoader::do_compile(
50+
invocation2.getCodeGenOpts().setInlining(CodeGenOptions::NormalInlining);
51+
// suppress warnings in the 2nd pass, but bail out on errors (our fault)
52+
invocation2.getDiagnosticOpts().IgnoreWarnings = true;
53+
-#if LLVM_VERSION_MAJOR >= 20
54+
+#if LLVM_VERSION_MAJOR >= 22
55+
+ compiler2.setVirtualFileSystem(llvm::vfs::getRealFileSystem());
56+
+ compiler2.createDiagnostics();
57+
+#elif LLVM_VERSION_MAJOR >= 20
58+
compiler2.createDiagnostics(*llvm::vfs::getRealFileSystem());
59+
#else
60+
compiler2.createDiagnostics();

main/bcc/patches/8c5c96ad3beeed2fa827017f451a952306826974.patch

Lines changed: 0 additions & 47 deletions
This file was deleted.

main/bcc/template.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pkgname = "bcc"
22
# keep in sync with main/libbpf-tools
3-
pkgver = "0.35.0"
4-
pkgrel = 1
3+
pkgver = "0.36.1"
4+
pkgrel = 0
55
build_style = "cmake"
66
configure_args = [
77
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
@@ -24,7 +24,6 @@
2424
]
2525
makedepends = [
2626
"clang-devel",
27-
"clang-tools-extra", # for cmake
2827
"elfutils-devel",
2928
"libbpf-devel",
3029
"libxml2-devel",
@@ -41,7 +40,7 @@
4140
license = "Apache-2.0"
4241
url = "https://github.com/iovisor/bcc"
4342
source = f"{url}/archive/refs/tags/v{pkgver}.tar.gz"
44-
sha256 = "7adf1716d2a3df6802c3bb17664d79b9d68d7316a6773eb08d6e691c5ff0b2fc"
43+
sha256 = "3b16f1eb6a5b90a5a68686c0f4195455f1c58da5ae40f004e931c19e98fa8d98"
4544
tool_flags = {
4645
# see libbpf comment about bpf headers
4746
"CFLAGS": ["-I/usr/include/bpf/uapi"],

main/binutils/template.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pkgname = "binutils"
22
pkgver = "2.45.1"
3-
_llvmver = "21.1.8"
4-
pkgrel = 0
3+
_llvmver = "22.1.3"
4+
pkgrel = 1
55
build_style = "gnu_configure"
66
configure_args = [
77
"--prefix=/usr",
@@ -53,7 +53,7 @@
5353
]
5454
sha256 = [
5555
"5fe101e6fe9d18fdec95962d81ed670fdee5f37e3f48f0bef87bddf862513aa5",
56-
"c165183819e41b25e708ea8d0938ae43125b946509016ee8550db3c09da9237b",
56+
"210d46064ba6982a58e9b0f94e05f2d86f1b7c33a190c2a717f7c35a3b19b2fc",
5757
]
5858
# resistance is futile
5959
options = ["!check", "!lto", "linkundefver", "empty"]

main/blender/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgname = "blender"
22
pkgver = "5.0.1"
3-
pkgrel = 1
3+
pkgrel = 2
44
build_style = "cmake"
55
configure_args = [
66
"-DCMAKE_BUILD_TYPE=Release",

main/bpftool/template.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgname = "bpftool"
2-
pkgver = "7.6.0"
3-
pkgrel = 1
2+
pkgver = "7.7.0"
3+
pkgrel = 0
44
build_wrksrc = "src"
55
build_style = "makefile"
66
make_build_args = [
@@ -22,19 +22,20 @@
2222
"libcap-devel",
2323
"linux-headers",
2424
"llvm-devel",
25+
"openssl3-devel",
2526
]
2627
pkgdesc = "Linux kernel bpf manipulation tool"
2728
license = "GPL-2.0-only"
2829
url = "https://github.com/libbpf/bpftool"
2930
source = [
3031
f"{url}/archive/refs/tags/v{pkgver}.tar.gz",
3132
# bpftool uses libbpf internals
32-
"https://github.com/libbpf/libbpf/archive/58dd1f58b57294b2e59482245b29e46f1812b82d.tar.gz",
33+
"https://github.com/libbpf/libbpf/archive/f5dcbae736e5d7f83a35718e01be1a8e3010fa39.tar.gz",
3334
]
3435
source_paths = [".", "libbpf"]
3536
sha256 = [
36-
"66ffaadb3043b300ce94c08a10d9a5e41e5f0bc5d221d8d19a4518e35ae6448c",
37-
"9d8960f81a8e08d112ba3ad83d3c676ec4b2d6aaf6969781a16213e6a8f3d4ed",
37+
"6d9937fa9cff83b0e7a1f64d4348819e36e34de1bfb9d2ba7c5b36d150431463",
38+
"2897bbd6df85be269fb4b0ccd3b7047f13ed8d400a27e58151192b152965a061",
3839
]
3940
# nope
4041
options = ["!check"]

main/clang-rt-builtins-mingw-w64/template.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pkgname = "clang-rt-builtins-mingw-w64"
2-
pkgver = "21.1.8"
2+
pkgver = "22.1.3"
33
pkgrel = 0
44
build_style = "cmake"
55
configure_args = [
@@ -28,7 +28,6 @@
2828
cmake_dir = "compiler-rt"
2929
hostmakedepends = [
3030
"base-cross",
31-
"clang-tools-extra",
3231
"cmake",
3332
"llvm-devel",
3433
"ninja",
@@ -39,7 +38,7 @@
3938
license = "Apache-2.0 WITH LLVM-exception AND NCSA"
4039
url = "https://llvm.org"
4140
source = f"https://github.com/llvm/llvm-project/releases/download/llvmorg-{pkgver}/llvm-project-{pkgver}.src.tar.xz"
42-
sha256 = "4633a23617fa31a3ea51242586ea7fb1da7140e426bd62fc164261fe036aa142"
41+
sha256 = "2488c33a959eafba1c44f253e5bbe7ac958eb53fa626298a3a5f4b87373767cd"
4342
hardening = ["!scp"]
4443
# crosstoolchain
4544
options = ["!check", "empty"]

main/clang-rt-cross/patches/0005-compiler-rt-ppc-sanitizer-fixes.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 83413a6b1f789cf2c78a2d90108faccf28c4f861 Mon Sep 17 00:00:00 2001
1+
From 38e4e0bfed313b1a854037ad489f45400995bd14 Mon Sep 17 00:00:00 2001
22
From: q66 <q66@chimera-linux.org>
33
Date: Sun, 14 Apr 2024 14:33:38 +0200
4-
Subject: [PATCH 05/29] compiler-rt: ppc sanitizer fixes
4+
Subject: [PATCH 05/28] compiler-rt: ppc sanitizer fixes
55

66
---
77
compiler-rt/cmake/base-config-ix.cmake | 3 +-
@@ -12,7 +12,7 @@ Subject: [PATCH 05/29] compiler-rt: ppc sanitizer fixes
1212
5 files changed, 44 insertions(+), 4 deletions(-)
1313

1414
diff --git a/compiler-rt/cmake/base-config-ix.cmake b/compiler-rt/cmake/base-config-ix.cmake
15-
index d92bc0e71..caeed40e3 100644
15+
index 37dfa5534..fbff4ed6b 100644
1616
--- a/compiler-rt/cmake/base-config-ix.cmake
1717
+++ b/compiler-rt/cmake/base-config-ix.cmake
1818
@@ -233,9 +233,10 @@ macro(test_targets)
@@ -28,7 +28,7 @@ index d92bc0e71..caeed40e3 100644
2828
test_target_arch(s390x "" "")
2929
elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "sparc")
3030
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
31-
index 16caf699a..2332d319a 100644
31+
index b73b84c29..35703905f 100644
3232
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
3333
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
3434
@@ -90,6 +90,10 @@
@@ -56,7 +56,7 @@ index ea8cc3062..44237eba3 100644
5656
# ifdef __arm__
5757
typedef struct user_fpregs elf_fpregset_t;
5858
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
59-
index 24929b8c4..3620201b9 100644
59+
index 2bf547f4a..80dbf1c88 100644
6060
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
6161
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
6262
@@ -31,7 +31,7 @@
@@ -132,5 +132,5 @@ index 7e872b5b4..9616a09d8 100644
132132

133133
inline bool probeRequiredCPUFeatures() XRAY_NEVER_INSTRUMENT {
134134
--
135-
2.51.1
135+
2.52.0
136136

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
From 2f57bfd4410d7a911ff908b2cb00a971b6bb5bf8 Mon Sep 17 00:00:00 2001
1+
From 8198fa59b4982108aa32ee30f98b015d5f0dd022 Mon Sep 17 00:00:00 2001
22
From: q66 <q66@chimera-linux.org>
33
Date: Sat, 4 Nov 2023 08:55:34 +0100
4-
Subject: [PATCH 06/29] compiler-rt: default to libc++ for sanitizers
4+
Subject: [PATCH 06/28] compiler-rt: default to libc++ for sanitizers
55

66
---
77
compiler-rt/CMakeLists.txt | 2 +-
88
1 file changed, 1 insertion(+), 1 deletion(-)
99

1010
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt
11-
index 9f8e8334d..b793dd4fd 100644
11+
index a92258ae1..48fa39c8a 100644
1212
--- a/compiler-rt/CMakeLists.txt
1313
+++ b/compiler-rt/CMakeLists.txt
14-
@@ -228,7 +228,7 @@ macro(handle_default_cxx_lib var)
14+
@@ -230,7 +230,7 @@ macro(handle_default_cxx_lib var)
1515
set(${var}_LIBNAME "libc++")
1616
set(${var}_INTREE 1)
1717
else()
@@ -21,5 +21,5 @@ index 9f8e8334d..b793dd4fd 100644
2121
endif()
2222
else()
2323
--
24-
2.51.1
24+
2.52.0
2525

0 commit comments

Comments
 (0)