Commit graph

661 commits

Author SHA1 Message Date
Konrad Kleine
12770b36d5 Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
* upstream/rawhide:
  More verbose test output
2022-03-01 11:16:05 +01:00
Konrad Kleine
407fbaf169 Workaround linker error: memory exhausted
By disabling LTO for `%ix86` architecture.

This is the error:

```
/usr/bin/ld: /tmp/lto-llvm-a7a7f6.o: error adding symbols: memory
exhausted
```
2022-03-01 11:13:53 +01:00
Konrad Kleine
46cd1763db Revert "Added 0004-PATCH-clang-Revert-cmake-Don-t-install-plugins-used-.patch"
This reverts commit d2a9cee421.
2022-02-23 10:16:22 +01:00
sergesanspaille
1b6a55b39a More verbose test output 2022-02-17 08:07:56 +01:00
Konrad Kleine
d2a9cee421 Added 0004-PATCH-clang-Revert-cmake-Don-t-install-plugins-used-.patch
By reverting this we fix these errors:

    CMake Error at /usr/lib64/cmake/llvm/AddLLVM.cmake:1821 (add_dependencies):
      The dependency target "LLVMHello" of target "check-all" does not exist.
    Call Stack (most recent call first):
      CMakeLists.txt:578 (add_lit_target)

    CMake Error at /usr/lib64/cmake/llvm/AddLLVM.cmake:1821 (add_dependencies):
      The dependency target "LLVMHello" of target "check-clang-tools" does not
      exist.
    Call Stack (most recent call first):
      /usr/lib64/cmake/llvm/AddLLVM.cmake:1842 (add_lit_target)
      /builddir/build/BUILD/clang-tools-extra-15.0.0.src/test/CMakeLists.txt:110 (add_lit_testsuite)

    CMake Error at /usr/lib64/cmake/llvm/AddLLVM.cmake:1821 (add_dependencies):
      The dependency target "LLVMHello" of target "check-clang-extra-unit" does
      not exist.
    Call Stack (most recent call first):
      /usr/lib64/cmake/llvm/AddLLVM.cmake:1877 (add_lit_target)
      /builddir/build/BUILD/clang-tools-extra-15.0.0.src/test/CMakeLists.txt:118 (add_lit_testsuites)
2022-02-16 22:08:12 +01:00
Konrad Kleine
8169b59f2a Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
* upstream/rawhide:
  tests: remove unavailable requirements for s390x
2022-02-14 18:09:59 +01:00
Konrad Kleine
840d68fae2 Rebased patched on pagure/streamline 2022-02-14 18:08:51 +01:00
Konrad Kleine
2529f7f335 Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
* upstream/rawhide:
  tests: CRB in CentOS has different name
  Update to LLVM 13.0.1 final
  Switch to an unconditionally applied patch
  Revert "Set _package_note_linker on arm"
  Disable CrashRecoveryTest.DumpStackCleanup test on aarch64
  Fix rpm build warning/error: absolute symlink
  Set _package_note_linker on arm
  Update to LLVM 13.0.1rc3
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
  Remove no longer necessary patch
  Update to LLVM 13.0.1rc2
2022-02-11 16:47:39 +01:00
Jesus Checa Hidalgo
4c0fee8654 tests: remove unavailable requirements for s390x
lld and libomp are not shipped in s390x, hence causing provisioning
prepare step to fail as they are required in llvm-integration-testsuite.
The test should still run fine without those packages.
2022-02-09 18:22:40 +01:00
Miloš Prchlík
e6d1a04f09 tests: CRB in CentOS has different name 2022-02-03 14:33:55 +01:00
Nikita Popov
35d886f8dc Update to LLVM 13.0.1 final 2022-02-02 16:35:08 +01:00
Nikita Popov
0ff4ac26b1 Switch to an unconditionally applied patch
It looks like conditionally applying a patch on a single arch is
a bit tricky, so instead use an unconditional patch with an
ifndef __aarch64__ block.
2022-01-31 11:57:41 +01:00
Nikita Popov
ddad73a88a Revert "Set _package_note_linker on arm"
This reverts commit 6cee6aebe6.

