Project

General

Profile

Freedom Issue #2598

[bazel] build downloads binary dependencies

oaken-source - over 4 years ago - . Updated over 2 years 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 - Packaging Request #2599: [tensorflow] depends on non-free bazelopen

Actions

History

#1

Updated by oaken-source over 4 years ago

#2

Updated by nona over 2 years ago

Insult to injury

    There is a single, architecture-independent distribution archive. There are no architecture-specific or OS-specific distribution archives.
    These sources are not the same as the GitHub source tree. You have to use the distribution archive to bootstrap Bazel. You cannot use a source tree cloned from GitHub. (The distribution archive contains generated source files that are required for bootstrapping and are not part of the normal Git source tree.)

Workaround? (from here ; does it mean that we'll end up with duplicated libraries? is there a way to use system's libs?)

Also available in: Atom PDF