llvm / llvm/llvm-project

build_docker_image.sh fails to work on arm64

Open
#165,765 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

**Error Message:**

```
#13 0.281 /tmp/clang-build/build /
#13 0.281 Running build
#13 0.296 CMake Error at CMakeLists.txt:46 (project):
#13 0.296 Running
#13 0.296
#13 0.296 '/usr/local/bin/ninja' '--version'
#13 0.296
#13 0.296 failed with:
#13 0.296
#13 0.296 /usr/local/bin/ninja: 1: Syntax error: "(" unexpected
#13 0.296
#13 0.296
#13 0.296
#13 0.296 CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
#13 0.296 CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
#13 0.296 CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
#13 0.297 -- Configuring incomplete, errors occurred!
```

**Exact location in the code:**

lvm/utils/docker/debian12/Dockerfile

```
RUN wget "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip" && \
echo "6f98805688d19672bd699fbbfa2c2cf0fc054ac3df1f0e6a47664d963d530255 ninja-linux.zip" \
| sha256sum -c && \
unzip ninja-linux.zip -d /usr/local/bin && \
rm ninja-linux.zip
```

Contributor guide

Open the contributing guide

Research direction

Start with the shown download-and-unzip RUN block in lvm/utils/docker/debian12/Dockerfile and reproduce the Docker image build on arm64. Check why the downloaded Ninja executable cannot be run, then verify that CMake can invoke Ninja and configure the LLVM build without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, docker
Domain
build-system, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.