This issue has now been addressed more generically on the
package-notes side by:
d26d18e6f4
2022-01-31 11:09:53 +01:00
Nikita Popov
410f5f1e9e Disable CrashRecoveryTest.DumpStackCleanup test on aarch64
It produces a non-reproducible failure on aarch64:
https://bugzilla.redhat.com/show_bug.cgi?id=2048440
2022-01-31 11:00:54 +01:00
Konrad Kleine
859dce41f5 Default to DWARF4 2022-01-29 16:55:20 +01:00
Konrad Kleine
5d9e2b66ed Fix rpm build warning/error: absolute symlink
I noticed that warnings and errors show up in the `RPM build errors:`
output. When I produced an error I did see this warning about absolute
symlink showing up:

```
absolute symlink: /usr/lib64/bfd-plugins/LLVMgold.so -> /usr/lib64/LLVMgold.so
```

The upstream RPM fix to log warnings and errors separately is here:

https://github.com/rpm-software-management/rpm/pull/1590

Thanks to @sergesanspaille for the help.
2022-01-28 21:04:29 +00:00
Konrad Kleine
ba84e45517 Fix rpm build warning/error: absolute symlink 2022-01-28 11:41:01 +01:00
Konrad Kleine
382bccbe41 Fix Macro expanded in comment on line 586: %{_libdir}/libLLVM-%{maj_ver} 2022-01-28 11:31:09 +01:00
Konrad Kleine
c0457cffb0 Fix RPM build
File listed twice:
/usr/lib64/libLLVM-14pre20220126.gba79295c48bb36.so
2022-01-26 17:11:44 +01:00
Nikita Popov
6cee6aebe6 Set _package_note_linker on arm
On ARM, the default linker is lld when using the clange toolchain,
so specify that as the _package_note_linker. This will use the
-T rather than -dT option for the package note script.

Ideally this would be handled in a more central location.
2022-01-25 16:35:13 +01:00
Nikita Popov
3c9de0ccf8 Update to LLVM 13.0.1rc3 2022-01-25 14:56:25 +01:00
Fedora Release Engineering
445e24e13d - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 17:57:39 +00:00
Konrad Kleine
142d5810cf Fixup 2022-01-13 11:19:26 +01:00
Konrad Kleine
d6bea67717 fix filename 2022-01-13 11:18:11 +01:00
Nikita Popov
097fdf9c79 Remove no longer necessary patch
This patch has been integrated in the rc2 release.
2022-01-13 04:16:17 -05:00
Nikita Popov
cfd5d23c9d Update to LLVM 13.0.1rc2 2022-01-13 04:08:32 -05:00
Konrad Kleine
10a4c506e0 Only package cmake-devel when building a snapshot package and when NOT building in compat mode 2022-01-12 13:38:40 +01:00
Konrad Kleine
7e2dca4500 Remove patch for https://reviews.llvm.org/D108332 which is already upstream 2022-01-12 13:29:01 +01:00
Konrad Kleine
c55c21ba5c Use llvm_snapshot_version_suffix 2022-01-12 13:29:01 +01:00
Konrad Kleine
6256376e3f Disable LTO for anything older than Fedora 34 2022-01-12 13:29:01 +01:00
Konrad Kleine
baf25538e5 Fix RPM build errors: File not found: /builddir/build/BUILDROOT/llvm-14.0.0~pre20211103.g1febf42f03f664-1.fc34.x86_64/usr/lib64/libLLVM-14.so 2022-01-12 13:29:01 +01:00
Konrad Kleine
afd08b6916 Rebased with new patches from rawhide that weren't yet in the streamline branch 2022-01-12 13:29:00 +01:00
Konrad Kleine
a4c32d7d8d Added back patch file 2022-01-12 13:29:00 +01:00
Konrad Kleine
0241c643db Fix RPM build errors: File not found: /builddir/build/BUILDROOT/llvm-14.0.0~pre20211103.g1febf42f03f664-1.fc34.x86_64/usr/lib64/libLLVM-14.so 2022-01-12 13:29:00 +01:00
Konrad Kleine
7471cd75e8 Prepare for snapshot build
Increase verbosity for %autosetup
Modified patch so it cleanly applies
Renaming man pages is no longer needed

