Konrad Kleine
7f11df8554
Fixup File listed twice warning:
...
This is a fixup for 66fec669b95fa50e7415240a59cda507dd63435e.
This fixes these RPM build warnings about cmake files being listed twice.
```
RPM build warnings:
File listed twice: /usr/lib64/cmake/clang/AddClang.cmake
File listed twice: /usr/lib64/cmake/clang/ClangConfig.cmake
File listed twice: /usr/lib64/cmake/clang/ClangConfigVersion.cmake
File listed twice:
/usr/lib64/cmake/clang/ClangTargets-relwithdebinfo.cmake
File listed twice: /usr/lib64/cmake/clang/ClangTargets.cmake
/usr/share/clang/clang-format-ddiff.py
File listed twice: /usr/lib64/cmake/clang/AddClang.cmake
File listed twice: /usr/lib64/cmake/clang/ClangConfig.cmake
File listed twice: /usr/lib64/cmake/clang/ClangConfigVersion.cmake
File listed twice:
/usr/lib64/cmake/clang/ClangTargets-relwithdebinfo.cmake
File listed twice: /usr/lib64/cmake/clang/ClangTargets.cmake
/usr/share/clang/clang-format-diff.py
```
2024-09-02 15:45:30 +02:00
Konrad Kleine
175bb38072
Avoid listing files twice
...
This should solve this warning:
```
RPM build warnings:
File listed twice: /usr/lib64/cmake/clang/AddClang.cmake
File listed twice: /usr/lib64/cmake/clang/ClangConfig.cmake
File listed twice: /usr/lib64/cmake/clang/ClangConfigVersion.cmake
File listed twice:
/usr/lib64/cmake/clang/ClangTargets-relwithdebinfo.cmake
File listed twice: /usr/lib64/cmake/clang/ClangTargets.cmake
absolute symlink: /usr/bin/clang-format-diff ->
/usr/share/clang/clang-format-diff.py
File listed twice:
/usr/lib/clang/19/include/fuzzer/FuzzedDataProvider.h
File listed twice: /usr/lib/clang/19/include/orc/c_api.h
File listed twice:
/usr/lib/clang/19/include/profile/InstrProfData.inc
File listed twice:
/usr/lib/clang/19/include/profile/instr_prof_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/allocator_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/asan_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/common_interface_defs.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/coverage_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/dfsan_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/hwasan_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/linux_syscall_hooks.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/lsan_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/memprof_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/msan_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/netbsd_syscall_hooks.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/scudo_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/tsan_interface.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/tsan_interface_atomic.h
File listed twice:
/usr/lib/clang/19/include/sanitizer/ubsan_interface.h
File listed twice: /usr/lib/clang/19/include/xray/xray_interface.h
File listed twice:
/usr/lib/clang/19/include/xray/xray_log_interface.h
File listed twice: /usr/lib/clang/19/include/xray/xray_records.h
File listed twice: /usr/lib/clang/19/share/asan_ignorelist.txt
File listed twice: /usr/lib/clang/19/share/cfi_ignorelist.txt
```
2024-09-02 15:45:30 +02:00
Konrad Kleine
34c048f35a
make: Remove LTO objects when cleaning
2024-09-02 15:45:30 +02:00
Konrad Kleine
fc801cc563
Remove no longer used %llvm_snapshot_source_prefix macro
2024-09-02 15:45:30 +02:00
Konrad Kleine
4b4f352af9
List compiler-rt files
...
Before I've used `%ifnarch` in the `<FILE>` included with `%files -f <FILE>`.
This produced this error:
```
RPM build errors:
File must begin with "/": %ifnarch
File must begin with "/": i386
File must begin with "/": i486
File must begin with "/": i586
File must begin with "/": i686
File must begin with "/": pentium3
File must begin with "/": pentium4
File must begin with "/": athlon
File must begin with "/": geode
File must begin with "/": %endif
```
We can optimize this at any point in time later.
2024-09-02 15:45:30 +02:00
Konrad Kleine
29f8ae58c1
Fix paths for compiler-rt files
2024-09-02 15:45:30 +02:00
Konrad Kleine
59e5d63363
Add triple prefix to clang config files
...
See https://src.fedoraproject.org/rpms/clang/pull-request/240
2024-09-02 15:45:30 +02:00
Konrad Kleine
8188d9bb02
Remove OMP SOs
...
The SOs are no longer installed since this commit:
fa9e90f5d2
2024-09-02 15:45:30 +02:00
Konrad Kleine
8442b8df62
Use github source code archive
...
Instead of generating our own archive we now use the github generated
source code archive instead [1]. We now only sync on the LLVM version
and git revision via our own github releases [2].
[1]: https://docs.github.com/en/repositories/working-with-files/using-files/downloading-source-code-archives#source-code-archive-urls
[2]: https://github.com/fedora-llvm-team/llvm-snapshots/releases/tag/snapshot-version-sync
2024-09-02 15:45:30 +02:00
Konrad Kleine
c445e81a3f
Fix path to files.compiler-rt.spec.inc
2024-09-02 15:45:30 +02:00
Konrad Kleine
5bc37fd0a9
Leave note on removal of all binaries when installing clang compat
2024-09-02 15:45:30 +02:00
Konrad Kleine
a5fb671bd5
Remove package libomp-tools
...
We don't want to package it for RHEL, so we remove it here as well.
2024-09-02 15:45:30 +02:00
Konrad Kleine
259e484bb3
Leave note for lld compat packaging
2024-09-02 15:45:30 +02:00
Konrad Kleine
3bebfe7be5
Manually associate files with compiler-rt
2024-09-02 15:45:30 +02:00
Konrad Kleine
d146c76d57
Add cmake files explicitly to clang-devel
2024-09-02 15:45:30 +02:00
Konrad Kleine
8e6b7baa6d
Add *.so libraries explicitly for clang-devel
...
We had too many `*.so` libraries added to the `clang-devel` package.
Before we've added these implicitly by accident:
```
/usr/lib64/libLLVM.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/libLTO.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/libRemarks.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/libclang-cpp.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/libclang.so.19.0.0pre20240509.g943617d12ccbd3
/usr/lib64/libclang.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/liblldCOFF.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/liblldCommon.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/liblldELF.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/liblldMachO.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/liblldMinGW.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/liblldWasm.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/libomptarget.rtl.amdgpu.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/libomptarget.rtl.cuda.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/libomptarget.rtl.host.so.19.0pre20240509.g943617d12ccbd3
/usr/lib64/libomptarget.so.19.0pre20240509.g943617d12ccbd3
```
And now we're adding just these because these are the ones that used to
exist within the clang-devel package when it was still being built in
standalone mode:
```
/usr/lib64/libclang-cpp.so
/usr/lib64/libclang.so
```
2024-09-02 15:45:30 +02:00
Konrad Kleine
24e78f177d
Add /usr/share/man/man1/extraclangtools.1.gz to clang-tools-extra
2024-09-02 15:45:30 +02:00
Konrad Kleine
2081339380
List %license for each sub-package
2024-09-02 15:45:30 +02:00
Konrad Kleine
ef9dd63bab
Adjust URL: and License: tags
...
The default `License:`-tag on the top-level llvm package is
`Apache-2.0 WITH LLVM-exception OR NCSA` and the default `URL:`-tag is
`http://llvm.org `.
These will be inherited by all sub-packages and so we only need to list
exceptions in the spec file.
2024-09-02 15:45:30 +02:00
Konrad Kleine
9824dd05a0
Add libomp-tools package
...
This is to host these files which were installed but previously went
unpackaged:
```
/usr/bin/llvm-omp-device-info
/usr/bin/llvm-omp-kernel-replay
```
2024-09-02 15:45:30 +02:00
Konrad Kleine
01e7bab976
Fixup for ead79795eb6a155b64badfae4e75f457853418fb
2024-09-02 15:45:30 +02:00
Konrad Kleine
f3763ad711
Manually list binaries and manpages files for the llvm package
2024-09-02 15:45:30 +02:00
Konrad Kleine
2ce72cec81
Use LICENSE.TXT file from lld directory
2024-09-02 15:45:30 +02:00
Konrad Kleine
bada609c4b
Inline %post and %postun code for llvm-devel
2024-09-02 15:45:30 +02:00
Konrad Kleine
0656f30e37
Always build shared libs for LLD
...
We don't want to enable BUILD_SHARED_LIBS for the whole build,
but we do want to build lld libraries.
2024-09-02 15:45:30 +02:00
Konrad Kleine
c0dde1d232
Use lit from in-source
2024-09-02 15:45:30 +02:00
Konrad Kleine
3fa5104b03
Remove LLD's HTML documentation files
2024-09-02 15:45:30 +02:00
Nikita Popov
96e6dc3d90
Explicitly disable LLVM_APPEND_VC_REV
...
This already happens implicitly because we don't build from a git
checkout. However, currently this also breaks the build due to
https://github.com/llvm/llvm-project/pull/88164 . Avoid this by
explicitly disabling the option.
2024-09-02 15:45:30 +02:00
Konrad Kleine
aa3612f180
Fix path
2024-09-02 15:45:30 +02:00
Konrad Kleine
d8b121f4e0
Remove LLVM_CMAKE_DIR and LLVM_MAIN_SRC_DIR cmake config options
2024-09-02 15:45:30 +02:00
Konrad Kleine
e7577a312e
enable lld project
2024-09-02 15:45:30 +02:00
Konrad Kleine
4836e0c649
Adjust download URL for tarballs to new project location
2024-09-02 15:45:30 +02:00
Konrad Kleine
31c6b8a3e2
Fix lld scriptlet naming
2024-09-02 15:45:30 +02:00
Konrad Kleine
a977a8b36b
Apply lld patch
2024-09-02 15:45:30 +02:00
Konrad Kleine
316c5488a7
Integrate lld.spec into spec files
2024-09-02 15:45:30 +02:00
Konrad Kleine
627f764c2e
Add lld.spec and patch file
2024-09-02 15:45:30 +02:00
Konrad Kleine
2884c8fb40
Remove patch only needed for standalone builds
...
This patch was only needed for standalone builds which we no longer do:
0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch
2024-09-02 15:45:30 +02:00
Tom Stellard
e35aa06353
Fix missing directory on ppc64le
2024-09-02 15:45:30 +02:00
Tom Stellard
05c4d67421
Fix libomptarget.rtl name after 72b0c11cfd267b754076dfc2908ba921c4f69ee3
2024-09-02 15:45:30 +02:00
Tom Stellard
eecdbeec91
Fix libomptarget.rtl name after 72b0c11cfd267b754076dfc2908ba921c4f69ee3
2024-09-02 15:45:30 +02:00
Tom Stellard
360173b9d6
Revert "Fix file path on all arches"
...
This reverts commit 0d6602437c40f2a0d2714fbaeebf3d851017c627.
2024-09-02 15:45:30 +02:00
Tom Stellard
39d366a109
Fix offload install dir
2024-09-02 15:45:30 +02:00
Tom Stellard
824de2ec69
Disable openmp tests
2024-09-02 15:45:30 +02:00
Tom Stellard
f447620e04
Run test on aarch64 that passes now
2024-09-02 15:45:30 +02:00
Tom Stellard
7eb753fbfa
Add new offload runtime
2024-09-02 15:45:30 +02:00
Tom Stellard
271e096f43
Fix file path on all arches
2024-09-02 15:45:30 +02:00
Tom Stellard
ff4a7f3bed
Update libomp xfails on ppc64le
2024-09-02 15:45:30 +02:00
Tom Stellard
0ef81ed402
Fix missing file on i686
2024-09-02 15:45:30 +02:00
Tom Stellard
b35f3edeaf
Update libomp xfails on s390x
2024-09-02 15:45:30 +02:00
Tom Stellard
78e75c3e5a
Rebase 0001-Restore-fopenmp-implicit-rpath-disabled-by-default.patch
...
And only apply it on f38, it's not needed on newer Fedoras.
2024-09-02 15:45:30 +02:00