Project

General

Profile

Freedom issue #2598

[bazel] build downloads binary dependencies

oaken-source - 9 months ago - .

Status:
confirmed
Priority:
freedom issue
Assignee:
-
% Done:

0%


Description

bazel as built by arch fails to build in a chroot with network restrictions:

 |  INFO: Call stack for the definition of repository 'bazel_toolchains' which is a http_archive (rule definition at /build/.cache/bazel/_bazel_builduser/a4f1468c4e2f1b82eb46413b289a7c6e/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 |   - /build/bazel/src/WORKSPACE:387:1
 |  WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Unknown host: mirror.bazel.build
 |  WARNING: Download from https://github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Unknown host: github.com
 |  ERROR: An error occurred during the fetch of repository 'bazel_toolchains':
 |     java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz, https://github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz] to /build/.cache/bazel/_bazel_builduser/a4f1468c4e2f1b82eb46413b289a7c6e/external/bazel_toolchains/0.28.3.tar.gz: Unknown host: github.com
 |  ERROR: no such package '@bazel_toolchains//rules': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz, https://github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz] to /build/.cache/bazel/_bazel_builduser/a4f1468c4e2f1b82eb46413b289a7c6e/external/bazel_toolchains/0.28.3.tar.gz: Unknown host: github.com
 |  ERROR: no such package '@bazel_toolchains//rules': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz, https://github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz] to /build/.cache/bazel/_bazel_builduser/a4f1468c4e2f1b82eb46413b289a7c6e/external/bazel_toolchains/0.28.3.tar.gz: Unknown host: github.com
 |  INFO: Elapsed time: 8.917s
 |  INFO: 0 processes.
 |  FAILED: Build did NOT complete successfully (0 packages loaded)
 |  FAILED: Build did NOT complete successfully (0 packages loaded)
 |  ==> ERROR: A failure occurred in build().

Related issues

Blocks Packages - Freedom issue #2599: [tensorflow] depends on non-free bazelconfirmed

Actions

History

#1

Updated by oaken-source 9 months ago

Also available in: Atom PDF