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

add CI for macOS #19

Open
zaucy opened this issue Jul 7, 2024 · 0 comments
Open

add CI for macOS #19

zaucy opened this issue Jul 7, 2024 · 0 comments

Comments

@zaucy
Copy link
Owner

zaucy commented Jul 7, 2024

when submitting to BCR it was apparent that the toolchain used wasn't valid for macOS. I'm pretty sure bzlws works for macOS, but we should have CI to make sure.

https://buildkite.com/bazel/bcr-presubmit/builds/6538#01908b55-5649-4823-8b83-c9a5e848af2d

<html>
<body>
<!--StartFragment-->
bazel --host_jvm_args=-Djava.net.preferIPv6Addresses=true build --show_progress_rate_limit=5 --curses=yes --color=yes --terminal_columns=143 --show_timestamps --verbose_failures --jobs=4 --announce_rc --experimental_repository_cache_hardlinks --disk_cache= --sandbox_writable_path=/var/tmp/_bazel_buildkite/cache/repos/v1 --test_env=REPOSITORY_CACHE=/var/tmp/_bazel_buildkite/cache/repos/v1 --jvmopt=-Djava.net.preferIPv6Addresses --remote_cache=https://storage.googleapis.com/bazel-unstrusted-build-cache --google_default_credentials --remote_timeout=3600 --remote_max_connections=200 --remote_default_platform_properties=properties:{name:"cache-silo-key" value:"62792b736f8de5e73536c593a8024d4146d102ee229ea299bbe2ee25afca092d"} --remote_download_toplevel --test_env=HOME --test_env=BAZELISK_USER_AGENT --test_env=COURSIER_OPTS --test_env=JAVA_TOOL_OPTIONS --test_env=SSL_CERT_FILE --test_env=USE_BAZEL_VERSION -- //...
--
  | WARNING: Running Bazel server needs to be killed, because the startup options are different.
  | Starting local Bazel server and connecting to it...
  | WARNING: ignoring JAVA_TOOL_OPTIONS in environment.
  | (05:56:15) WARNING: Option 'remote_default_platform_properties' is deprecated: --remote_default_platform_properties has been deprecated in favor of --remote_default_exec_properties.
  | (05:56:15) INFO: Invocation ID: 0f90b108-c122-4643-88c7-1d576e1121e8
  | (05:56:15) INFO: Reading 'startup' options from /private/etc/bazel.bazelrc: --host_jvm_args=-Djava.net.preferIPv6Addresses=true
  | (05:56:15) INFO: Reading 'startup' options from /Users/buildkite/builds/bk-macos-pln3-qf9b/bazel-org-repo-root/output/test/.bazelrc: --windows_enable_symlinks
  | (05:56:15) INFO: Options provided by the client:
  | Inherited 'common' options: --isatty=1 --terminal_columns=0
  | (05:56:15) INFO: Reading rc options for 'build' from /private/etc/bazel.bazelrc:
  | Inherited 'common' options: --jvmopt=-Djava.net.preferIPv6Addresses
  | (05:56:15) INFO: Reading rc options for 'build' from /Users/buildkite/builds/bk-macos-pln3-qf9b/bazel-org-repo-root/output/test/.bazelrc:
  | Inherited 'common' options: --enable_bzlmod
  | (05:56:15) INFO: Reading rc options for 'build' from /private/etc/bazel.bazelrc:
  | 'build' options: --experimental_remote_cache_async
  | (05:56:15) INFO: Reading rc options for 'build' from /Users/buildkite/builds/bk-macos-pln3-qf9b/bazel-org-repo-root/output/test/.bazelrc:
  | 'build' options: --enable_platform_specific_config --incompatible_enable_cc_toolchain_resolution --incompatible_strict_action_env --enable_runfiles --noincompatible_remove_rule_name_parameter --experimental_enable_bzlmod --registry=file:///Users/buildkite/builds/bk-macos-pln3-qf9b/bazel/bcr-presubmit
  | (05:56:16) INFO: Current date is 2024-07-07
  | (05:56:16) WARNING: Option 'remote_default_platform_properties' is deprecated: --remote_default_platform_properties has been deprecated in favor of --remote_default_exec_properties.
  | (05:56:20) INFO: Repository toolchains_llvm~~llvm~llvm_toolchain_llvm instantiated at:
  | <builtin>: in <toplevel>
  | Repository rule llvm defined at:
  | /private/var/tmp/_bazel_buildkite/f0d938968224073385a2f936fcb85db3/external/toolchains_llvm~/toolchain/rules.bzl:27:23: in <toplevel>
  | (05:56:20) ERROR: An error occurred during the fetch of repository 'toolchains_llvm~~llvm~llvm_toolchain_llvm':
  | Traceback (most recent call last):
  | File "/private/var/tmp/_bazel_buildkite/f0d938968224073385a2f936fcb85db3/external/toolchains_llvm~/toolchain/internal/repo.bzl", line 303, column 35, in llvm_repo_impl
  | updated_attrs = _download_llvm(rctx)
  | File "/private/var/tmp/_bazel_buildkite/f0d938968224073385a2f936fcb85db3/external/toolchains_llvm~/toolchain/internal/llvm_distributions.bzl", line 535, column 56, in download_llvm
  | urls, sha256, strip_prefix = _distribution_urls(rctx)
  | File "/private/var/tmp/_bazel_buildkite/f0d938968224073385a2f936fcb85db3/external/toolchains_llvm~/toolchain/internal/llvm_distributions.bzl", line 578, column 13, in _distribution_urls
  | fail("Unknown LLVM release: %s\nPlease ensure file name is correct." % basename)
  | Error in fail: Unknown LLVM release: clang+llvm-17.0.6-x86_64-apple-darwin21.0.tar.xz
  | Please ensure file name is correct.
  | (05:56:20) ERROR: no such package '@@toolchains_llvm~~llvm~llvm_toolchain_llvm//': Unknown LLVM release: clang+llvm-17.0.6-x86_64-apple-darwin21.0.tar.xz
  | Please ensure file name is correct.
  | (05:56:20) ERROR: /private/var/tmp/_bazel_buildkite/f0d938968224073385a2f936fcb85db3/external/toolchains_llvm~~llvm~llvm_toolchain/BUILD.bazel:115:10: @@toolchains_llvm~~llvm~llvm_toolchain//:compiler-components-x86_64-darwin depends on @@toolchains_llvm~~llvm~llvm_toolchain_llvm//:include in repository @@toolchains_llvm~~llvm~llvm_toolchain_llvm which failed to fetch. no such package '@@toolchains_llvm~~llvm~llvm_toolchain_llvm//': Unknown LLVM release: clang+llvm-17.0.6-x86_64-apple-darwin21.0.tar.xz
  | Please ensure file name is correct.
  | (05:56:20) ERROR: Analysis of target '//:link_error_example_txt' failed; build aborted: Analysis failed
  | (05:56:20) INFO: Elapsed time: 7.890s, Critical Path: 0.12s
  | (05:56:20) INFO: 1 process: 1 internal.
  | (05:56:20) ERROR: Build did NOT complete successfully
  | (05:56:20) FAILED:
  | Fetching repository @@bazel_tools~xcode_configure_extension~local_config_xcode; Fetching the default Xcode version
  | bazel build failed with exit code 1
  | 🚨 Error: The command exited with status 1
  | user command error: exit status 1

<!--EndFragment-->
</body>
</html>
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

No branches or pull requests

1 participant