Compare commits
19 Commits
master
...
f33-riscv6
Author | SHA1 | Date |
---|---|---|
David Abdurachmanov | f47208ea85 | |
Tom Stellard | efa487912b | |
sergesanspaille | 41cfdb0452 | |
sergesanspaille | 1e21f6f24d | |
sergesanspaille | fecb0f402f | |
sergesanspaille | e9ab0e502a | |
Tom Stellard | 892c49fa88 | |
Tom Stellard | 46e006a53e | |
Tom Stellard | 8c8d9c672c | |
Fedora Release Engineering | 01b6b5c70e | |
Jeff Law | 4c025cdf78 | |
Fedora Release Engineering | 8eeb41a108 | |
sergesanspaille | 82aa4d3bba | |
Tom Stellard | f923b525f1 | |
Aleksandra Fedorova | f1e3f547a4 | |
Tom Stellard | e2a664c75a | |
Dan Čermák | 43b5ca7f2b | |
Miro Hrončok | a62c5d08c0 | |
sergesanspaille | d933922e69 |
|
@ -99,3 +99,11 @@
|
|||
/clang-tools-extra-10.0.0.src.tar.xz.sig
|
||||
/clang-tools-extra-10.0.0.src.tar.xz
|
||||
/clang-10.0.0.src.tar.xz
|
||||
/clang-11.0.0rc1.src.tar.xz
|
||||
/clang-tools-extra-11.0.0rc1.src.tar.xz
|
||||
/clang-tools-extra-11.0.0rc1.src.tar.xz.sig
|
||||
/clang-11.0.0rc1.src.tar.xz.sig
|
||||
/clang-11.0.0.src.tar.xz
|
||||
/clang-11.0.0.src.tar.xz.sig
|
||||
/clang-tools-extra-11.0.0.src.tar.xz
|
||||
/clang-tools-extra-11.0.0.src.tar.xz.sig
|
||||
|
|
|
@ -0,0 +1,132 @@
|
|||
From 67013ee5feecca0c1e1dd8a149b20779a9b6c12a Mon Sep 17 00:00:00 2001
|
||||
From: serge-sans-paille <sguelton@redhat.com>
|
||||
Date: Wed, 23 Sep 2020 12:47:30 +0000
|
||||
Subject: [PATCH] Driver: Prefer gcc toolchains with libgcc_s.so when not
|
||||
static linking libgcc
|
||||
|
||||
Fedora ships cross-compilers on all platforms, so a user could end up
|
||||
with a gcc x86_64 cross-compiler installed on an x86_64 system. clang
|
||||
maintains a list of supported triples for each target and when all
|
||||
else is equal will prefer toolchains with triples that appear earlier
|
||||
in the list.
|
||||
|
||||
The cross-compiler triple on Fedora is x86_64-linux-gnu and this comes
|
||||
before the Fedora system compiler's triple: x86_64-redhat-linux in
|
||||
the triples list, so the cross compiler is always preferred. This
|
||||
is a problem, because the cross compiler is missing libraries, like
|
||||
libgcc_s.so, that clang expects to be there so linker invocations
|
||||
will fail.
|
||||
|
||||
This patch fixes this by checking for the existence of libgcc_s.so
|
||||
when it is required and taking that into account when selecting a
|
||||
toolchain.
|
||||
---
|
||||
lib/Driver/ToolChains/Gnu.cpp | 16 ++++++++++++++--
|
||||
lib/Driver/ToolChains/Gnu.h | 4 +++-
|
||||
.../usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o | 0
|
||||
.../usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o | 0
|
||||
.../lib/gcc/x86_64-redhat-linux/7/libgcc_s.so | 0
|
||||
test/Driver/linux-ld.c | 12 ++++++++++++
|
||||
6 files changed, 29 insertions(+), 3 deletions(-)
|
||||
create mode 100644 test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o
|
||||
create mode 100644 test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o
|
||||
create mode 100644 test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so
|
||||
|
||||
diff --git a/lib/Driver/ToolChains/Gnu.cpp b/lib/Driver/ToolChains/Gnu.cpp
|
||||
index c8a7fce0..f28792b7 100644
|
||||
--- a/lib/Driver/ToolChains/Gnu.cpp
|
||||
+++ b/lib/Driver/ToolChains/Gnu.cpp
|
||||
@@ -2500,6 +2500,8 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
|
||||
(TargetArch == llvm::Triple::x86 &&
|
||||
TargetTriple.getOS() != llvm::Triple::Solaris)}};
|
||||
|
||||
+ bool NeedLibgccShared = !Args.hasArg(options::OPT_static_libgcc) &&
|
||||
+ !Args.hasArg(options::OPT_static);
|
||||
for (auto &Suffix : Suffixes) {
|
||||
if (!Suffix.Active)
|
||||
continue;
|
||||
@@ -2517,8 +2519,17 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
|
||||
continue; // Saw this path before; no need to look at it again.
|
||||
if (CandidateVersion.isOlderThan(4, 1, 1))
|
||||
continue;
|
||||
- if (CandidateVersion <= Version)
|
||||
- continue;
|
||||
+
|
||||
+ bool CandidateHasLibGccShared = false;
|
||||
+ if (CandidateVersion <= Version) {
|
||||
+ if (NeedLibgccShared && !HasLibGccShared) {
|
||||
+ CandidateHasLibGccShared =
|
||||
+ D.getVFS().exists(LI->path() + "/libgcc_s.so");
|
||||
+
|
||||
+ }
|
||||
+ if (HasLibGccShared || !CandidateHasLibGccShared)
|
||||
+ continue;
|
||||
+ }
|
||||
|
||||
if (!ScanGCCForMultilibs(TargetTriple, Args, LI->path(),
|
||||
NeedsBiarchSuffix))
|
||||
@@ -2532,6 +2543,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
|
||||
GCCInstallPath = (LibDir + "/" + LibSuffix + "/" + VersionText).str();
|
||||
GCCParentLibPath = (GCCInstallPath + "/../" + Suffix.ReversePath).str();
|
||||
IsValid = true;
|
||||
+ HasLibGccShared = CandidateHasLibGccShared;
|
||||
}
|
||||
}
|
||||
}
|
||||
diff --git a/lib/Driver/ToolChains/Gnu.h b/lib/Driver/ToolChains/Gnu.h
|
||||
index 52690ab4..2a4452d9 100644
|
||||
--- a/lib/Driver/ToolChains/Gnu.h
|
||||
+++ b/lib/Driver/ToolChains/Gnu.h
|
||||
@@ -190,6 +190,7 @@ public:
|
||||
/// Driver, and has logic for fuzzing that where appropriate.
|
||||
class GCCInstallationDetector {
|
||||
bool IsValid;
|
||||
+ bool HasLibGccShared;
|
||||
llvm::Triple GCCTriple;
|
||||
const Driver &D;
|
||||
|
||||
@@ -213,7 +214,8 @@ public:
|
||||
MultilibSet Multilibs;
|
||||
|
||||
public:
|
||||
- explicit GCCInstallationDetector(const Driver &D) : IsValid(false), D(D) {}
|
||||
+ explicit GCCInstallationDetector(const Driver &D)
|
||||
+ : IsValid(false), HasLibGccShared(false), D(D) {}
|
||||
void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args,
|
||||
ArrayRef<std::string> ExtraTripleAliases = None);
|
||||
|
||||
diff --git a/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o b/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-linux-gnu/7/crtbegin.o
|
||||
new file mode 100644
|
||||
index 00000000..e69de29b
|
||||
diff --git a/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o b/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o
|
||||
new file mode 100644
|
||||
index 00000000..e69de29b
|
||||
diff --git a/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so b/test/Driver/Inputs/fedora_28_tree/usr/lib/gcc/x86_64-redhat-linux/7/libgcc_s.so
|
||||
new file mode 100644
|
||||
index 00000000..e69de29b
|
||||
diff --git a/test/Driver/linux-ld.c b/test/Driver/linux-ld.c
|
||||
index ec539522..95725d5c 100644
|
||||
--- a/test/Driver/linux-ld.c
|
||||
+++ b/test/Driver/linux-ld.c
|
||||
@@ -784,6 +784,18 @@
|
||||
// CHECK-FEDORA-31-RISCV64: "{{.*}}/usr/lib/gcc/riscv64-redhat-linux/9{{/|\\\\}}crtend.o"
|
||||
// CHECK-FEDORA-31-RISCV64: "{{.*}}/usr/lib/gcc/riscv64-redhat-linux/9{{/|\\\\}}crtn.o"
|
||||
//
|
||||
+// Check that clang does not select the cross compiler by default on Fedora 28.
|
||||
+//
|
||||
+// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
+// RUN: --target=x86_64-unknown-linux-gnu \
|
||||
+// RUN: --gcc-toolchain="" \
|
||||
+// RUN: --sysroot=%S/Inputs/fedora_28_tree \
|
||||
+// RUN: | FileCheck --check-prefix=CHECK-FEDORA-28-X86_64 %s
|
||||
+//
|
||||
+// CHECK-FEDORA-28-X86_64: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]"
|
||||
+// CHECK-FEDORA-28-X86_64: "[[SYSROOT]]/usr/lib/gcc/x86_64-redhat-linux/7/crtbegin.o"
|
||||
+// CHECK-FEDORA-28-X86_64: "-L[[SYSROOT]]/usr/lib/gcc/x86_64-redhat-linux/7"
|
||||
+//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
||||
// RUN: --target=arm-unknown-linux-gnueabi -rtlib=platform \
|
||||
// RUN: --gcc-toolchain="" \
|
||||
--
|
||||
2.25.2
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 856b789b9de0895786ba23681c4337172676e01e Mon Sep 17 00:00:00 2001
|
||||
From 8097a9d4295dbc39cbd541ccace7bc5884852366 Mon Sep 17 00:00:00 2001
|
||||
From: Tom Stellard <tstellar@redhat.com>
|
||||
Date: Fri, 31 Jan 2020 11:04:57 -0800
|
||||
Subject: [PATCH] clang: Don't install static libraries
|
||||
|
@ -8,18 +8,18 @@ Subject: [PATCH] clang: Don't install static libraries
|
|||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
|
||||
index cbd618e..9cf076a 100644
|
||||
index 704278a0e93..1737b24a2bc 100644
|
||||
--- a/clang/cmake/modules/AddClang.cmake
|
||||
+++ b/clang/cmake/modules/AddClang.cmake
|
||||
@@ -97,7 +97,7 @@ macro(add_clang_library name)
|
||||
if(TARGET ${name})
|
||||
target_link_libraries(${name} INTERFACE ${LLVM_COMMON_LIBS})
|
||||
@@ -111,7 +111,7 @@ macro(add_clang_library name)
|
||||
if(TARGET ${lib})
|
||||
target_link_libraries(${lib} INTERFACE ${LLVM_COMMON_LIBS})
|
||||
|
||||
- if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN)
|
||||
+ if (ARG_SHARED AND (NOT LLVM_INSTALL_TOOLCHAIN_ONLY OR ARG_INSTALL_WITH_TOOLCHAIN))
|
||||
set(export_to_clangtargets)
|
||||
if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
||||
if(${lib} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
||||
"clang-libraries" IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR
|
||||
--
|
||||
1.8.3.1
|
||||
2.18.1
|
||||
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
From 5bfce60443b1c3f4066f506e47cbdc7c4263bb10 Mon Sep 17 00:00:00 2001
|
||||
From: Tom Stellard <tstellar@redhat.com>
|
||||
Date: Tue, 11 Aug 2020 18:32:08 -0700
|
||||
Subject: [PATCH] clang: Fix spurious test failure
|
||||
|
||||
---
|
||||
clang/test/Driver/crash-report-modules.m | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/clang/test/Driver/crash-report-modules.m b/clang/test/Driver/crash-report-modules.m
|
||||
index e6d03353379..9519adf6f4b 100644
|
||||
--- a/clang/test/Driver/crash-report-modules.m
|
||||
+++ b/clang/test/Driver/crash-report-modules.m
|
||||
@@ -19,7 +19,7 @@
|
||||
@import simple;
|
||||
const int x = MODULE_MACRO;
|
||||
|
||||
-// CHECK: PLEASE submit a bug report to {{.*}} and include the crash backtrace, preprocessed source, and associated run script.
|
||||
+// CHECK: PLEASE submit a bug report to {{.*}}and include the crash backtrace, preprocessed source, and associated run script.
|
||||
// CHECK: Preprocessed source(s) and associated run script(s) are located at:
|
||||
// CHECK-NEXT: note: diagnostic msg: {{.*}}.m
|
||||
// CHECK-NEXT: note: diagnostic msg: {{.*}}.cache
|
||||
--
|
||||
2.18.1
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
From ad7211df6f257e39da2e5a11b2456b4488f32a1e Mon Sep 17 00:00:00 2001
|
||||
From: Oliver Bruns <obruns@gmail.com>
|
||||
Date: Mon, 6 Apr 2020 10:38:30 +0200
|
||||
Subject: [PATCH] [clang] fix undefined behaviour in
|
||||
RawComment::getFormattedText()
|
||||
|
||||
Summary:
|
||||
Calling `back()` and `pop_back()` on the empty string is undefined
|
||||
behavior [1,2].
|
||||
|
||||
The issue manifested itself as an uncaught `std::out_of_range` exception
|
||||
when running `clangd` compiled on RHEL7 using devtoolset-9.
|
||||
|
||||
[1] https://en.cppreference.com/w/cpp/string/basic_string/back
|
||||
[2] https://en.cppreference.com/w/cpp/string/basic_string/pop_back
|
||||
|
||||
Fixes: 1ff7c32fc91c607b690d4bb9cf42f406be8dde68
|
||||
|
||||
Reviewers: teemperor, ioeric, cfe-commits
|
||||
|
||||
Reviewed By: teemperor
|
||||
|
||||
Subscribers: ilya-biryukov, kadircet, usaxena95
|
||||
|
||||
Tags: #clang
|
||||
|
||||
Differential Revision: https://reviews.llvm.org/D77468
|
||||
---
|
||||
clang/lib/AST/RawCommentList.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/clang/lib/AST/RawCommentList.cpp b/clang/lib/AST/RawCommentList.cpp
|
||||
index 8552b4fcd2b..a8d15036cab 100644
|
||||
--- a/clang/lib/AST/RawCommentList.cpp
|
||||
+++ b/clang/lib/AST/RawCommentList.cpp
|
||||
@@ -431,7 +431,7 @@ std::string RawComment::getFormattedText(const SourceManager &SourceMgr,
|
||||
};
|
||||
|
||||
auto DropTrailingNewLines = [](std::string &Str) {
|
||||
- while (Str.back() == '\n')
|
||||
+ while (!Str.empty() && Str.back() == '\n')
|
||||
Str.pop_back();
|
||||
};
|
||||
|
||||
--
|
||||
2.25.2
|
||||
|
128
clang.spec
128
clang.spec
|
@ -1,10 +1,10 @@
|
|||
%global compat_build 0
|
||||
|
||||
%global maj_ver 10
|
||||
%global maj_ver 11
|
||||
%global min_ver 0
|
||||
%global patch_ver 0
|
||||
#%%global rc_ver 6
|
||||
%global baserelease 1
|
||||
#%%global rc_ver 1
|
||||
%global baserelease 2
|
||||
|
||||
%global clang_tools_binaries \
|
||||
%{_bindir}/clang-apply-replacements \
|
||||
|
@ -13,7 +13,6 @@
|
|||
%{_bindir}/clang-doc \
|
||||
%{_bindir}/clang-extdef-mapping \
|
||||
%{_bindir}/clang-format \
|
||||
%{_bindir}/clang-import-test \
|
||||
%{_bindir}/clang-include-fixer \
|
||||
%{_bindir}/clang-move \
|
||||
%{_bindir}/clang-offload-bundler \
|
||||
|
@ -72,7 +71,7 @@
|
|||
|
||||
Name: %pkg_name
|
||||
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
|
||||
Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist}
|
||||
Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}.0.riscv64%{?dist}
|
||||
Summary: A C language family front-end for LLVM
|
||||
|
||||
License: NCSA
|
||||
|
@ -101,6 +100,8 @@ Patch13: 0001-Make-funwind-tables-the-default-for-all-archs.patch
|
|||
|
||||
# Not Upstream
|
||||
Patch15: 0001-clang-Don-t-install-static-libraries.patch
|
||||
Patch16: 0001-clang-Fix-spurious-test-failure.patch
|
||||
Patch17: 0001-Driver-Prefer-gcc-toolchains-with-libgcc_s.so-when-n.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
|
@ -139,7 +140,23 @@ BuildRequires: python3-devel
|
|||
|
||||
# Needed for %%multilib_fix_c_header
|
||||
BuildRequires: multilib-rpm-config
|
||||
BuildRequires: chrpath
|
||||
|
||||
# For origin certification
|
||||
BuildRequires: gnupg2
|
||||
|
||||
# scan-build uses these perl modules so they need to be installed in order
|
||||
# to run the tests.
|
||||
BuildRequires: perl(Digest::MD5)
|
||||
BuildRequires: perl(File::Copy)
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(Hash::Util)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(Term::ANSIColor)
|
||||
BuildRequires: perl(Text::ParseWords)
|
||||
BuildRequires: perl(Sys::Hostname)
|
||||
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
|
@ -149,7 +166,7 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|||
Requires: libstdc++-devel
|
||||
Requires: gcc-c++
|
||||
|
||||
Requires: emacs-filesystem
|
||||
Requires: llvm-libs >= %{version}-1
|
||||
|
||||
Provides: clang(major) = %{maj_ver}
|
||||
|
||||
|
@ -235,9 +252,13 @@ Requires: python3
|
|||
|
||||
|
||||
%prep
|
||||
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE3}' --data='%{SOURCE0}'
|
||||
|
||||
%if 0%{?compat_build}
|
||||
%autosetup -n %{clang_srcdir} -p1
|
||||
%else
|
||||
|
||||
%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE1}'
|
||||
%setup -T -q -b 1 -n %{clang_tools_srcdir}
|
||||
|
||||
|
||||
|
@ -251,6 +272,8 @@ pathfix.py -i %{__python3} -pn \
|
|||
%patch11 -p1 -b .libcxx-fix
|
||||
%patch13 -p2 -b .unwind-all
|
||||
%patch15 -p2 -b .no-install-static
|
||||
%patch16 -p2 -b .test-fix2
|
||||
%patch17 -p1 -b .check-gcc_s
|
||||
|
||||
mv ../%{clang_tools_srcdir} tools/extra
|
||||
|
||||
|
@ -263,16 +286,18 @@ pathfix.py -i %{__python3} -pn \
|
|||
|
||||
%build
|
||||
|
||||
# We run the builders out of memory on armv7 and i686 when LTO is enabled
|
||||
%ifarch %{arm} i686 riscv64
|
||||
%define _lto_cflags %{nil}
|
||||
%endif
|
||||
|
||||
%if 0%{?__isa_bits} == 64
|
||||
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@/64/g' test/lit.cfg.py
|
||||
%else
|
||||
sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
|
||||
%endif
|
||||
|
||||
mkdir -p _build
|
||||
cd _build
|
||||
|
||||
%ifarch s390 s390x %{arm} %ix86 ppc64le
|
||||
%ifarch s390 s390x %{arm} %ix86 ppc64le riscv64
|
||||
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
|
||||
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
||||
%endif
|
||||
|
@ -281,13 +306,13 @@ cd _build
|
|||
# rpath of libraries and binaries. llvm will skip the manual setting
|
||||
# if CAMKE_INSTALL_RPATH is set to a value, but cmake interprets this value
|
||||
# as nothing, so it sets the rpath to "" when installing.
|
||||
%cmake .. -G Ninja \
|
||||
%cmake -G Ninja \
|
||||
-DLLVM_PARALLEL_LINK_JOBS=1 \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DPYTHON_EXECUTABLE=%{__python3} \
|
||||
-DCMAKE_INSTALL_RPATH:BOOL=";" \
|
||||
%ifarch s390 s390x %{arm} %ix86 ppc64le
|
||||
%ifarch s390 s390x %{arm} %ix86 ppc64le riscv64
|
||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
||||
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
||||
%endif
|
||||
|
@ -327,10 +352,11 @@ cd _build
|
|||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCLANG_REPOSITORY_STRING="%{?fedora:Fedora}%{?rhel:Red Hat} %{version}-%{release}"
|
||||
|
||||
%ninja_build
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%ninja_install -C _build
|
||||
|
||||
%cmake_install
|
||||
|
||||
%if 0%{?compat_build}
|
||||
|
||||
|
@ -384,18 +410,29 @@ ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}
|
|||
# Fix permission
|
||||
chmod u-x %{buildroot}%{_mandir}/man1/scan-build.1*
|
||||
|
||||
# create a link to clang's resource directory that is "constant" across minor
|
||||
# version bumps
|
||||
# this is required for packages like ccls that hardcode the link to clang's
|
||||
# resource directory to not require rebuilds on minor version bumps
|
||||
# Fix for bugs like rhbz#1807574
|
||||
pushd %{buildroot}%{_libdir}/clang/
|
||||
ln -s %{version} %{maj_ver}
|
||||
popd
|
||||
|
||||
%endif
|
||||
|
||||
# Remove clang-tidy headers. We don't ship the libraries for these.
|
||||
rm -Rvf %{buildroot}%{_includedir}/clang-tidy/
|
||||
|
||||
%check
|
||||
%if !0%{?compat_build}
|
||||
# requires lit.py from LLVM utilities
|
||||
# FIXME: Fix failing ARM tests, s390x i686 and ppc64le tests
|
||||
# FIXME: Ignore test failures until rhbz#1715016 is fixed.
|
||||
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \
|
||||
%ifarch s390x i686 ppc64le %{arm}
|
||||
# FIXME: Fix failing ARM tests
|
||||
LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %cmake_build --target check-all || \
|
||||
%ifarch %{arm} riscv64
|
||||
:
|
||||
%else
|
||||
:
|
||||
false
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
@ -469,6 +506,57 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \
|
|||
|
||||
%endif
|
||||
%changelog
|
||||
* Thu Apr 15 2021 David Abdurachmanov <david.abdurachmanov@gmail.com> - 11.0.0-2.0.riscv64
|
||||
- Add support for riscv64
|
||||
|
||||
* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-2
|
||||
- Prevent ABI conflict with release candidate
|
||||
- Prefer gcc toolchains with libgcc_s
|
||||
|
||||
* Thu Oct 15 2020 sguelton@redhat.com - 11.0.0-1
|
||||
- Fix NVR
|
||||
|
||||
* Tue Oct 13 2020 sguelton@redhat.com - 11.0.0-0.3
|
||||
- llvm 11.0.0 - final release
|
||||
|
||||
* Tue Aug 11 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.2.rc1
|
||||
- Fix test failures
|
||||
|
||||
* Mon Aug 10 2020 Tom Stellard <tstellar@redhat.com> - 11.0.0-0.1.rc1
|
||||
- 11.0.0-rc1 Release
|
||||
|
||||
* Tue Aug 04 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-11
|
||||
- Remove Requires: emacs-filesystem
|
||||
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-10
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Jeff Law <law@redhat.com> - 10.0.0-9
|
||||
- Disable LTO on arm and i686
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 10.0.0-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Jul 20 2020 sguelton@redhat.com - 10.0.0-7
|
||||
- Update cmake macro usage
|
||||
- Finalize source verification
|
||||
|
||||
* Fri Jun 26 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-6
|
||||
- Add cet.h header
|
||||
|
||||
* Mon Jun 08 2020 Tom Stellard <tstellar@redhat.com> - 10.0.0-5
|
||||
- Accept multiple --config options
|
||||
|
||||
* Wed Jun 3 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 10.0.0-4
|
||||
- Add symlink to %%{_libdir}/clang/%%{maj_ver} for persistent access to the resource directory accross minor version bumps
|
||||
|
||||
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 10.0.0-3
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Tue May 19 2020 sguelton@redhat.com - 10.0.0-2
|
||||
- Backport ad7211df6f257e39da2e5a11b2456b4488f32a1e, see rhbz#1825593
|
||||
|
||||
* Thu Mar 26 2020 sguelton@redhat.com - 10.0.0-1
|
||||
- 10.0.0 final
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@ product_versions:
|
|||
- fedora-*
|
||||
decision_context: bodhi_update_push_testing
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: org.centos.prod.ci.pipeline.allpackages-build.package.test.functional.complete}
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_stable
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: org.centos.prod.ci.pipeline.allpackages-build.package.test.functional.complete}
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
|
|
8
sources
8
sources
|
@ -1,4 +1,4 @@
|
|||
SHA512 (clang-10.0.0.src.tar.xz.sig) = cb46d9c616de9ba6e11602269f93a003fc24951b75844d2d62ad7c435bd9ace0357bf396141b9a3e97034f617ad8f301a1a5556a3feb94b17647f8b76c0b6236
|
||||
SHA512 (clang-tools-extra-10.0.0.src.tar.xz.sig) = f0527b315ce9f2c86a19dabd462d0d466ac0843262f06d5f2b69333f77457ec9cb99f8ce9fdaa00048dfaec3de5613fb884c4259acd4a75463ba3c6714e35423
|
||||
SHA512 (clang-tools-extra-10.0.0.src.tar.xz) = 33b6019e64e9ac94bd7c000b77a4a927602a2705baa9b370e392a56b53fe09c8dad1ff7d583892729e9eb291440433ad7d71df768a96d927e4dbc1988fc01d99
|
||||
SHA512 (clang-10.0.0.src.tar.xz) = b1cccc13c46abcda3d689f51d486fa613ecec40c581c72d8b15951715100a2b8fb24370161601e6716cdba5a784337439e99ec2f0766f988e9cce92de6d775da
|
||||
SHA512 (clang-11.0.0.src.tar.xz) = 5874d99d05aa6ac0a7f5131a8522440ca1fc332a63cbfbf92f844ecb03e7f698a1839106fe6d1c8efaa839d03a4547cda5ab40f445d9923b99907d8cf1988276
|
||||
SHA512 (clang-11.0.0.src.tar.xz.sig) = 359cd91ddfa3894b00683ce51fc0e7035c6dd03a78d70f6bf3355714dfab2e85183a38c60ab318f3b439efb457c2759c74b58d5a5412fcacaedbb90e2492aa54
|
||||
SHA512 (clang-tools-extra-11.0.0.src.tar.xz) = 48d3ae04556f2c3102462053e40e228ddfffb7d19f20552faa18acea763d8d568cf65232cbb4ae03505dcb8b626eb3516b5c5004f5ca1c556129510872e28fc1
|
||||
SHA512 (clang-tools-extra-11.0.0.src.tar.xz.sig) = 37c5950a1c7a7a0a538441c76908d234a23bb06f8fe0b1451fbcfe35fab7fe7dc8c83bc8a23933e6e865d117ed7fd929529e85ef4e95e66aea7242040fface69
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
with_items:
|
||||
- libomp
|
||||
- libomp-devel
|
||||
- clang
|
||||
- clang-libs
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
|
|
Loading…
Reference in New Issue