Commit Graph

422 Commits

Author SHA1 Message Date
David Abdurachmanov a361f2fb59
Merge remote-tracking branch 'up/f40' into f40-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-05-12 12:59:24 +03:00
Tom Stellard a72944008b Remove %%{_target_platform}.cfg from files
This file was renamed in 882487a738.
2024-04-20 01:00:35 +00:00
Tulio Magno Quites Machado Filho 882487a738 Split config files
flang also uses the file /etc/clang/<triple>.cfg. That means all
parameters in this file must be supported by clang, clang++ and flang.
However, --gcc-triple is not supported by flang and must stay specific
to clang and clang++.
2024-04-18 14:58:09 -03:00
Tom Stellard 5a3b460014 18.1.3 Release 2024-04-16 22:28:21 +00:00
Tom Stellard 1382930328 Add a versioned clang_resource_dir macro
This will allow packages that require a specific version of clang
to use standard macros when referencing the clang resource directory.
2024-04-12 14:06:37 +00:00
Tulio Magno Quites Machado Filho 3ff60a03a9 Rename clang.cfg to <triple>.cfg
This will let clang++ to have the same behavior as clang.
The file is being distributed in the libs subpackage as it was already
happening for the Fedora 38 case.
2024-04-10 20:00:47 -03:00
Tom Stellard ffe2656114 Fix Provides for compat-packages
The provides should use the main package name so that the compat
packages and main package can be used interchangeably.
2024-04-04 00:58:08 +00:00
David Abdurachmanov 30ef65dd69
Fix typo
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-28 13:41:37 +02:00
David Abdurachmanov 530d8ffdcc
Allow vendor (redhat) triplet for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-28 13:26:10 +02:00
David Abdurachmanov 9912950ca3
Disable tests on riscv64
[..]
********************
Failed Tests (2):
  Clang :: Modules/embed-files-compressed.cpp
  Clang :: OpenMP/declare_variant_device_isa_codegen_1.c
Testing Time: 426.77s
Total Discovered Tests: 38294
  Skipped          :    37 (0.10%)
  Unsupported      :   176 (0.46%)
  Passed           : 38051 (99.37%)
  Expectedly Failed:    28 (0.07%)
  Failed           :     2 (0.01%)
[..]

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-28 10:06:00 +02:00
David Abdurachmanov f5729515c2
Add support for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-27 14:17:46 +02:00
Tulio Magno Quites Machado Filho 935c2e1501 Re-add clang.cfg
We still need this file in Fedora 38 compat packages, which is still
used during the daily snapshots.
2024-03-25 15:38:52 -03:00
Tom Stellard adf7ef3db9 18.1.2 Release 2024-03-22 04:03:12 +00:00
Nikita Popov 39e5f525f9 Remove unused patches 2024-03-13 09:06:53 +01:00
Tom Stellard f086ac5851 18.1.1 Release 2024-03-11 22:24:19 +00:00
Tom Stellard 04969fec42 Remove some LTO workarounds
Most of these are no longer needed now that clang 18 is in the buildroot.
However, we still need to workaround a failure on aarch64.
2024-03-11 13:09:49 +00:00
Tom Stellard b955ce0c5e Fix gcc triple on i686 2024-02-28 20:13:38 +00:00
Tom Stellard 3d9fc8eb23 18.0.1-rc4 Release 2024-02-28 14:10:28 +00:00
Tom Stellard 152d45a205 Squash merge from upstream-snapshot 2024-02-23 02:24:38 +00:00
Tom Stellard bec3936967 Include the same content in the compat packages as we do in the main package
https://fedoraproject.org/wiki/Changes/LLVM-18
2024-02-22 19:20:31 +00:00
Yaakov Selkowitz 7957a7652b Use RHEL LTO flags in ELN builds
These constraints are needed primarily for RHEL and CS builders.
2024-02-07 07:11:45 -05:00
Kefu Chai b2bda922a0 Backport a patch from LLVM trunk
Since LLVM 17.0.6 is the last release of the 17.x branch. the fix backported
by this change helps to address a critical build failure with libstdc++
shipped with GCC-13, so we need to include it in the clang packages.

the include patch was updated to resolve the conflicts when being
applied to the llvmorg-17.0.6 tag.

