Commit graph

573 commits

Author SHA1 Message Date
Konrad Kleine
3aef850832 Added libLLVMTestingAnnotations.a to googletest subpackage
See 3432f4bf86
2023-02-01 18:49:54 -03:00
Konrad Kleine
c2901f71cb List third-party gmock/gtest files in install 2023-02-01 18:48:11 -03:00
Konrad Kleine
87fcbdde75 Manually add https://reviews.llvm.org/D137890 2023-02-01 18:48:11 -03:00
Konrad Kleine
9812a7f1ae bring back files to llvm-googletest package 2023-02-01 18:48:11 -03:00
Konrad Kleine
c31ffc7ed1 Adapt to standalone third-party dir 2023-02-01 18:48:11 -03:00
Konrad Kleine
d254566973 Added libLLVMTestingAnnotations.a to googletest subpackage
See 3432f4bf86
2023-01-24 19:04:55 +00:00
Konrad Kleine
225c9e3c44 Disable LTO to speed up builds 2023-01-20 11:17:52 +00:00
Konrad Kleine
696e9bc779 Re-enable patches for gtest 2023-01-19 21:52:01 +00:00
Tulio Magno Quites Machado Filho
b173c6109a Adopt SPDX identifiers in license
Also make it clear that Apache 2.0 with LLVM exceptions was adopted in
2019.
2023-01-19 16:45:58 -03:00
Fedora Release Engineering
c92743ab8a Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 18:09:55 +00:00
Konrad Kleine
680d93692f Merge remote-tracking branch 'origin/rawhide' into upstream-snapshot
By Nikita Popov (5) and others
Via Nikita Popov
* origin/rawhide:
  Update to LLVM 15.0.7
  Omit frame pointers when building
  Remove workaround for rbhz#2048440
  Enable LTO builds on s390x again
  Update to LLVM 15.0.6
  Install cmake modules for compat builds
  Copy CFLAGS to ASMFLAGs to enable CET in asm files
  Update to LLVM 15.0.4
2023-01-18 20:31:44 +00:00
Nikita Popov
a20957b5eb Update to LLVM 15.0.7 2023-01-12 10:31:52 +01:00
Tom Stellard
f543860321 Omit frame pointers when building 2023-01-09 20:33:24 +00:00
Nikita Popov
1862c052da Remove workaround for rbhz#2048440
It looks like this test passes now.
2022-12-19 16:35:33 +01:00
Timm Bäder
1d9fedd416 Enable LTO builds on s390x again
The PCRE limit problem has been fixed in redhat-rpm-config in
25ea080503
2022-12-05 17:07:40 +01:00
Nikita Popov
2fa672b23f Update to LLVM 15.0.6 2022-12-05 08:56:31 +01:00
Konrad Kleine
e9e639b7e8 List third-party gmock/gtest files in install 2022-11-17 15:31:25 +00:00
Konrad Kleine
10c161bb6d Apply patchfiles independently for llvm and third-party dir 2022-11-17 14:39:40 +00:00
Konrad Kleine
793ec2951e Manually add https://reviews.llvm.org/D137890 2022-11-17 09:10:57 +00:00
Jan200101
920a8b1b56 Install cmake modules for compat builds 2022-11-15 09:40:45 +00:00
Konrad Kleine
c330fee18f fixing path to unittest 2022-11-11 13:07:30 +00:00
Konrad Kleine
af2f73206e bring back files to llvm-googletest package 2022-11-11 10:20:07 +00:00
Nikita Popov
8e1f53d786 Copy CFLAGS to ASMFLAGs to enable CET in asm files 2022-11-11 10:23:47 +01:00
Konrad Kleine
1fc6fa44e3 Adapt to standalone third-party dir 2022-11-10 22:13:10 +01:00
Konrad Kleine
6ed381f975 Compiles and installs again 2022-11-10 11:17:39 +01:00
Nikita Popov
3c595192e2 Update to LLVM 15.0.4 2022-11-03 12:56:08 +01:00
Konrad Kleine
e00c4334cf Test without some patches 2022-10-06 21:43:33 +02:00
Konrad Kleine
cce72a0142 Move globals down for them to be expanded correctly 2022-10-06 09:25:44 +02:00
Konrad Kleine
6a804f55b6 Fixup: clang->cmake 2022-10-05 23:28:16 +02:00
Konrad Kleine
a49b6d061b use llvm+cmake tarballs instead of big llvm-project and close unclosed %if 2022-10-05 23:21:27 +02:00
Konrad Kleine
758ea3674d Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
* upstream/rawhide:
  Remove abi_revision handling
  Drop GetHostTriple export again
  Export GetHostTriple.cmake
  Migrate tests to tests/llvm repo
  Fix compat build symlinks
  Update to LLVM 15.0.0
