Open seaurching opened 1 year ago
root@ed7d09768525:~/bazel# bazel-4 build //src:bazel
build it, finaly tips:DEBUG: /root/bazel/tools/build_defs/repo/http.bzl:142:10: ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.2/rules_cc-0.0.2.tar.gz"]
DEBUG: /root/bazel/tools/build_defs/repo/utils.bzl:192:18: test -f BUILD && chmod u+w BUILD || true
DEBUG: /root/bazel/tools/build_defs/repo/utils.bzl:192:18: echo >> BUILD
DEBUG: /root/bazel/tools/build_defs/repo/utils.bzl:192:18: echo 'exports_files(["WORKSPACE"], visibility = ["//visibility:public"])' >> BUILD
ERROR: Traceback (most recent call last):
File "/root/.cache/bazel/_bazel_root/038a9c24c67a3f14ac28680c554d9af8/external/rules_cc/cc/private/rules_impl/cc_flags_supplier.bzl", line 16, column 76, in <toplevel>
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain", "use_cpp_toolchain")
Error: file '@bazel_tools//tools/cpp:toolchain_utils.bzl' does not contain symbol 'use_cpp_toolchain' (did you mean 'find_cpp_toolchain'?)
ERROR: While resolving toolchains for target //src/main/cpp:client: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '@bazel_tools//tools/cpp': in /root/.cache/bazel/_bazel_root/038a9c24c67a3f14ac28680c554d9af8/external/rules_cc/cc/defs.bzl: Extension file 'cc/private/rules_impl/cc_flags_supplier.bzl' has errors
DEBUG: /root/bazel/tools/build_defs/repo/http.bzl:142:10: ["https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip", "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip"]
DEBUG: /root/bazel/tools/build_defs/repo/utils.bzl:192:18: test -f BUILD && chmod u+w BUILD || true
DEBUG: /root/bazel/tools/build_defs/repo/utils.bzl:192:18: echo >> BUILD
DEBUG: /root/bazel/tools/build_defs/repo/utils.bzl:192:18: echo 'exports_files(["WORKSPACE"], visibility = ["//visibility:public"])' >> BUILD
DEBUG: /root/bazel/tools/build_defs/repo/http.bzl:142:10: ["https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.3/rules_license-0.0.3.tar.gz", "https://github.com/bazelbuild/rules_license/releases/download/0.0.3/rules_license-0.0.3.tar.gz"]
ERROR: Analysis of target '//src:bazel' failed; build aborted: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '@bazel_tools//tools/cpp': in /root/.cache/bazel/_bazel_root/038a9c24c67a3f14ac28680c554d9af8/external/rules_cc/cc/defs.bzl: Extension file 'cc/private/rules_impl/cc_flags_supplier.bzl' has errors
INFO: Elapsed time: 3.834s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (3 packages loaded, 0 targets configured)
currently loading: src/main/protobuf
root@ed7d09768525:~/bazel# uname -m
mips64
root@ed7d09768525:~/bazel# bazel-4 build //src:bazel
INFO: Repository bazelci_rules instantiated at:
/root/bazel/WORKSPACE:258:18: in <toplevel>
/root/bazel/distdir.bzl:94:17: in dist_http_archive
Repository rule http_archive defined at:
/root/bazel/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
INFO: Repository 'bazelci_rules' used the following cache hits instead of downloading the corresponding file.
* Hash 'eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e' for https://mirror.bazel.build/github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz
If the definition of 'bazelci_rules' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'bazelci_rules':
Traceback (most recent call last):
File "/root/bazel/tools/build_defs/repo/http.bzl", line 143, column 10, in _http_archive_impl
patch(ctx, auth = auth)
File "/root/bazel/tools/build_defs/repo/utils.bzl", line 193, column 21, in patch
fail("Error applying patch command %s:\n%s%s" %
Error in fail: Error applying patch command test -f BUILD && chmod u+w BUILD || true:
java.io.IOException: Cannot run program "/usr/share/bazel/process-wrapper" (in directory "/root/.cache/bazel/_bazel_root/038a9c24c67a3f14ac28680c554d9af8/external/bazelci_rules"): error=0, Failed to exec spawnhelper: pid: 78290, exit value: 1
ERROR: Error fetching repository: Traceback (most recent call last):
File "/root/bazel/tools/build_defs/repo/http.bzl", line 143, column 10, in _http_archive_impl
patch(ctx, auth = auth)
File "/root/bazel/tools/build_defs/repo/utils.bzl", line 193, column 21, in patch
fail("Error applying patch command %s:\n%s%s" %
Error in fail: Error applying patch command test -f BUILD && chmod u+w BUILD || true:
java.io.IOException: Cannot run program "/usr/share/bazel/process-wrapper" (in directory "/root/.cache/bazel/_bazel_root/038a9c24c67a3f14ac28680c554d9af8/external/bazelci_rules"): error=0, Failed to exec spawnhelper: pid: 78290, exit value: 1
ERROR: no such package '@bazelci_rules//': Error applying patch command test -f BUILD && chmod u+w BUILD || true:
java.io.IOException: Cannot run program "/usr/share/bazel/process-wrapper" (in directory "/root/.cache/bazel/_bazel_root/038a9c24c67a3f14ac28680c554d9af8/external/bazelci_rules"): error=0, Failed to exec spawnhelper: pid: 78290, exit value: 1
INFO: Elapsed time: 3.698s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
ERROR: /tmp/bazel_Wi5Cq8sn/out/external/bazel_tools/third_party/ijar/BUILD:72:10: Linking external/bazel_tools/third_party/ijar/zipper [for tool] failed: (Exit 1): gcc failed: error executing command (from target @bazel_tools//third_party/ijar:zipper)
(cd /tmp/bazel_Wi5Cq8sn/out/execroot/io_bazel && \
exec env - \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
PWD=/proc/self/cwd \
/usr/bin/gcc @bazel-out/mips64-opt-exec-EDC14992/bin/external/bazel_tools/third_party/ijar/zipper-2.params)
# Configuration: 40272a6ece154fb00ee7235b617530863841496c2bdeda0e6675b53f4fd6b9b6
# Execution platform: //:default_host_platform
collect2: fatal error: ld terminated with signal 10 [Bus error], core dumped
compilation terminated.
[418 / 2,946] checking cached actions
Target //src:bazel_nojdk failed to build
INFO: Elapsed time: 854.109s, Critical Path: 200.22s
INFO: 418 processes: 145 internal, 273 local.
FAILED: Build did NOT complete successfully
ERROR: Could not build Bazel
@seaurching the linked/related issues appear to be fixed. Are you still having this problem?
Description of the bug:
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Which operating system are you running Bazel on?
mips64
What is the output of
bazel info release
?No response
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.env EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk --tool_java_runtime_version=local_jdk --cxxopt=-std=c++11 --copt=-std=c99" bash ./compile.sh
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response