Compare commits

...

7 Commits

Author SHA1 Message Date
David Abdurachmanov a5bf92576f
Bump release
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-11-07 22:31:24 +02:00
David Abdurachmanov 981e2d1b24
Remove -plugin-opt for unittests
Still fails with Clang 17.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-11-07 22:02:01 +02:00
David Abdurachmanov 13fd69a632
Bump release
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-11-07 12:08:59 +02:00
David Abdurachmanov 50d7e6dd10
Bump release
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-11-07 12:08:20 +02:00
David Abdurachmanov 99df8727c6
Bring back -plugin-opt for unittests
We have Clang 17 available now.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-11-07 09:05:15 +02:00
David Abdurachmanov 6f028d56ad
Remove -plugin-opt for unittests
[..]
/usr/bin/ld: bad -plugin-opt option
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
[..]

This might require Clang 17.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-11-02 08:00:23 +02:00
David Abdurachmanov bbf69479e8
Add support for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-10-30 20:17:19 +02:00
1 changed files with 27 additions and 5 deletions

View File

@ -15,7 +15,11 @@
%endif
%bcond_without compat_build
%ifnarch riscv64
%bcond_without check
%else
%bcond_with check
%endif
#global rc_ver 4
%global maj_ver 16
@ -24,7 +28,12 @@
%global llvm_srcdir llvm-%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:rc%{rc_ver}}.src
%global cmake_srcdir cmake-%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:rc%{rc_ver}}.src
%global third_party_srcdir third-party-%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:rc%{rc_ver}}.src
%ifnarch riscv64
%global _lto_cflags -flto=thin
%else
# riscv64: gold is not supported on riscv64
%global _lto_cflags %{nil}
%endif
%if %{with compat_build}
%global pkg_name llvm%{maj_ver}
@ -75,7 +84,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 5%{?dist}
Release: 5.6.riscv64%{?dist}
Summary: The Low Level Virtual Machine
License: Apache-2.0 WITH LLVM-exception OR NCSA
@ -243,7 +252,7 @@ mv %{third_party_srcdir} third-party
%build
%ifarch s390 s390x %{arm} %ix86
%ifarch s390 s390x %{arm} %ix86 riscv64
# Decrease debuginfo verbosity to reduce memory consumption during final library linking
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
%endif
@ -257,7 +266,7 @@ export ASMFLAGS=$CFLAGS
-DLLVM_PARALLEL_LINK_JOBS=1 \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_SKIP_RPATH:BOOL=ON \
%ifarch s390 %{arm} %ix86
%ifarch s390 %{arm} %ix86 riscv64
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
%endif
@ -324,8 +333,7 @@ export ASMFLAGS=$CFLAGS
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
-DLLVM_INSTALL_SPHINX_HTML_DIR=%{_pkgdocdir}/html \
-DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3 \
-DLLVM_INCLUDE_BENCHMARKS=OFF \
-DLLVM_UNITTEST_LINK_FLAGS="-Wl,-plugin-opt=O0"
-DLLVM_INCLUDE_BENCHMARKS=OFF
# Build libLLVM.so first. This ensures that when libLLVM.so is linking, there
# are no other compile jobs running. This will help reduce OOM errors on the
@ -572,6 +580,20 @@ fi
%endif
%changelog
* Tue Nov 07 2023 David Abdurachmanov <davidlt@rivosinc.com> - 16.0.6-5.5.riscv64
- Remove -plugin-opt for unittests
* Tue Nov 07 2023 David Abdurachmanov <davidlt@rivosinc.com> - 16.0.6-5.2.riscv64
- Bring back -plugin-opt for unittests
* Thu Nov 02 2023 David Abdurachmanov <davidlt@rivosinc.com> - 16.0.6-5.1.riscv64
- Remove -plugin-opt for unittests
* Mon Oct 30 2023 David Abdurachmanov <davidlt@rivosinc.com> - 16.0.6-5.0.riscv64
- Disable tests on riscv64 for now
- Lower memory consumption on riscv64
- Disable LTO (ld.gold not supported on riscv64)
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild