Compare commits

...

2 Commits

Author SHA1 Message Date
David Abdurachmanov 0155a6bffe
Use LLVM/Clang 15
16 is not supported yet.

[..]
CMake Error at CMakeLists.txt:171 (message):
  Unsupported LLVM version found via /usr/include: 16
CMake Error at CMakeLists.txt:172 (message):
  Only versions between 6 and 15 are supported
CMake Error at CMakeLists.txt:173 (message):
  Specify an LLVM major version using LLVM_REQUESTED_VERSION=<major version>
[..]

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-04-25 14:16:03 +03:00
David Abdurachmanov fc01a130a3
Enable riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-04-25 12:05:10 +03:00
1 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,6 @@
Name: bpftrace
Version: 0.17.0
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
Summary: High-level tracing language for Linux eBPF
License: ASL 2.0
@ -10,7 +10,7 @@ Patch1: 0001-Workaround-OpaquePointers-for-LLVM-15.patch
# Arches will be included as upstream support is added and dependencies are
# satisfied in the respective arches
ExclusiveArch: x86_64 %{power64} aarch64 s390x
ExclusiveArch: x86_64 %{power64} aarch64 s390x riscv64
BuildRequires: gcc-c++
BuildRequires: bison
@ -18,8 +18,8 @@ BuildRequires: flex
BuildRequires: cmake
BuildRequires: elfutils-libelf-devel
BuildRequires: zlib-devel
BuildRequires: llvm-devel
BuildRequires: clang-devel
BuildRequires: llvm15-devel
BuildRequires: clang15-devel
BuildRequires: bcc-devel >= 0.19.0-1
BuildRequires: libbpf-devel
BuildRequires: libbpf-static
@ -47,6 +47,7 @@ and predecessor tracers such as DTrace and SystemTap
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_TESTING:BOOL=OFF \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DLLVM_REQUESTED_VERSION=15 \
-DUSE_SYSTEM_BPF_BCC:BOOL=ON
%cmake_build
@ -82,6 +83,10 @@ find %{buildroot}%{_datadir}/%{name}/tools -type f -exec \
%changelog
* Tue Apr 25 2023 David Abdurachmanov <davidlt@rivosinc.com> - 0.17.0-1.0.riscv64
- Enable riscv64
- Use LLVM/Clang 15
* Tue Jan 31 2023 Augusto Caringi <acaringi@redhat.com> - 0.17.0-1
- Rebased to version 0.17.0