Fix this error:

 mv /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/clang-tblgen.1 /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/lldb-tblgen.1 /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/llvm-tblgen.1 /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/mlir-tblgen.1 /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/tblgen.1 /builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/llvm-tblgen.1
mv: target '/builddir/build/BUILDROOT/llvm-13.0.0~pre20210427.gd122d80b3d1c3f-1.fc35.x86_64/usr/share/man/man1/llvm-tblgen.1' is not a directory

Add entry for changelog when building a snapshot
Reset 0001-PATCH-llvm-Make-source-interleave-prefix-test-case-c.patch because it is not applicable to LLVM 12
Moved BuildRequires: python3-psutil out in PR
See https://src.fedoraproject.org/rpms/llvm/pull-request/91
Make download path for snapshot sources-easily adjustable
Added cmake subpackage with shared cmake files
Install cmake files into /usr/lib64/cmake/llvm with the llvm-devel pkg
2022-01-12 13:24:55 +01:00
Miloš Prchlík
f97fd4bb29 tests: add extra repositories to allow installation of ninja/libstdc++ 2022-01-11 16:01:30 +00:00
Nikita Popov
ab84d46730 Backport 46c947af7 reproducibility fix 2022-01-11 04:07:54 -05:00
Nikita Popov
49fba6acf2 Disable LTO build on s390x
Fails with pcre limit error otherwise
2022-01-10 15:41:41 -05:00
Nikita Popov
236248c006 Upstream 13.0.1 rc1 release 2022-01-10 08:23:04 -05:00
Miro Hrončok
3ba9f5e445 Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 2022-01-08 20:32:26 +01:00
Miloš Prchlík
978f4952dd tests: add support for SCL-ized LLVM 13 (llvm-toolset-13.0) 2021-12-13 12:29:21 +01:00
Milos Prchlik
c3456fa4ca tests: unquote use of CMAKE_LIBCXX to avoid empty yet existing cmake argument 2021-11-25 14:56:57 +01:00
Milos Prchlik
9e0411bb7b tests: use adjust to handle libcxx requirement in Fedora and RHEL 2021-11-24 14:07:30 +01:00
Tom Stellard
1bdf054407 Enable lto on s390x and arm 2021-11-19 11:22:09 +00:00
Milos Prchlik
6564e5278d tests: rename default plan to build-gating to better eflect its current purpose
My expectation is that in the future, more tests will land in this git,
and not all of them would be useful in gating time. AFAIK, CI systems do
run everything they can, therefore adding `when` to control when the
plan is executed - `is not defined` bit should allow anyone to run it
manually, while the rest of the condition should limit its presence to
gating events.
2021-11-16 16:26:59 +01:00
Konrad Kleine
92512bd38e Added link to docs about 'toolchain' macro 2021-11-09 14:56:37 +01:00
Timm Bäder
3ac3f3b803 Add a few rpmlint exceptions 2021-11-03 14:12:06 +00:00
Milos Prchlik
b7f7ff0fcb tests: use python3-lit rather than python-lit
Easier for downstream to adapt, one less difference.
2021-11-03 08:33:46 +01:00
Tom Stellard
dd5bd14efc Build with Thin LTO
Full LTO is too memory intensive for most architectures, so use Thin LTO
instead.
2021-10-26 03:57:15 +00:00
Tom Stellard
6b3a1ab316 Build with clang 2021-10-21 23:32:02 +00:00