From df07ffe8f9d561e9795b2dcf75a2af0bc1e7e9fa Mon Sep 17 00:00:00 2001 From: Space Meyer Date: Tue, 1 Aug 2023 15:32:36 +0200 Subject: tools/docker: install llvm package and add some tools to path These are required for building linux with LLVM=1. --- tools/docker/syzbot/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/docker/syzbot/Dockerfile b/tools/docker/syzbot/Dockerfile index e15b6ec80..75a95de91 100644 --- a/tools/docker/syzbot/Dockerfile +++ b/tools/docker/syzbot/Dockerfile @@ -39,13 +39,17 @@ RUN apt-get install -y -q gnupg software-properties-common apt-transport-https RUN curl https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - RUN add-apt-repository "deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-15 main" RUN apt-get update --allow-releaseinfo-change -RUN apt-get install -y -q --no-install-recommends clang-15 clang-format-15 clang-tidy-15 lld-15 +RUN apt-get install -y -q --no-install-recommends llvm-15 clang-15 clang-format-15 clang-tidy-15 lld-15 RUN apt autoremove -y -q RUN sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-15 100 RUN sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 100 RUN sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-15 100 RUN sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 100 RUN sudo update-alternatives --install /usr/bin/ld.lld ld.lld /usr/bin/lld-15 100 +RUN sudo update-alternatives --install /usr/bin/llvm-nm llvm-nm /usr/bin/llvm-nm-15 100 +RUN sudo update-alternatives --install /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 100 +RUN sudo update-alternatives --install /usr/bin/llvm-objcopy llvm-objcopy /usr/bin/llvm-objcopy-15 100 +RUN sudo update-alternatives --install /usr/bin/llvm-objdump llvm-objdump /usr/bin/llvm-objdump-15 100 # Not really GRTE, but it's enough to run some scripts that hardcode the path. RUN mkdir -p /usr/grte/v5/bin && ln -s /usr/bin/python3 /usr/grte/v5/bin/python2.7 -- cgit mrf-deployment