-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile.ubuntu-gcc13.2-bpf
38 lines (31 loc) · 1.11 KB
/
Dockerfile.ubuntu-gcc13.2-bpf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:noble
# Note: as of Nov-2024, ubuntu noble (with proposed) returns:
# $ apt list -a gcc-13
# gcc-13/noble-proposed 13.3.0-6ubuntu2~24.04 amd64
# gcc-13/noble,now 13.2.0-23ubuntu4 amd64 [installed,automatic]
RUN for pkg in g++-13* gcc-13* cpp-13* libgcc-13-dev libobjc-13-dev libstdc++-13-dev; do \
echo "Package: $pkg\nPin: version 13.2.*\nPin-Priority: 900\n" \
>> /etc/apt/preferences.d/pin-gcc; done
RUN echo 'deb http://archive.ubuntu.com/ubuntu/ noble-proposed restricted main multiverse universe' > /etc/apt/sources.list.d/ubuntu-proposed.list && \
apt-get update && \
apt-get -y --no-install-recommends install \
cmake \
g++-13 \
git \
kmod \
libc6-dev \
libelf-dev \
make \
pkg-config \
clang-14 \
llvm-14 \
&& apt-get clean
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 13
# Enforce usage of clang 14, since clang 15 seems to
# raise a lot of verifier issues
ENV CLANG clang-14
ENV LLC llc-14
ADD builder-entrypoint.sh /
WORKDIR /build/probe
ENTRYPOINT [ "/builder-entrypoint.sh" ]