Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zetasql: Disable @toolchain_llvm rules
These rules will attempt to download an LLVM toolchain for the detected OS, but LLVM does not currently provide builds for Wolfi OS, so the build errors out (see below[*]). We build zetasql with GCC, so we don't need LLVM at all and can just disable these rules. Here we disable them by way of applying a patch. Patches add to our maintenance burden, so this is not ideal. It would be better if upstream made these rules conditional on the user-selected toolchain. [*] 2025/01/21 18:36:50 WARN Loading: 2025/01/21 18:36:50 WARN Loading: 0 packages loaded 2025/01/21 18:36:50 WARN DEBUG: /home/build/.cache/bazel/_bazel_build/79a1bfc8c8b5b6a6d226b38d072f165b/external/io_grpc_grpc_java/java_grpc_library.bzl:203:14: Multiple values in 'deps' is deprecated in local_service_java_grpc 2025/01/21 18:36:50 WARN Analyzing: 1298 targets (34 packages loaded, 0 targets configured) 2025/01/21 18:36:51 WARN INFO: Repository llvm_toolchain_llvm instantiated at: 2025/01/21 18:36:51 WARN /home/build/WORKSPACE:85:20: in <toplevel> 2025/01/21 18:36:51 WARN /home/build/bazel/zetasql_deps_step_1.bzl:33:19: in zetasql_deps_step_1 2025/01/21 18:36:51 WARN /home/build/.cache/bazel/_bazel_build/79a1bfc8c8b5b6a6d226b38d072f165b/external/toolchains_llvm/toolchain/rules.bzl:50:13: in llvm_toolchain 2025/01/21 18:36:51 WARN Repository rule llvm defined at: 2025/01/21 18:36:51 WARN /home/build/.cache/bazel/_bazel_build/79a1bfc8c8b5b6a6d226b38d072f165b/external/toolchains_llvm/toolchain/rules.bzl:27:23: in <toplevel> 2025/01/21 18:36:51 WARN ERROR: An error occurred during the fetch of repository 'llvm_toolchain_llvm': 2025/01/21 18:36:51 WARN Traceback (most recent call last): 2025/01/21 18:36:51 WARN File "/home/build/.cache/bazel/_bazel_build/79a1bfc8c8b5b6a6d226b38d072f165b/external/toolchains_llvm/toolchain/internal/repo.bzl", line 303, column 35, in llvm_repo_impl 2025/01/21 18:36:51 WARN updated_attrs = _download_llvm(rctx) 2025/01/21 18:36:51 WARN File "/home/build/.cache/bazel/_bazel_build/79a1bfc8c8b5b6a6d226b38d072f165b/external/toolchains_llvm/toolchain/internal/llvm_distributions.bzl", line 535, column 56, in download_llvm 2025/01/21 18:36:51 WARN urls, sha256, strip_prefix = _distribution_urls(rctx) 2025/01/21 18:36:51 WARN File "/home/build/.cache/bazel/_bazel_build/79a1bfc8c8b5b6a6d226b38d072f165b/external/toolchains_llvm/toolchain/internal/llvm_distributions.bzl", line 573, column 38, in _distribution_urls 2025/01/21 18:36:51 WARN basename = _llvm_release_name(rctx, llvm_version) 2025/01/21 18:36:51 WARN File "/home/build/.cache/bazel/_bazel_build/79a1bfc8c8b5b6a6d226b38d072f165b/external/toolchains_llvm/toolchain/internal/release_name.bzl", line 209, column 22, in llvm_release_name 2025/01/21 18:36:51 WARN return _linux(llvm_version, os, version, arch) 2025/01/21 18:36:51 WARN File "/home/build/.cache/bazel/_bazel_build/79a1bfc8c8b5b6a6d226b38d072f165b/external/toolchains_llvm/toolchain/internal/release_name.bzl", line 182, column 13, in _linux 2025/01/21 18:36:51 WARN fail("Unsupported linux distribution and version: %s, %s" % (distname, version)) 2025/01/21 18:36:51 WARN Error in fail: Unsupported linux distribution and version: wolfi, 20230201 Signed-off-by: dann frazier <[email protected]>
- Loading branch information