the fix has been tested after applying it on top of upstream's
llvmorg-17.0.6 tag.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2024-01-27 12:41:43 +08:00
Fedora Release Engineering 63afbe0b39 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-23 01:43:49 +00:00
Nikita Popov f2215348e7 Fix build with GCC 14 on ARM 2024-01-22 09:29:47 +01:00
Fedora Release Engineering cdad081cf0 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 15:31:25 +00:00
Jeremy Newton 46db6738a3 Add clang-devel(major) provides
When building ROCm components, we need to pull in specific llvm and
clang devel package versions. This add clang-devel(major) in the style
of llvm-devel(major), as they can be used as a build requires.
2023-12-18 16:18:11 -05:00
Nikita Popov 88b9baf112 Remove 32-bit arm handling, which is no longer supported 2023-11-29 13:50:23 +00:00
Nikita Popov 63b3c28c34 Remove redundant _lto_cflags define
ThinLTO is the default.
2023-11-29 13:50:23 +00:00
Nikita Popov 6f21bc0e93 Remove FEDORA_LLVM_LIB_SUFFIX handling
We used to carry a patch for the lit config. We don't do this
anymore so this is dead code.
2023-11-29 13:50:23 +00:00
Tulio Magno Quites Machado Filho d4938d5101 Update to LLVM 17.0.6 2023-11-29 05:00:43 -03:00
Tulio Magno Quites Machado Filho 627ccea788 Update to LLVM 17.0.5 2023-11-16 05:06:31 -03:00
Tulio Magno Quites Machado Filho 2e43f864a5 Update to LLVM 17.0.4 2023-11-01 13:58:03 -03:00
Tulio Magno Quites Machado Filho 469438de55 Update to LLVM 17.0.3 2023-10-17 22:07:34 -03:00
Timm Bäder efe2f45aa0 Backport fix for RHEL-1650 2023-10-10 06:15:23 +02:00
Tulio Magno Quites Machado Filho c3ec280826 Update to LLVM 17.0.2 2023-10-04 15:50:52 -03:00
Tulio Magno Quites Machado Filho 522fd69676 Update to LLVM 17.0.1 2023-09-23 07:42:26 -03:00
Tulio Magno Quites Machado Filho 7ca2731b6f Revert "Drop dwarf4 patch in favor of config files"
This reverts commit 4d5309efc8 in order to
fix an issue where debug information is enabled by default even when -g
is not used.

Resolves: rhbz#2239619.
2023-09-19 13:32:00 -03:00
Tulio Magno Quites Machado Filho 8e7cc4af9d Move macros.clang to resource-filesystem
This is part of the Fedora change approved [1] which states the
following:

    The macros.clang file with RPM macros will be moved from the
    clang-devel package to the clang-resource-filesystem package.

[1] https://fedoraproject.org/wiki/Changes/LLVM-17
2023-09-19 11:21:13 -03:00
Alessandro Astone 2ad36cffbc Fix resource-filesystem after https://fedoraproject.org/wiki/Changes/LLVM-17 2023-09-19 11:03:06 -03:00
Tulio Magno Quites Machado Filho c4482a5a65 Update to LLVM 17.0.0 RC4 2023-09-10 08:44:05 -03:00
Tom Stellard 4d5309efc8 Drop dwarf4 patch in favor of config files 2023-09-06 23:14:34 +00:00
Yaakov Selkowitz b452d055c9 Update RHEL docs patch 2023-09-01 12:27:37 -04:00
Tulio Magno Quites Machado Filho e81bc4ecf9 Update to LLVM 17.0.0 RC3 2023-08-24 09:49:02 -03:00
Nikita Popov 5171a0f007 Rebase dwarf 4 patch 2023-08-24 09:47:19 -03:00
Tulio Magno Quites Machado Filho a399e92163 Update to LLVM 17.0.0 RC2 2023-08-23 14:24:17 -03:00
Tulio Magno Quites Machado Filho b3669793eb Update to LLVM 17.0.0 RC 1
This is also a squashed merge commit from upstream-snapshot (commit ID
13b971d3fcbf82d2) into rawhide whose most important commits from
upstream-snapshot are:

Konrad Kleine (57):
      Prepare for snapshot build
      Fix patches by using them from the streamline branch
      Fixed E: specfile-error error: line 491: Unclosed %if
      Fix error: Bad file: /var/lib/copr-rpmbuild/workspace/workdir-0qjlioil/srcdir/0007-cmake-Allow-shared-li
