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

CI: bazel build failure on recent PRs - no such file clang #1275

Open
asraa opened this issue Jan 17, 2025 · 9 comments
Open

CI: bazel build failure on recent PRs - no such file clang #1275

asraa opened this issue Jan 17, 2025 · 9 comments
Labels
build Issues concerning build systems and processes

Comments

@asraa
Copy link
Collaborator

asraa commented Jan 17, 2025

I'm noticiing PRs with:

[8,465 / 12,740] [Prepa] TdGenerate lib/Dialect/BGV/IR/BGVOps.cpp.inc [for tool] ... (2 actions, 0 running)
ERROR: /home/runner/work/heir/heir/lib/Dialect/BGV/IR/BUILD:11:11: Compiling lib/Dialect/BGV/IR/BGVDialect.cpp [for tool] failed: (Exit 1): clang failed: error executing command (from target //lib/Dialect/BGV/IR:Dialect) /usr/lib/llvm-14/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 ... (remaining 95 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
src/main/tools/process-wrapper-legacy.cc:80: "execvp(/usr/lib/llvm-14/bin/clang, ...)": No such file or directory
INFO: Elapsed time: 18.094s, Critical Path: 0.26s
INFO: 80 processes: 18 internal, 62 processwrapper-sandbox.
FAILED: Build did NOT complete successfully

I'll investigate and see if I can fix.

@asraa asraa added the build Issues concerning build systems and processes label Jan 17, 2025
@asraa
Copy link
Collaborator Author

asraa commented Jan 17, 2025

The runner's don't seem to have changed, e.g. from
https://github.com/google/heir/actions/runs/12747567920/job/35525904809
to
https://github.com/google/heir/actions/runs/12822845640/job/35756413432

since my first thought is maybe the runners don't have llvm-14. But that doesn't seem to be the case.

@asraa
Copy link
Collaborator Author

asraa commented Jan 17, 2025

@asraa
Copy link
Collaborator Author

asraa commented Jan 17, 2025

clang 14 was the default in the previous runner

@asraa
Copy link
Collaborator Author

asraa commented Jan 17, 2025

Our merges to main use

set -euo pipefail
  
  if [[ "${CACHE_HIT}" == "true" ]]; then
    echo "runner=ubuntu-22.04-8core" >> "$GITHUB_OUTPUT"
  else
    echo "runner=ubuntu-22.04-[3](https://github.com/google/heir/actions/runs/12815041446/job/35732851436#step:4:3)2core" >> "$GITHUB_OUTPUT"
  fi

and when i toggle the runner image they are all explicitly 22.04 so maybe that's why main is fine so far

@asraa
Copy link
Collaborator Author

asraa commented Jan 17, 2025

In this failing run we are pulling the cache from main: https://github.com/google/heir/actions/runs/12822845640/job/35781192813

So I thinkkkk the issue is because of these runner mismatches

@asraa
Copy link
Collaborator Author

asraa commented Jan 17, 2025

I'm going to try a test PR with no cache on build and test and confirm that we can bazel build w/o cache on the new runner assuming it pulls clang 16+

@j2kun
Copy link
Collaborator

j2kun commented Jan 17, 2025

I also see this warning: Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@88522ab. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions

Might be worth updating the cache action version.

@asraa
Copy link
Collaborator Author

asraa commented Jan 17, 2025

Nice find! OK I'll update my test PR in #1276 since it appears to be making progress in building and finding a suitable clang version:

@asraa
Copy link
Collaborator Author

asraa commented Jan 17, 2025

For posterity this was really the issue: actions/runner-images#11327

Despite labeling the runner as 22.04 we were still seeing 24.04 runners

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues concerning build systems and processes
Projects
None yet
Development

No branches or pull requests

2 participants