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

Doesn't build out of the box #1381

Closed
gl-yziquel opened this issue Aug 22, 2023 · 2 comments · Fixed by #1384
Closed

Doesn't build out of the box #1381

gl-yziquel opened this issue Aug 22, 2023 · 2 comments · Fixed by #1384

Comments

@gl-yziquel
Copy link

gl-yziquel commented Aug 22, 2023

Hi.

I just checked out the last commit. SHA: 5cfe348

It doesn't build out of the box.

me@home ~/distroless (main)> bazel build //...
Starting local Bazel server and connecting to it...
INFO: Analyzed 2277 targets (549 packages loaded, 34144 targets configured).
INFO: Found 2277 targets...
ERROR: /home/me/distroless/base/BUILD:102:19: GoCompilePkg base/check_certs_ppc64le_debian11.a failed: (Exit 1): builder failed: error executing command (from target //base:check_certs_ppc64le_debian11) bazel-out/k8-opt-exec-2B5CBBC6/bin/external/go_sdk/builder_reset/builder compilepkg -sdk external/go_sdk -installsuffix linux_ppc64le -src base/testdata/check_certs.go -embedroot '' -embedroot ... (remaining 19 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
base/testdata/check_certs.go:18:2: could not import crypto/x509 (open bazel-out/k8-fastbuild-ST-28dcfbc35f29/bin/external/io_bazel_rules_go/stdlib_/pkg/linux_ppc64le/crypto/x509.a: no such file or directory)
base/testdata/check_certs.go:19:2: could not import fmt (open bazel-out/k8-fastbuild-ST-28dcfbc35f29/bin/external/io_bazel_rules_go/stdlib_/pkg/linux_ppc64le/fmt.a: no such file or directory)
base/testdata/check_certs.go:20:2: could not import os (open bazel-out/k8-fastbuild-ST-28dcfbc35f29/bin/external/io_bazel_rules_go/stdlib_/pkg/linux_ppc64le/os.a: no such file or directory)
compilepkg: error running subcommand external/go_sdk/pkg/tool/linux_amd64/compile: exit status 2
ERROR: /home/me/.cache/bazel/_bazel_me/8ece7ddcfdfdb75817ed200d40df1593/external/io_bazel_rules_go/BUILD.bazel:42:7: Error while validating output TreeArtifact File:[[<execution_root>]bazel-out/k8-opt-exec-2B5CBBC6-ST-b33d65c724e6/bin]external/io_bazel_rules_go/stdlib_/pkg : java.lang.InterruptedException
ERROR: /home/me/.cache/bazel/_bazel_me/8ece7ddcfdfdb75817ed200d40df1593/external/io_bazel_rules_go/BUILD.bazel:42:7: Error while validating output TreeArtifact File:[[<execution_root>]bazel-out/k8-fastbuild-ST-8ee1a4b74a6f/bin]external/io_bazel_rules_go/stdlib_/pkg : java.lang.InterruptedException
ERROR: /home/me/.cache/bazel/_bazel_me/8ece7ddcfdfdb75817ed200d40df1593/external/io_bazel_rules_go/BUILD.bazel:42:7: Error while validating output TreeArtifact File:[[<execution_root>]bazel-out/k8-fastbuild-ST-84b95c4f6491/bin]external/io_bazel_rules_go/stdlib_/pkg : java.lang.InterruptedException
ERROR: /home/me/.cache/bazel/_bazel_me/8ece7ddcfdfdb75817ed200d40df1593/external/io_bazel_rules_go/BUILD.bazel:42:7: Error while validating output TreeArtifact File:[[<execution_root>]bazel-out/k8-fastbuild-ST-b33d65c724e6/bin]external/io_bazel_rules_go/stdlib_/pkg : java.lang.InterruptedException
ERROR: /home/me/.cache/bazel/_bazel_me/8ece7ddcfdfdb75817ed200d40df1593/external/io_bazel_rules_go/BUILD.bazel:42:7: Error while validating output TreeArtifact File:[[<execution_root>]bazel-out/k8-fastbuild/bin]external/io_bazel_rules_go/stdlib_/pkg : java.lang.InterruptedException
INFO: Elapsed time: 153.167s, Critical Path: 119.11s
INFO: 5729 processes: 5578 internal, 137 linux-sandbox, 14 worker.
FAILED: Build did NOT complete successfully

This is an ubuntu box. Ubuntu 22.04.3 LTS

I'm not proficient enough in bazel to decode that error further.

No release tags in the source tree ?

@dahu33
Copy link
Contributor

dahu33 commented Aug 23, 2023

The source of the issue is here: bazel-contrib/rules_go#3531

@gl-yziquel
Copy link
Author

gl-yziquel commented Aug 23, 2023

Your pull request solves the issue. Thanks.

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

Successfully merging a pull request may close this issue.

2 participants