Skip to content

Commit

Permalink
Use clang-17 for building binary
Browse files Browse the repository at this point in the history
For some reason, clang-16 is not available anymore on debian testing.
Switching to clang 17 (available in both ubuntu 24.04 github runner
and debian testing) unblocks the build.

- Clang 19 was not available in ubuntu 24.04 github runner
- Clang 18 broke tests with kernels 4.19.314 and 5.4.276
  • Loading branch information
mchataigner committed Dec 10, 2024
1 parent 42bf4f5 commit e98300e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN cross_debian_arch=$(uname -m | sed -e 's/aarch64/amd64/' -e 's/x86_64/arm64
cross_pkg_arch=$(uname -m | sed -e 's/aarch64/x86-64/' -e 's/x86_64/aarch64/'); \
apt-get update -y && \
apt-get dist-upgrade -y && \
apt-get install -y wget make git clang-16 unzip libc6-dev g++ gcc pkgconf \
apt-get install -y wget make git clang-17 unzip libc6-dev g++ gcc pkgconf \
gcc-${cross_pkg_arch}-linux-gnu libc6-${cross_debian_arch}-cross && \
apt-get clean autoclean && \
apt-get autoremove --yes
Expand Down
6 changes: 3 additions & 3 deletions support/ebpf/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL ?= bash
BPF_CLANG ?= clang-16
BPF_LINK ?= llvm-link-16
LLC ?= llc-16
BPF_CLANG ?= clang-17
BPF_LINK ?= llvm-link-17
LLC ?= llc-17

DEBUG_FLAGS = -DOPTI_DEBUG -g

Expand Down
Binary file modified support/ebpf/tracer.ebpf.release.arm64
Binary file not shown.

0 comments on commit e98300e

Please sign in to comment.