braries-to-customize-the-soname.patch: No such file or directory
      Must have forgotten this newly added 'clang_version' global
      Disable LTO for anything older than Fedora 34
      Add recommonmark to build deps
      Use new llvm_snashot_changelog_entry macro
      Use llvm_snapshot_version_suffix
      Fix RPM packaging bug:
      Default to DWARFv4
      Revert "Default to DWARFv4"
      Compile with DWARFv4
      Merge remote-tracking branch 'upstream/rawhide' into upstream-snapshot
      Try to address https://reviews.llvm.org/D119199
      Update patches
      Fixup patches
      Patches rebased
      Separate clang-tools-extra patches
      Try to fix clang build
      Rebased patches to fix issue with patch
      Make %autopatch verbose
      Also rename patch tag
      Avoid ld error
      Rebased patches
      Rebased clang patches
      Rebased clang-tools-extra patches
      First try to default to DWARF4 by default
      Produce DWARF4 by default
      Added pgo_instrumented_build conditional
      Make clang use the llvm-snapshot-builder
      Use %{llvm_snapshot_extra_source_tags} macro
      Fix %changelog not in descending chronological order
      Rebase patches
      Bring back clang
      Rebased patches and added third-party and cmake sources
      Adjust to https://reviews.llvm.org/D130586
      Disable LTO
      Manually apply https://reviews.llvm.org/D141581
      adjust /lib/ to /%{_lib}/
      Remove third party stuff and use gtest patch
      Rebased D138472
      Trace configure output
      Rebase D138472
      Assist find_package(LLVMGTest by setting hint dir to LLVM_CMAKE_DIR
      Merge remote-tracking branch 'origin/rawhide' into upstream-snapshot
      Add back 0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch
      Fixup 0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch
      Rebased 0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch
      Rebased 0001-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch
      Dropping 0001-Take-into-account-Fedora-Specific-install-dir-for-li.patch
      D142506 landed already
      Fix for the IEEE 128-bit fp error
      Fix RPM install of includes
      Merge remote-tracking branch 'origin/rawhide' into upstream-snapshot
      Remove already landed patches D141581 and D143736
      Rebase 0001-PATCH-clang-Make-funwind-tables-the-default-on-all-a.patch

Nikita Popov (7):
      Rebase downstream patches
      Rebase clang-tools-extra patches
      Add clang-offload-packager to clang_tools_binaries
      Rebase downstream patches
      Rebase LLVMHello patch
      Remove fno-openmp-implicit-rpath patches
      Restore fno-openmp-implicit-rpath patches

Tom Stellard (25):
      Revert patches that added LLVMHello dependency to clang-tools-extra tests
      Remove accidentally committed changes from previous commit
      Add clang-linker-wrapper and clang-pseudo binaries
      Add test for building an rpm with -fopenmp
      Add a smaller patch for fixing clang-tools-extra standalone build
      Update test name
      Add link to upstream patch for clang-tools-extra
      Update DWARF-4 patch to fix a test failure
      Rebase patch
      Emit DWARF4 by default
      Fix test after switch to DWARF4 default
      Fix dwarf test again
      Add workaround for build failure on i386/f36
      Remove accidentally committed change
      Add back -fno-openmp-implicit-rpath option
      Fix patch
      Remove patch that was committed upstream
      Update  -fno-openmp-implicit-rpath patches
      Drop openmp changes from patch
      Add fix for test failures on AArch64/f38+rawhide
      Revert "Add fix for test failures on AArch64/f38+rawhide"
      Update OpenMP rpath patch
      copr: Install llvm-snapshot-builder from the local COPR project
      Remove %clang_resource_dir_readonly macro
      Move clang-resource-dir to /usr/lib

sergesanspaille (5):
      Rebased clang-tools-extra patches
      Rebased clang-tools-extra patches
      rebase downstream patches
      Rebase downstream patches
      Rebase downstream patch
2023-08-11 10:18:00 -03:00
Tulio Magno Quites Machado Filho 074a2a75fb Remove pkg_bindir and pkg_libdir
1. Remove unused macro pkg_bindir.
2. Replace pkg_libdir with install_libdir.
2023-07-31 21:44:41 -03:00
Tulio Magno Quites Machado Filho fff5077f10 Fix compat build without tests and deduplicate BuildRequires
1. Set LLVM_INCLUDE_TESTS:BOOL=OFF in order to build clang without
   requiring googletest as we do not run the tests anyway.

2. Backport a patch from upstream that fixes the generation
   of *.exports.

3. Deduplicate a few BuildRequires entries.
2023-07-28 16:21:21 -03:00
Fedora Release Engineering 419d05e65c Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 15:44:40 +00:00
Tulio Magno Quites Machado Filho 461ef15b37 Fix rhbz#2221585
Module imp got removed from Python 3.12.

Source: https://docs.python.org/3/library/imp.html
2023-07-13 10:05:11 -03:00