google / gvisor

Application Kernel for Containers

Home Page:https://gvisor.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building master branch in aws aarch64 failed

jeyaprabhuj-tts opened this issue · comments

Description

Ubuntu 20.04.3 LTS (GNU/Linux 5.11.0-1023-aws aarch64)

steps followed as per build instructions

make copy TARGETS=runsc DESTINATION=bin/

INFO: Repository bazel_gazelle_go_repository_tools instantiated at:
/home/ubuntu/golang/master/WORKSPACE:67:21: in
/home/ubuntu/.cache/bazel/_bazel_ubuntu/414ccf448066191dd8ceb195229a5ef0/external/bazel_gazelle/deps.bzl:68:24: in gazelle_dependencies
Repository rule go_repository_tools defined at:
/home/ubuntu/.cache/bazel/_bazel_ubuntu/414ccf448066191dd8ceb195229a5ef0/external/bazel_gazelle/internal/go_repository_tools.bzl:117:38: in
ERROR: An error occurred during the fetch of repository 'bazel_gazelle_go_repository_tools':
Traceback (most recent call last):
File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/414ccf448066191dd8ceb195229a5ef0/external/bazel_gazelle/internal/go_repository_tools.bzl", line 103, column 13, in _go_repository_tools_impl
fail("failed to build tools: " + result.stderr)
Error in fail: failed to build tools: go build github.com/bazelbuild/bazel-gazelle/language/proto: /home/ubuntu/.cache/bazel/_bazel_ubuntu/414ccf448066191dd8ceb195229a5ef0/external/go_sdk/pkg/tool/linux_arm64/compile: signal: killed
ERROR: Error fetching repository: Traceback (most recent call last):
File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/414ccf448066191dd8ceb195229a5ef0/external/bazel_gazelle/internal/go_repository_tools.bzl", line 103, column 13, in _go_repository_tools_impl
fail("failed to build tools: " + result.stderr)
Error in fail: failed to build tools: go build github.com/bazelbuild/bazel-gazelle/language/proto: /home/ubuntu/.cache/bazel/_bazel_ubuntu/414ccf448066191dd8ceb195229a5ef0/external/go_sdk/pkg/tool/linux_arm64/compile: signal: killed
ERROR: /home/ubuntu/golang/master/runsc/cli/BUILD:5:11: no such package '@com_github_google_subcommands//': no such package '@bazel_gazelle_go_repository_config//': no such package '@bazel_gazelle_go_repository_tools//': failed to build tools: go build github.com/bazelbuild/bazel-gazelle/language/proto: /home/ubuntu/.cache/bazel/_bazel_ubuntu/414ccf448066191dd8ceb195229a5ef0/external/go_sdk/pkg/tool/linux_arm64/compile: signal: killed
and referenced by '//runsc/cli:cli'
ERROR: Analysis of target '//runsc:runsc' failed; build aborted: Analysis failed
INFO: Elapsed time: 74.855s
INFO: 0 processes.

Steps to reproduce

No response

runsc version

No response

docker version (if using docker)

No response

uname

No response

kubectl (if using Kubernetes)

No response

repo state (if built from source)

No response

runsc debug logs (if available)

No response

I had the same issue and it turned out to be from bazelbuild/bazel-gazelle#1333. In short, since gvisor is currently using bazel-gazelle 0.27.0 (which doesn't have this fix), building the proto library can exhaust the resources of small hosts.

Upgrading locally to v0.28.0 fixed the issue for me. I'll see if I can put up a PR soon.

A friendly reminder that this issue had no activity for 120 days.

This issue has been closed due to lack of activity.