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

[Bazel CI] Error in glob: glob pattern 'lib/clang/*/lib/**/*.dylib' didn't match anything #540

Open
sgowroji opened this issue Jan 7, 2025 · 4 comments · May be fixed by #548
Open

[Bazel CI] Error in glob: glob pattern 'lib/clang/*/lib/**/*.dylib' didn't match anything #540

sgowroji opened this issue Jan 7, 2025 · 4 comments · May be fixed by #548

Comments

@sgowroji
Copy link
Member

sgowroji commented Jan 7, 2025

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4381#01943ef5-b088-4c02-a5ba-2aa30cdd04f3

Platform: Ubuntu

Logs:

 ERROR: Traceback (most recent call last):
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/e5b85cc96123ab88632bda12b9f1b123/external/toolchains_llvm++llvm+llvm_toolchain_llvm/BUILD.bazel", line 60, column 16, in <toplevel>
		srcs = glob(
Error in glob: glob pattern 'lib/clang/*/lib/**/*.dylib' didn't match anything, but allow_empty is set to False (the default value of allow_empty can be set with --incompatible_disallow_empty_glob).
(04:14:01) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/e5b85cc96123ab88632bda12b9f1b123/external/toolchains_llvm++llvm+llvm_toolchain/BUILD.bazel:114:10: Target '@@toolchains_llvm++llvm+llvm_toolchain_llvm//:clang' contains an error and its package is in error and referenced by '@@toolchains_llvm++llvm+llvm_toolchain//:compiler-components-x86_64-linux'
(04:14:01) ERROR: Analysis of target '//:all' failed; build aborted: Analysis failed

Steps:

git clone https://github.com/bazelbuild/examples && cd ../rust-examples/02-hello-cross
git reset b51e3bdd468ce8c4a516d7dca993909dcc84af32  --hard
export USE_BAZEL_VERSION=de4ba2f81c87eeb9a25b6a9777889785f6e1ed7a
bazel build //:all 

CC Greenteam @Wyverald

@meteorcloudy
Copy link
Member

@marvin-hansen Are you able to take a look at the test failures of the rust examples with Bazel@HEAD? See the latest build result from https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4431#_

If not, we'll have to skip those tests in bazel downstream pipeline.

@marvin-hansen
Copy link
Contributor

Okay, I take a look over the upcoming weekend.

@marvin-hansen
Copy link
Contributor

marvin-hansen commented Feb 2, 2025

@meteorcloudy @sgowroji

Okay, I've filled the first PR that renovates Rust example 1-3. For some totally stupid reasons, I managed to carry over the commit history from 6 months ago to the new branch prior to the merge of the current head. This is totally on me, I get it, but on the bright side, these seem to fix some other examples so please take a look if you are able/willing to review the PR.
If it's okay, just squash it together.

@marvin-hansen
Copy link
Contributor

marvin-hansen commented Feb 2, 2025

PR's:

Fix for examples 1 - 3: #546
Fix for examples 4 - 7: #547
Fix for examples 8 - 9: #548

If I read the tealeaves correctly, then CI in the last PR is green with all Rust examples passing
meaning, technically, only the last PR needs to be merged to get this issue closed. Either way, please let me know if there is anything else to do.

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 a pull request may close this issue.

3 participants