Commit Graph

537 Commits

Author SHA1 Message Date
Tom Stellard
8a52e6cd00 18.1.3 Release 2024-04-13 04:06:14 +00:00
Yaakov Selkowitz
8bad2506c6 Fix dependency paths
Installation path macros cannot be used to reference the location of
dependencies.  In the case of flatpak builds, this breaks because
alternatives is part of the runtime and python3-sphinx is from the
buildroot and both therefore remains in /usr, even as llvmNN is built
in /app.
2024-03-25 14:31:26 -04:00
Zhengyu He
8182dd36c6 Add support for riscv64 2024-03-22 17:47:12 -03:00
Tom Stellard
cbbbf750ff 18.1.2 Release 2024-03-21 17:47:06 +00:00
Tom Stellard
987674b0c0 18.1.1 Release 2024-03-11 15:43:18 +00:00
Tulio Magno Quites Machado Filho
1858d41527 Force ldconfig execution in compat packages
Fixes rhbz#2001328.
2024-03-04 10:29:16 -03:00
Tom Stellard
60c239e0f5 18.1.0-rc4 Release 2024-02-28 01:18:27 +00:00
Tom Stellard
02a885b6b8 LLVM 18.1.0-rc3
This also includes a squash merge of the upstream-snapshot branch with
HEAD 19db1ff8da3613e93a5ef60da7a397db99bef082.
2024-02-21 22:13:58 +00:00
Tom Stellard
d5ddbea65f Include the same content in the compat packages as we do in the main package
https://fedoraproject.org/wiki/Changes/LLVM-18
2024-02-21 06:20:00 +00:00
Nikita Popov
39a5a55967 Fix crash with -fzero-call-used-regs (rhbz#2262260) 2024-02-01 14:42:14 +01:00
Nikita Popov
2e67d99866 Only use cet-report=error on x86_64
i386 CET support has been removed from glibc. Only check it for
x86_64.
2024-01-29 09:41:21 +01:00
Fedora Release Engineering
a68f9de029 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 04:30:11 +00:00
Fedora Release Engineering
689cb83fb1 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 06:05:17 +00:00
Tulio Magno Quites Machado Filho
43a62dabf0 Fix rhbz #2248872
Ensure the versioned llvm-config alternative gets removed during major
upgrades of the non-compat package.

Also add code that removes the versioned llvm-config alternatives of
the previous 3 LLVM versions. These versions didn't remove their own
versioned llvm-config alternative, leading to broken output, e.g.
llvm-config-16 points to llvm-config-64 from LLVM 17.
2023-11-30 13:43:29 -03:00
Tulio Magno Quites Machado Filho
dae42895a5 Update to LLVM 17.0.6 2023-11-28 16:01:06 -03:00
Tulio Magno Quites Machado Filho
ceb6b17869 Revert "[packit] 17.0.5 upstream release"
This reverts commit fe235bbf25.
It was pushed by mistake.
2023-11-24 14:14:14 -03:00
Tulio Magno Quites Machado Filho
fe235bbf25 [packit] 17.0.5 upstream release
Upstream tag: llvmorg-17.0.5
Upstream commit: 98bfdac5
2023-11-24 14:10:14 -03:00
Nikita Popov
4be4b92cb1 Remove 32-bit arm handling 2023-11-24 09:12:29 +00:00
Nikita Popov
ec966be7c4 Remove redundant _lto_cflags define
ThinLTO is the default nowadays.
2023-11-24 09:12:29 +00:00
Tulio Magno Quites Machado Filho
5e17ea6380 Update to LLVM 17.0.5 2023-11-14 15:49:46 -03:00
Tulio Magno Quites Machado Filho
4689129188 Update to LLVM 17.0.4 2023-10-31 18:00:16 -03:00
Yaakov Selkowitz
1b6d3f3740 Fix ld.so.conf.d path
This location is hard-coded by glibc and is not prefix-variable.  This
fixes flatpak app RPM builds of clang15 and packages dependent thereon
(e.g. openshadinglanguage).  Flatpaks using these packages will still
need to define LD_LIBRARY_PATH.
2023-10-19 09:13:26 -03:00
Tulio Magno Quites Machado Filho
5197c0ae27 Update to LLVM 17.0.3 2023-10-17 14:42:39 -03:00
Tulio Magno Quites Machado Filho
83e53f80ee Update to LLVM 17.0.2 2023-10-03 18:15:50 -03:00
Tulio Magno Quites Machado Filho
1e5009d192 Update to LLVM 17.0.1 2023-09-22 15:40:38 -03:00
Nikita Popov
d71a6d614a Unset LLVM_VERSION_SUFFIX for compat builds as well
This is needed if the compat build is produced for an rc version,
which I'm currently trying to do to fix snapshot builds.

I don't see a reason why this bit should be omitted for snapshot
builds.
2023-09-14 15:04:17 +02:00
Nikita Popov
2b59cd5563 Re-enable ppc64 gold test
https://bugzilla.redhat.com/show_bug.cgi?id=2234396 has been fixed.
2023-09-14 07:50:09 +02:00
Tulio Magno Quites Machado Filho
d007916e9b Update to LLVM 17.0.0 RC4 2023-09-09 09:08:09 -03:00
Tulio Magno Quites Machado Filho
de70be4496 Update to LLVM 17.0.0 RC3 2023-08-24 07:26:59 -03:00
Tulio Magno Quites Machado Filho
bf19c70bc0 Temporarily disable a failing test on ppc64le
ld.gold is crashing with an internal error.
Disable this test temporarily while the issue is being investigated and
fixed.
2023-08-24 06:42:02 -03:00
Tulio Magno Quites Machado Filho
b7b35dbbdc Update to LLVM 17.0.0 RC2 2023-08-23 07:30:44 -03:00
Tulio Magno Quites Machado Filho
c7a62f31ea Disable LTO on i686
We're reaching a memory limit while linking libLLVM.so .
2023-08-17 15:18:16 -03:00
Tulio Magno Quites Machado Filho
15eacb3329 Apply rhel-specific patch on snapshot builds
Despite not testing on snapshot builds on RHEL, it's a good practice to
have the code ready for that.
2023-08-16 13:55:23 -03:00
Tulio Magno Quites Machado Filho
cb1bdb3739 Re-add patch removed by mistake
Fixes: d5b39fd081 ("Update to LLVM 17.0.0 RC1")
2023-08-14 18:40:54 -03:00
Tulio Magno Quites Machado Filho
2ec945401e Enable LLVM_UNREACHABLE_OPTIMIZE temporarily
This has been causing issues when building clang.  Enable it temporarily
until the root cause is found and fixed.
2023-08-09 11:54:46 -03:00
Tulio Magno Quites Machado Filho
d5b39fd081 Update to LLVM 17.0.0 RC1
This is also a squashed merge commit from upstream-snapshot (commit ID
340b9e8ea37dcbca) into rawhide whose most important commits from
upstream-snapshot are:

Konrad Kleine (50):
      Prepare for snapshot build
      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
      Added back patch file
      Rebased with new patches from rawhide that weren't yet in the streamline branch
      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
      Disable LTO for anything older than Fedora 34
      Use llvm_snapshot_version_suffix
      Remove patch for https://reviews.llvm.org/D108332 which is already upstream
      Only package cmake-devel when building a snapshot package and when NOT building in compat mode
      Fix RPM build
      Fix Macro expanded in comment on line 586: %{_libdir}/libLLVM-%{maj_ver}
      Fix rpm build warning/error: absolute symlink
      Default to DWARF4
      Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
      Rebased patched on pagure/streamline
      Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
      Added 0004-PATCH-clang-Revert-cmake-Don-t-install-plugins-used-.patch
      Revert "Added 0004-PATCH-clang-Revert-cmake-Don-t-install-plugins-used-.patch"
      Workaround linker error: memory exhausted
      Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
      Added pgo_instrumented_build cmake args
      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
      Move bcond in cmake down in case we want to override stuff
      Make llvm use the llvm-snapshot-builder as well
      Use %{llvm_snapshot_extra_source_tags} macro
      Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
      Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
      Patch renewal from rebased llvm-project pagure/streamline branch
      Try to lock llvm* and clang* packages so that we don't install LLVM from a previous copr build
      Revert "Try to lock llvm* and clang* packages so that we don't install LLVM from a previous copr build"
      Rebase onto pagure/main
      Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
      use llvm+cmake tarballs instead of big llvm-project and close unclosed %if
      Fixup: clang->cmake
      Move globals down for them to be expanded correctly
      Fix merge issue with patch
      Test without some patches
      Compiles and installs again
      Adapt to standalone third-party dir
      bring back files to llvm-googletest package
      fixing path to unittest
      Manually add https://reviews.llvm.org/D137890
      Add missing patch files
      Apply patchfiles independently for llvm and third-party dir
      List third-party gmock/gtest files in install
      Merge remote-tracking branch 'origin/rawhide' into upstream-snapshot
      Re-enable patches for gtest
      Disable LTO to speed up builds
      Added libLLVMTestingAnnotations.a to googletest subpackage
      Merge remote-tracking branch 'origin/rawhide' into upstream-snapshot

Nikita Popov (1):
      Sync with rawhide

Tom Stellard (13):
      Add patch to fix some lit test failures
      Revert "Add patch to fix some lit test failures"
      Add a patch from main branch to fix some lit tests
      Revert "Add a patch from main branch to fix some lit tests"
      Remove patch applied upstream
      Remove another upstreamed patch
      Add llvm-googletest dependency to llvm-devel
      Add JITLink patch to fix clang failures on aarch64 with libgcc-13
      Revert "Add JITLink patch to fix clang failures on aarch64 with libgcc-13"
      Fix a test failure on s390x
      Revert "Fix a test failure on s390x"
      copr: Install llvm-snapshot-builder from the local COPR project
      Sync with rawhide

sergesanspaille (1):
      Rebase downstream patches
2023-08-09 11:54:07 -03:00
Nikita Popov
5e22fb4ab6 Don't drop LDFLAGS for shared libraries
From the corresponding c9s fix:
b758d604f4
2023-08-08 16:51:16 +02:00
Tulio Magno Quites Machado Filho
d180d56a78 Remove pkg_bindir and pkg_libdir
Replace them witn install_bindir and install_libdir respectively.
2023-08-03 19:30:40 +00:00
Tulio Magno Quites Machado Filho
b5d6c1ccf0 Simplify a few %files entries
This is also deduplicating a small list of %files entries by replacing
the variable used to build their path.
2023-08-03 19:30:40 +00:00
Nikita Popov
2abc096557 Use build_cflags when setting ASMFLAGS
While the current implementation works on Fedora, on c9s/rhel
the CFLAGS haven't been set at this point yet, so we are missing
the -fcfprotection flag in ASMFLAGS. Using build_cflags avoids
this ordering problem.

Additionally, add -Wl,-z,cet-report=error to the libLLVM.so linker
flags, so we can detect such issues earlier in the future.
2023-08-03 19:29:38 +00:00
Tulio Magno Quites Machado Filho
dd44fc12ea Fix rhbz #2224885 2023-07-31 17:19:01 -03:00
Fedora Release Engineering
f9f0fb07de Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 12:55:16 +00:00
Tulio Magno Quites Machado Filho
f9133b98bb Bump the release version 2023-07-10 18:38:50 -03:00
Nikita Popov
bdb4929ebd Use LLVM_UNITTEST_LINK_FLAGS to reduce link times for unit tests
We currently spend a lot of time performing LTO on unit tests,
which is largely wasted effort. We can't disable LTO entirely,
because we don't have fat objects, but at least we can disable
post-link optimization.

For my local build, this reduces time in %build by about 30%.
2023-07-07 07:20:18 +00:00
Tulio Magno Quites Machado Filho
cd99de7d35 Improve clang assembler error messages on s390x (rhbz#2216906)
Backport a patch from LLVM 17 that improves error messages from the
Clang assembler on s390x.

Also, disable LLVM_UNREACHABLE_OPTIMIZE in order to improve error
messages when llvm_unreachable() is called. There are many cases where
llvm_unreachable() is used as a error reporting function instead of the
recommended replacement for assert().

Fixes rhbz#2216906.
2023-07-03 15:09:05 -03:00
Tulio Magno Quites Machado Filho
61b03e8d59 Update to LLVM 16.0.6 2023-06-15 07:41:00 -03:00
Nikita Popov
236eac9d27 Split off llvm-cmake-utils package 2023-06-15 08:58:02 +02:00
Tulio Magno Quites Machado Filho
ba5f101283 Update to LLVM 16.0.5 2023-06-05 14:26:35 -03:00
Yaakov Selkowitz
bcf7ece4a8 Avoid recommonmark dependency in RHEL builds
python-recommonmark and its dependencies are unwanted in RHEL.
2023-05-22 11:57:51 -04:00
Tulio Magno Quites Machado Filho
85d29458f2 Update to LLVM 16.0.4 2023-05-18 21:54:20 -03:00