mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-22 09:49:35 +00:00
tools/static-checks: Install clang
Without this library the builds are failing with the following error: ``` ... error: failed to run custom build command for `devicemapper-sys v0.1.5` Caused by: process didn't exit successfully: `/kata-containers/src/agent/target/release/build/devicemapper-sys-d8eae524a127e049/build-script-build` (exit status: 101) --- stderr thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.63.0/./lib.rs:2338:31 ``` Fixes: #7580 Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
This commit is contained in:
parent
1ec85d7485
commit
32d347aa25
3
.github/workflows/static-checks.yaml
vendored
3
.github/workflows/static-checks.yaml
vendored
@ -42,7 +42,8 @@ jobs:
|
||||
sudo apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
haveged \
|
||||
libdevmapper-dev
|
||||
libdevmapper-dev \
|
||||
clang
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
|
@ -47,7 +47,8 @@ RUN apt-get update && \
|
||||
protobuf-compiler \
|
||||
gettext-base \
|
||||
umoci \
|
||||
kmod
|
||||
kmod \
|
||||
clang
|
||||
|
||||
# aarch64 requires this name -- link for all
|
||||
RUN ln -s /usr/bin/musl-gcc "/usr/bin/$(uname -m)-linux-musl-gcc"
|
||||
|
Loading…
Reference in New Issue
Block a user