-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New package: llvm17 #46935
Closed
Closed
New package: llvm17 #46935
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
06bde83
New package: llvm17-17.0.6
de54734
llvm15: update to 15.0.7.
2924e1b
llvm: update to 17.
79248a0
clang-analyzer: remove unversioned package
1abeefa
lld-devel: remove unversioned package
8e57c4a
lldb-devel: remove unversioned package
716e91a
CastXML: update to 0.6.2.
f7ffb9a
bpftrace: rebuild for llvm17
a903ce2
SPIRV-Tools: rebuild for llvm17
f9e3496
SPIRV-LLVM-Translator: update to 17.0.0.
572efd6
SPIRV-Headers: update to 1.3.268.0.
e840f1a
mesa: rebuild for llvm17
970a5b5
ccls: rebuild for llvm17
0203db1
clazy: rebuild for llvm17
6882f00
gnome-builder: rebuild for llvm17
826470e
include-what-you-use: update to 0.20.
61baf5b
juCi++: rebuild for llvm17
69a073e
kdevelop: update to 23.08.4.
0b206a6
kdevelop-php: update to 23.08.4.
5d1b673
kdevelop-python: update to 23.08.4.
0f3eab7
ldc: Rebuild with old llvm15
bff8891
qt6-tools: rebuild for llvm17
39f1b2a
rtags: rebuild for llvm17
08045d7
shiboken2: rebuild for llvm17
09e3986
zig: Build against old llvm15 packages
50c3921
libclc: update to 17.0.6.
07b855d
qtcreator: update to 12.0.1.
f392e2f
bcc: Rebuild against llvm17
6ba087d
ispc: Rebuild against llvm17
b16695e
ghc: Rebuild against llvm17
faa9084
faust: update to 2.70.3.
34aeacf
imhex: Build with llvm15
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# Template file for 'CastXML' | ||
pkgname=CastXML | ||
version=0.5.1 | ||
revision=2 | ||
version=0.6.2 | ||
revision=1 | ||
build_style=cmake | ||
configure_args="-DSPHINX_MAN=YES -DCastXML_INSTALL_MAN_DIR=share/man" | ||
hostmakedepends="clang python3-Sphinx" | ||
makedepends="clang-tools-extra llvm" | ||
makedepends="clang-tools-extra llvm17-devel" | ||
depends="clang" | ||
checkdepends="libxml2" | ||
short_desc="C-family abstract syntax tree XML output tool" | ||
maintainer="Evgeny Ermakov <[email protected]>" | ||
license="Apache-2.0" | ||
homepage="https://github.com/CastXML/CastXML" | ||
distfiles="https://github.com/CastXML/CastXML/archive/refs/tags/v${version}.tar.gz" | ||
checksum=a7b40b1530585672f9cf5d7a6b6dd29f20c06cd5edf34ef34c89a184a4d1a006 | ||
checksum=9bb108de1b3348a257be5b08a9f8418f89fdcd4af2e6ee271d68b0203ac75d5e | ||
|
||
post_install() { | ||
rm -r ${DESTDIR}/usr/share/castxml/clang/include | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Template file for 'SPIRV-Headers' | ||
pkgname=SPIRV-Headers | ||
reverts="1.5.4.raytracing.fixed_1 1.5.3_2 1.5.3_1 1.5.1_1 1.4.1_1" | ||
version=1.3.231.1 | ||
version=1.3.268.0 | ||
revision=1 | ||
build_style=cmake | ||
short_desc="Machine-readable files for the SPIR-V Registry" | ||
maintainer="Orphaned <[email protected]>" | ||
license="MIT" | ||
homepage="https://github.com/KhronosGroup/SPIRV-Headers" | ||
distfiles="https://github.com/KhronosGroup/SPIRV-Headers/archive/sdk-${version}.tar.gz" | ||
checksum=fc340700b005e9a2adc98475b5afbbabd1bc931f789a2afd02d54ebc22522af3 | ||
distfiles="https://github.com/KhronosGroup/SPIRV-Headers/archive/vulkan-sdk-${version}.tar.gz" | ||
checksum=1022379e5b920ae21ccfb5cb41e07b1c59352a18c3d3fdcbf38d6ae7733384d4 | ||
|
||
post_install() { | ||
vlicense LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# Template file for 'SPIRV-LLVM-Translator' | ||
pkgname=SPIRV-LLVM-Translator | ||
version=15.0.0 | ||
version=17.0.0 | ||
revision=1 | ||
build_style=cmake | ||
make_build_args="llvm-spirv" | ||
configure_args="-Wno-dev -DLLVM_LINK_LLVM_DYLIB=ON -DCMAKE_SKIP_RPATH=ON | ||
-DLLVM_SPIRV_INCLUDE_TESTS=OFF -DBUILD_SHARED_LIBS=ON | ||
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr" | ||
hostmakedepends="clang llvm" | ||
makedepends="clang-tools-extra llvm SPIRV-Headers" | ||
makedepends="clang-tools-extra llvm17-devel SPIRV-Headers" | ||
short_desc="API and commands for processing SPIR-V modules" | ||
maintainer="Orphaned <[email protected]>" | ||
license="NCSA" | ||
homepage="https://github.com/KhronosGroup/SPIRV-LLVM-Translator" | ||
distfiles="https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v${version}.tar.gz" | ||
checksum=b1bebd77f72988758c00852e78c2ddc545815a612169a0cb377d021e2f846d88 | ||
checksum=eba381e1dd99b4ff6c672a28f52755d1adf2d810a97b51e6074ad4fa67937fb2 | ||
|
||
post_install() { | ||
vlicense LICENSE.TXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Template file for 'SPIRV-Tools' | ||
pkgname=SPIRV-Tools | ||
version=2022.4 | ||
version=2023.5 | ||
revision=1 | ||
build_style=cmake | ||
configure_args="-DSPIRV_SKIP_TESTS=ON -DSPIRV_WERROR=OFF | ||
|
@@ -12,8 +12,8 @@ maintainer="Orphaned <[email protected]>" | |
license="Apache-2.0" | ||
homepage="https://github.com/KhronosGroup/SPIRV-Tools" | ||
changelog="https://raw.githubusercontent.com/KhronosGroup/SPIRV-Tools/master/CHANGES" | ||
distfiles="https://github.com/KhronosGroup/SPIRV-Tools/archive/v${version}.tar.gz" | ||
checksum=a156215a2d7c6c5b267933ed691877a9a66f07d75970da33ce9ad627a71389d7 | ||
distfiles="https://api.github.com/repos/KhronosGroup/SPIRV-Tools/tarball/vulkan-sdk-1.3.268.0>${version}.tar.gz" | ||
checksum=eb560857e21876561e9e738ae8c9d6f42038366f90b2564be067cf020627e722 | ||
LDFLAGS="-Wl,--no-undefined" | ||
|
||
SPIRV-Tools-devel_package() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Template file for 'bcc' | ||
pkgname=bcc | ||
version=0.29.1 | ||
revision=1 | ||
revision=2 | ||
build_style=cmake | ||
configure_args="-DREVISION=${version} -DENABLE_LLVM_SHARED=1" | ||
hostmakedepends="flex python3-setuptools" | ||
makedepends="clang clang-tools-extra elfutils-devel flex lld-devel llvm | ||
makedepends="clang clang-tools-extra elfutils-devel flex lld-devel llvm17-devel | ||
ncurses-devel python3-devel zlib-devel" | ||
short_desc="BPF-based Linux IO analysis, networking, monitoring, and more" | ||
maintainer="Leah Neukirchen <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Template file for 'bpftrace' | ||
pkgname=bpftrace | ||
version=0.20.0 | ||
revision=1 | ||
revision=2 | ||
archs="x86_64* aarch64* ppc64*" | ||
build_style=cmake | ||
configure_args="-DUSE_SYSTEM_BPF_BCC=ON -DBUILD_TESTING=OFF" # needs root to run | ||
hostmakedepends="flex pkg-config ruby-asciidoctor" | ||
makedepends="bcc-devel cereal clang clang-tools-extra elfutils-devel libbpf-devel libxml2-devel llvm" | ||
makedepends="bcc-devel cereal clang clang-tools-extra elfutils-devel libbpf-devel libxml2-devel llvm17-devel" | ||
short_desc="High-level tracing language for Linux enhanced Berkeley Packet Filter" | ||
maintainer="Leah Neukirchen <[email protected]>" | ||
license="Apache-2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Template file for 'ccls' | ||
pkgname=ccls | ||
version=0.20230717 | ||
revision=1 | ||
revision=2 | ||
build_style=cmake | ||
configure_args="-DUSE_SYSTEM_RAPIDJSON=ON" | ||
hostmakedepends="clang-tools-extra" | ||
makedepends="clang-tools-extra libxml2-devel llvm ncurses-devel rapidjson zlib-devel" | ||
makedepends="clang-tools-extra libxml2-devel llvm17-devel ncurses-devel rapidjson zlib-devel" | ||
short_desc="C/C++/ObjC language server" | ||
maintainer="André Cerqueira <[email protected]>" | ||
license="Apache-2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
llvm15 | ||
llvm |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
llvm17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
llvm15 | ||
llvm |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
llvm17 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
llvm17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
llvm17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
From a05ac7eb6f6198c3f478bd7b5b4bfc062a8d63cc Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Ivan=20=C4=8Cuki=C4=87?= <[email protected]> | ||
Date: Tue, 7 Feb 2023 11:06:19 +0100 | ||
Subject: [PATCH] Adapt to API changes in clang/llvm 16 | ||
|
||
--- | ||
src/SourceCompatibilityHelpers.h | 17 ++++++++++++----- | ||
src/checkbase.h | 1 + | ||
src/checks/level0/lambda-in-connect.cpp | 2 +- | ||
3 files changed, 14 insertions(+), 6 deletions(-) | ||
|
||
diff --git a/src/SourceCompatibilityHelpers.h b/src/SourceCompatibilityHelpers.h | ||
index c1a23a4b..5e2dc606 100644 | ||
--- a/src/SourceCompatibilityHelpers.h | ||
+++ b/src/SourceCompatibilityHelpers.h | ||
@@ -107,7 +107,11 @@ inline clang::tooling::Replacements& DiagnosticFix(clang::tooling::Diagnostic &d | ||
|
||
inline auto getBuffer(const clang::SourceManager &sm, clang::FileID id, bool *invalid) | ||
{ | ||
-#if LLVM_VERSION_MAJOR >= 12 | ||
+#if LLVM_VERSION_MAJOR >= 16 | ||
+ auto buffer = sm.getBufferOrNone(id); | ||
+ *invalid = !buffer.has_value(); | ||
+ return buffer; | ||
+#elif LLVM_VERSION_MAJOR >= 12 | ||
auto buffer = sm.getBufferOrNone(id); | ||
*invalid = !buffer.hasValue(); | ||
return buffer; | ||
@@ -116,11 +120,12 @@ inline auto getBuffer(const clang::SourceManager &sm, clang::FileID id, bool *in | ||
#endif | ||
} | ||
|
||
-#if LLVM_VERSION_MAJOR >= 12 | ||
- | ||
+#if LLVM_VERSION_MAJOR >= 16 | ||
+#define GET_LEXER(id, inputFile, sm, lo) \ | ||
+clang::Lexer(id, inputFile.value(), sm, lo) | ||
+#elif LLVM_VERSION_MAJOR >= 12 | ||
#define GET_LEXER(id, inputFile, sm, lo) \ | ||
clang::Lexer(id, inputFile.getValue(), sm, lo) | ||
- | ||
#else | ||
#define GET_LEXER(id, inputFile, sm, lo) \ | ||
clang::Lexer(id, inputFile, sm, lo) | ||
@@ -144,7 +149,9 @@ inline bool contains_lower(clang::StringRef haystack, clang::StringRef needle) | ||
#endif | ||
} | ||
|
||
-#if LLVM_VERSION_MAJOR >= 15 | ||
+#if LLVM_VERSION_MAJOR >= 16 | ||
+using OptionalFileEntryRef = clang::CustomizableOptional<clang::FileEntryRef>; | ||
+#elif LLVM_VERSION_MAJOR >= 15 | ||
using OptionalFileEntryRef = clang::Optional<clang::FileEntryRef>; | ||
#else | ||
using OptionalFileEntryRef = const clang::FileEntry*; | ||
diff --git a/src/checkbase.h b/src/checkbase.h | ||
index 02f6a6bf..6a8c634b 100644 | ||
--- a/src/checkbase.h | ||
+++ b/src/checkbase.h | ||
@@ -93,6 +93,7 @@ public: | ||
void InclusionDirective(clang::SourceLocation HashLoc, const clang::Token &IncludeTok, clang::StringRef FileName, bool IsAngled, | ||
clang::CharSourceRange FilenameRange, clazy::OptionalFileEntryRef File, clang::StringRef SearchPath, | ||
clang::StringRef RelativePath, const clang::Module *Imported, clang::SrcMgr::CharacteristicKind FileType) override; | ||
+ | ||
private: | ||
CheckBase *const check; | ||
}; | ||
diff --git a/src/checks/level0/lambda-in-connect.cpp b/src/checks/level0/lambda-in-connect.cpp | ||
index b0da926f..1ba1126f 100644 | ||
--- a/src/checks/level0/lambda-in-connect.cpp | ||
+++ b/src/checks/level0/lambda-in-connect.cpp | ||
@@ -71,7 +71,7 @@ void LambdaInConnect::VisitStmt(clang::Stmt *stmt) | ||
|
||
for (auto capture : captures) { | ||
if (capture.getCaptureKind() == clang::LCK_ByRef) { | ||
- VarDecl *declForCapture = capture.getCapturedVar(); | ||
+ auto *declForCapture = capture.getCapturedVar(); | ||
if (declForCapture && declForCapture != receiverDecl && clazy::isValueDeclInFunctionContext(declForCapture)) | ||
emitWarning(capture.getLocation(), "captured local variable by reference might go out of scope before lambda is called"); | ||
} | ||
-- | ||
GitLab | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- a/src/checks/manuallevel/unexpected-flag-enumerator-value.cpp 2022-01-20 18:18:47.000000000 -0500 | ||
+++ b/src/checks/manuallevel/unexpected-flag-enumerator-value.cpp 2023-11-03 17:12:24.669027622 -0400 | ||
@@ -61,8 +61,13 @@ | ||
if (val.isMask() && val.countTrailingOnes() >= MinOnesToQualifyAsMask) | ||
return true; | ||
|
||
+#if LLVM_VERSION_MAJOR >= 17 | ||
+ if (val.isShiftedMask() && val.popcount() >= MinOnesToQualifyAsMask) | ||
+ return true; | ||
+#else | ||
if (val.isShiftedMask() && val.countPopulation() >= MinOnesToQualifyAsMask) | ||
return true; | ||
+#endif | ||
|
||
if (clazy::contains_lower(en->getName(), "mask")) | ||
return true; | ||
@@ -158,7 +163,11 @@ | ||
|
||
for (EnumConstantDecl* enumerator : enumerators) { | ||
const auto &initVal = enumerator->getInitVal(); | ||
+#if LLVM_VERSION_MAJOR >= 17 | ||
+ if (!initVal.isPowerOf2() && !initVal.isZero() && !initVal.isNegative()) { | ||
+#else | ||
if (!initVal.isPowerOf2() && !initVal.isNullValue() && !initVal.isNegative()) { | ||
+#endif | ||
if (isIntentionallyNotPowerOf2(enumerator)) | ||
continue; | ||
const auto value = enumerator->getInitVal().getLimitedValue(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Template file for 'clazy' | ||
pkgname=clazy | ||
version=1.11 | ||
revision=2 | ||
revision=3 | ||
build_style=cmake | ||
build_helper=qemu | ||
hostmakedepends="llvm" | ||
makedepends="clang llvm clang-tools-extra" | ||
makedepends="clang llvm17-devel clang-tools-extra" | ||
depends="clang" | ||
short_desc="Qt oriented code checker based on clang framework" | ||
maintainer="John <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/compiler/generator/Text.hh b/compiler/generator/Text.hh | ||
index 47ca2a7be..8fad938ea 100644 | ||
--- a/compiler/generator/Text.hh | ||
+++ b/compiler/generator/Text.hh | ||
@@ -31,6 +31,7 @@ | ||
#include <string> | ||
#include <vector> | ||
#include <cmath> | ||
+#include <cstdint> | ||
|
||
std::string subst(const std::string& m, const std::string& a0); | ||
std::string subst(const std::string& m, const std::vector<std::string>& vargs); |
4 changes: 2 additions & 2 deletions
4
srcpkgs/faust/patches/faust-voidlinux-lib_and_arch_paths.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2023.5 released as part of Vulkan SDK, and not a standalone realease on github