Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: pin ninja pip version temporarily to resolve build failure #1558

Merged
merged 1 commit into from
Nov 5, 2022
Merged

build: pin ninja pip version temporarily to resolve build failure #1558

merged 1 commit into from
Nov 5, 2022

Conversation

ashay
Copy link
Collaborator

@ashay ashay commented Nov 5, 2022

Going from ninja v1.10.2 to v1.11.1, there is a change that breaks
the CI builds with the following error:

CMake Error at CMakeLists.txt:47 (project):
  Running
   '/main_checkout/torch-mlir/docker_venv/bin/ninja' '--version'
  failed with:
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage

Ostensibly, the reason for the error about the ASM compiler is because
llvm-project/llvm/CMakeLists.txt includes ASM among the list of
languages used in the LLVM project. Adding -DCMAKE_ASM_COMPILER=clang
does not resolve the error.

Until we figure out why the new version of ninja causes the build
failures, this patch pins the ninja to the one that worked.

Going from ninja v1.10.2 to v1.11.1, there is a change that breaks the
CI builds with the following error:

```
CMake Error at CMakeLists.txt:47 (project):
  Running
   '/main_checkout/torch-mlir/docker_venv/bin/ninja' '--version'
  failed with:
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
```

Ostensibly, the reason for the error about the ASM compiler is because
llvm-project/llvm/CMakeLists.txt includes ASM among the list of
languages used in the LLVM project. Adding `-DCMAKE_ASM_COMPILER=clang`
does not resolve the error.

Until we figure out why the new version of ninja causes the build
failures, this patch pins the ninja to the one that worked.
@ashay ashay requested a review from powderluv November 5, 2022 15:12
@ashay ashay merged commit 27d8d47 into llvm:main Nov 5, 2022
@ashay ashay deleted the ashay/pin-ninja-version branch November 5, 2022 17:20
@powderluv
Copy link
Collaborator

I am not sure this would fix it but worth the try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants