Commit graph

845 commits

Author SHA1 Message Date
Jesus Checa Hidalgo
0b028e44fc Update build-gating plan to test all components
With the merge of all the packages into llvm now we need to test
all those with llvm, but the tests are still scattered across different
test repos. This commit adds discover steps to gather all the tests.
2024-11-21 14:55:34 +01:00
Nikita Popov
7ad7a4314c Include liblldb.so in bundle_compat_lib
This is needed by bpftrace now.
2024-11-21 14:55:34 +01:00
Tom Stellard
7f22f8a288 Add file entry for new clang-sycl-linker tool 2024-11-21 14:55:34 +01:00
Nikita Popov
76b3434767 Backport requires fixes from RHEL 10
Make the following changes:
 * Fix a number of `%{?isa}` to use `%{?_isa}` instead.
 * Add explicit lld-libs -> llvm-libs and lldb -> clang-libs
   dependencies (to satisfy rpminspect rpmdeps analysis).
 * Fix libomp-devel -> libomp dependency (it was accidentally
   using libomp-devel -> llvm instead).
 * Change all `= %{version}` requires to `= %{version}-%{release}`.
   We were mostly already doing this, but missed some places.
2024-11-21 14:55:34 +01:00
Jesus Checa Hidalgo
6fc421f466 Fix %postun scriptlet for llvm-devel when upgrading/downgrading
The scriptlet tried to run llvm-config-%{maj_ver} when upgrading or
downgrading to check if ${maj_ver} has changed. Since postun runs
after the package files have been uninstalled this will always fail
to run the command. We should run instead llvm-config%{exec_suffix},
which in the case of upgrades or downgrades will still be present,
installed from the new package.
2024-11-21 14:55:34 +01:00
Konrad Kleine
bb9a558674 Add pre-commit update to git blame ignore revs list 2024-11-21 14:55:34 +01:00
Konrad Kleine
cfa15b62ae [pre-commit]: pre-commit-hooks 5.0.0, tmt 1.38.0
After the update I ran: `pre-commit run -a`
2024-11-21 14:55:34 +01:00
Nikita Popov
6ab58dc689 Backport openmp fixes from RHEL 10
Backport patch from https://github.com/llvm/llvm-project/pull/111831
to fix openmp affinity tests on some brew ppc runners.

Also add one more openmp test to the ignore list for s390x.

Also add --time-tests to the lit args -- I had one instance where
openmp tests were running for 4h on s390x. If this happends again,
this should help determine which tests take so much time.
2024-11-21 14:55:34 +01:00
Timm Bäder
07d391355a Port a few changes from the llvm 18 compat packages
https://src.fedoraproject.org/rpms/lld18/pull-request/2
https://src.fedoraproject.org/rpms/clang18/pull-request/5
2024-11-21 14:55:34 +01:00
Nikita Popov
85ff72ec53 Skip openmp tests when builder uses 5-level page tables
A large number of openmp tests using tsan fail when we hit certain
machines on the rhel8-beefy channel in brew, because they appear
to the use 5-level page tables. This results in memory being
mapped in places where tsan does not expect it.
See https://github.com/llvm/llvm-project/issues/111492 for more
context.

Work around this by disabling the openmp tests that use tsan if
the cpu has the la57 feature.
2024-11-21 14:55:34 +01:00
Konrad Kleine
3ee21370a3 Remove %elif no which is unsupported on RHEL8 2024-11-21 14:55:34 +01:00
Jesus Checa Hidalgo
e4189b9861 Add exception for badfuncs inspection (rpminspect)
As compiler-rt libraries are now part of llvm package, we need to set
the exception we previously had on compiler-rt repo in the llvm repo.
2024-11-21 14:55:34 +01:00
Nikita Popov
30e990e77f Only disable rpath during installation
We currently disable rpath during both build and install. Instead,
we use LD_LIBRARY_PATH to allow the built clang to find the
libLLVM.so etc objects.

However, this does not work well if the system clang and the
clang being built have the same version. During the build, we
use both the system clang and the just-built clang, and they
need to use the system and just-built shared objects respectively.
However, use of LD_LIBRARY_PATH causes us to always use the
just-built objects as long as the versions match.