2022-10-05 22:16:53 +02:00
Nikita Popov
0c4aa4a13c Remove abi_revision handling
We now longer ship rcs outside of copr, so this is no needed anymore.
2022-09-29 10:47:28 +00:00
Nikita Popov
6c4af9abec Drop GetHostTriple export again
This doesn't work by itself due to the config.guess dependency,
and I'm not longer sure this is the right approach. The runtimes
build should really be getting this from the exported
LLVM_HOST_TRIPLE variable.
2022-09-29 10:20:54 +02:00
Nikita Popov
aec99db3ed Export GetHostTriple.cmake 2022-09-27 12:57:56 +02:00
Nikita Popov
5f0a6388b3 Fix compat build symlinks
Backport from llvm14 package.
2022-09-13 18:04:18 +02:00
Konrad Kleine
e8dead8794 Patch renewal from rebased llvm-project pagure/streamline branch 2022-09-06 11:55:02 +02:00
Konrad Kleine
3e97332674 Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot 2022-09-06 11:31:35 +02:00
Nikita Popov
81e2995efc Update to LLVM 15.0.0 2022-09-06 10:01:30 +02:00
Fedora Release Engineering
07f677a874 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 19:44:43 +00:00
Miro Hrončok
dc7156ce5a Don't add -P to Python shebangs
Opt-out from https://fedoraproject.org/wiki/Changes/PythonSafePath

The executable Python scripts in /usr/share/opt-viewer/ import each other.
2022-07-19 12:49:30 +02:00
Konrad Kleine
b0495a385a Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
* upstream/rawhide:
  Release bump for new redhat-rpm-config
  14.0.5 release
  14.0.3 Release
  tests: do not use ninja-build for integration testsuite
  tests: disable lld in llvm-integration-testsuite when arch is ppc64
  Remove llvm-cmake-devel package
  Remove some unused variables
  tests: add llvm-toolset-14.0 requirements to tests and plans
  Upload new sources
  Update to 14.0.0
  tests: fix libLLVM size threshold
  tests: ninja is not ninja on RHEL7/ppc64/Epel, but cmake knows
  tests: bump libLLVM size threshold
2022-07-15 08:37:04 +02:00
Tom Stellard
8df0740450 Revert "Add a patch from main branch to fix some lit tests"
This reverts commit 3debb1bf64.
2022-06-29 01:49:44 +00:00
Tom Stellard
3debb1bf64 Add a patch from main branch to fix some lit tests 2022-06-28 19:36:28 +00:00
Tom Stellard
222bfdbbfb Revert "Add patch to fix some lit test failures"
This reverts commit 941133aae9.

This patch is not present in the nightly tarballs we use for snapshot
builds.
2022-06-28 17:17:24 +00:00
Tom Stellard
941133aae9 Add patch to fix some lit test failures 2022-06-27 23:51:05 +00:00
Timm Bäder
2e920ed4cb Release bump for new redhat-rpm-config 2022-06-17 08:38:20 +02:00
Timm Bäder
af1b169c7b 14.0.5 release 2022-06-13 16:13:21 +02:00
Konrad Kleine
92a868cdda Use %{llvm_snapshot_extra_source_tags} macro 2022-06-13 09:58:17 +02:00
Konrad Kleine
40b835b384 Make llvm use the llvm-snapshot-builder as well 2022-06-13 09:22:45 +02:00
Konrad Kleine
731a65703c Move bcond in cmake down in case we want to override stuff 2022-05-20 13:03:01 +02:00
Konrad Kleine
4da1592fc5 Fix /usr/bin/ld: cannot find /usr/lib64/clang/13.0.0/lib/linux/libclang_rt.profile-x86_64.a: No such file or directory 2022-05-19 22:33:57 +02:00
Konrad Kleine
bb9889e4e5 Fix if 2022-05-19 21:52:13 +02:00
Tom Stellard
4e05585009 14.0.3 Release 2022-05-19 15:21:52 +00:00
Konrad Kleine
9bb1431347 Added pgo_instrumented_build cmake args 2022-05-19 17:17:03 +02:00
Timm Bäder
0600540ab9 Remove llvm-cmake-devel package 2022-04-29 08:09:30 +02:00
Timm Bäder
33f597aab6 Remove some unused variables 2022-04-27 12:04:55 +02:00
Timm Bäder
314c08660d Update to 14.0.0 2022-03-29 07:32:31 +00:00
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
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
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
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
Tom Stellard
1bdf054407 Enable lto on s390x and arm 2021-11-19 11:22:09 +00: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
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
Tom Stellard
e1056b533a Fix default triple on arm
clang and gcc disagree about what gnueabi means, so we need to make
sure to specify gnueabihf as the environment.
2021-10-08 03:25:22 +00:00
Tom Stellard
84398d5b48 Set default triple 2021-10-06 05:54:41 +00:00