This is a problem in two scenarios: When building compat packages
for the current system LLVM version, we mix system clang with
compat libraries, which assume different paths. And when building
release candidates, a build using a previous rc of a newer rc
may use ABI-incompatible objects, because we don't version sonames
on rc versions.

Fix this by keeping the rpath during the build and only stripping
it on installation using the CMAKE_SKIP_INSTALL_RPATH option.
For manually installed binaries, we need to also manually strip
the rpath using chrpath.

This way system clang will use system libraries, and just-built
clang will use just-built libraries.
2024-11-21 14:55:34 +01:00
Konrad Kleine
8a0468504a Add "Cleanup CMake arguments" commit to blame ignore list 2024-11-21 14:55:34 +01:00
Konrad Kleine
614bc5ae9f Cleanup CMake arguments
Before we had a very long list of CMake arguments.

There was no room for annotation through comments. Now we have a new
global called `%cmake_config_args` that one can append to.

I've created these `#regions` to group the options for each sub-project:

```
  #region clang options
  #region compiler-rt options
  #region docs options
  #region lldb options
  #region llvm options
  #region openmp options
  #region test options
  #region misc options
```
2024-11-21 14:55:34 +01:00
Maxwell G
6590270474 Add 'Provides: clangd' to the clang-tools-extra subpackage 2024-11-21 14:55:34 +01:00
Nikita Popov
a76e355bad Add tasking/issue-69733.c to flaky test list
This spurious failure has been observed both on aarch64 in fedora
rawhide koji and on ppc64le in c10s koji.

I've filed an upstream issue to track this here:
https://github.com/llvm/llvm-project/issues/111140
2024-11-21 14:55:34 +01:00
Nikita Popov
baf115a7fb Add provides for libomp(major) and libomp-devel(major)
Forward-port from
https://src.fedoraproject.org/rpms/libomp18/pull-request/1.
2024-11-21 14:55:34 +01:00
Konrad Kleine
71f1e1178c Add #region #endregion comments
Each `#region XY` now has an `#endregion XY` instead of just
`#endregion`. This is optional and `XY` does not have to be repeated for
the "system" to work but it makes working with regions a bit more
convenient.

```
  #region globals...

  #region packages...

  #region prep...

  #region build...

  #region install...

  #region check...

  #region misc...

  #region files...

  #region changelog...
```
2024-11-21 14:55:34 +01:00
Konrad Kleine
6705db9611 Add changelog entry for 19.1.0 update 2024-11-21 14:55:34 +01:00
Konrad Kleine
28ab09b450 Copy over %changelog from b6b17b013e 2024-11-21 14:55:34 +01:00
Konrad Kleine
72968737bc Remove %llvm_snapshot_changelog_entry 2024-11-21 14:55:34 +01:00
Konrad Kleine
db57ee9a65 Add .git-blame-ignore-revs
When merging the `*.spec.inc` files into `llvm.spec` this became
necessary to preserve git history on llvm.spec.
2024-11-21 14:55:34 +01:00
Konrad Kleine
4618156485 Merge *.spec.inc files into llvm.spec
This commit should be listed in .git-blame-ignore-revs because it moved
the content of the files untouched into llvm.spec.
2024-11-21 14:55:34 +01:00
Nikita Popov
14dfc3149d Pass --with=snapshot_build in copr Makefile
We now no longer default to this in the spec file, so pass it
explicitly on copr.
2024-11-21 14:55:34 +01:00
Konrad Kleine
4466fbf9bc Disable snapshots by default
Since https://github.com/fedora-llvm-team/llvm-snapshots/pull/754 all
build chroots on Copr that are used for snapshot building will have
`--with=snapshot_build` set.

This addresses the concern [1] that Copr specific conditionals are
discouraged if not forbidden in spec files.

[1]: https://src.fedoraproject.org/rpms/llvm/pull-request/301#comment-221782
2024-11-21 14:55:34 +01:00
Nikita Popov
8e369591ab Rebase RHEL myst_parser patch 2024-11-21 14:55:34 +01:00
Nikita Popov
0f3a84b3d9 Remove clang-pseudo
Removed in https://github.com/llvm/llvm-project/pull/109154.
2024-11-21 14:55:34 +01:00
Nikita Popov
97dfdc4990 Remove clang-rename
Removed in https://github.com/llvm/llvm-project/pull/108988.
2024-11-21 14:55:34 +01:00
Nikita Popov
8ab3d3d63a Make rawhide compatible with snapshot builds 2024-11-21 14:55:34 +01:00
Jesus Checa Hidalgo
a9289293de Require rpmdeplint gating test only in rawhide
The test is run by CI only in rawhide. Requiring it in
all fedora branches will cause that all bodhi updates get
stuck due to the required test being absent.
2024-11-21 14:55:34 +01:00
Timm Bäder
4fb09cf1aa Update to 19.1.0 2024-09-19 07:58:16 +02:00
Timm Bäder
b7d0012532 Add parallel/bug631976.c to XFAIL
This tests spuriously fails on various arches.
2024-09-11 17:00:16 +02:00
Timm Bäder
59804f548d Merge branch 'big-merge-merge' into rawhide 2024-09-10 11:49:34 +02:00
Nikita Popov
8acb0895c6 Remove distribution cmake files
These files are unused, presumably left over from a previous
experiment.
2024-09-10 11:47:26 +02:00
Timm Bäder
53aa1f8750 Update to rc4 2024-09-05 08:51:24 +02:00
Nikita Popov
a4d77d580f Fix libscanbuild/libear location
https://github.com/llvm/llvm-project/pull/106612 moved these
from lib64 to lib, so look for them there.
2024-09-04 11:56:20 +02:00
Nikita Popov
ad9f519879 Add support for bundle_compat_lib 2024-09-03 08:20:41 +02:00
Nikita Popov
5218c9a2fb Add compiler-rt patch for RHEL 8 page sizes
RHEL 8 uses different page sizes, and we need to patch the CFI
implementation to use those.
2024-09-03 08:20:32 +02:00
Nikita Popov
3f9db5634a Disable LLVM_UNREACHABLE_OPTIMIZE
This was needed at some point to prevent an assertion failure,
but shouldn't be relevant anymore.
2024-09-03 08:19:57 +02:00
Nikita Popov
4866c39eb7 Remove unnecessary Requires on python3-six
python3.12-six is not available on RHEL 8, so this breaks installation
of the package.

The dependency is no longer needed since:
5ed6d99a83
2024-09-03 08:19:47 +02:00
Nikita Popov
05f7af9c0d Add python-lit, remove patch, change obsoletes version 2024-09-03 08:19:37 +02:00
Nikita Popov
a20000fbc7 Build against Python 3.12 on RHEL 8
The minimum Python version has been raised to 3.8 in LLVM 19.
2024-09-03 08:19:05 +02:00
Nikita Popov
823d6b3e92 Fix binary lists for compat builds
Explicitly list the lld binaries instead of packaging everything.

Also add missing versioned binaries for llvm-test.
2024-09-03 08:16:47 +02:00
Nikita Popov
7b14d8acaa Move manpage logic to the right place
This was not supposed to be inside a compat build conditional.
2024-09-03 08:16:40 +02:00
Nikita Popov
bf12d461f1 Remove static lldb library removal
It doesn't seem like this is necessary. The static libraries do
not get installed.
2024-09-03 08:16:35 +02:00
Nikita Popov
468da93677 Remove six removal
This is already gone upstream since:
5ed6d99a83
2024-09-03 08:16:25 +02:00
Nikita Popov
ee476f9583 Move post/postun out of install.spec
These start new sections and the following code is no longer
executed as part of %install.
2024-09-03 08:16:16 +02:00
Nikita Popov
082429fcd5 There is also an unprefixed llvm-config in the prefixed dir 2024-09-03 08:15:36 +02:00
Nikita Popov
4abb11c7c7 More manpage fixes 2024-09-03 08:15:28 +02:00