Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/bazel.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-192986-12939/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/bazel.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/bazel-6.4.0-1.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/bazel.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-192986-12939/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/bazel.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.a6QQoh + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bazel-6.4.0 + /usr/bin/mkdir -p bazel-6.4.0 + cd bazel-6.4.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/bazel-6.4.0-dist.zip + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.K1vX3S + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd bazel-6.4.0 + find . -type f -regextype posix-extended -iregex '.*(sh|txt|py|_stub|stub_.*|bazel|get_workspace_status|protobuf_support|_so)' -exec sed -i -e '1s|^#!/usr/bin/env python$|#!/usr/bin/env python3|' '{}' ';' + export 'EXTRA_BAZEL_ARGS= --python_path=/usr/bin/python3' + EXTRA_BAZEL_ARGS=' --python_path=/usr/bin/python3' + mkdir -p ./bin-hack + ln -sf /usr/bin/python3 ./bin-hack/python ++ pwd + export PATH=/builddir/build/BUILD/bazel-6.4.0/bin-hack:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PATH=/builddir/build/BUILD/bazel-6.4.0/bin-hack:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + export EMBED_LABEL=6.4.0 + EMBED_LABEL=6.4.0 + export 'EXTRA_BAZEL_ARGS= --python_path=/usr/bin/python3 --sandbox_debug --tool_java_runtime_version=local_jdk --verbose_failures --subcommands --explain=build.log --show_result=2147483647' + EXTRA_BAZEL_ARGS=' --python_path=/usr/bin/python3 --sandbox_debug --tool_java_runtime_version=local_jdk --verbose_failures --subcommands --explain=build.log --show_result=2147483647' + env ./compile.sh Building Bazel from scratch...... Building Bazel with Bazel. .Loading: Loading: Fetching repository @bazelci_rules; starting  Loading: Fetching repository @io_bazel_skydoc; starting  Loading: Fetching repository @io_bazel_skydoc; starting Fetching ...skydoc; Extracting 1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.ta\ r.gz    Loading: Fetching repository @bazel_tools; starting  Loading: Loading: Fetching repository @build_bazel_rules_nodejs; starting Fetching ...build_bazel_rules_nodejs; Extracting rules_nodejs-5.5.0.tar.gz   Loading: DEBUG: /tmp/bazel_VjoDehkt/out/external/build_bazel_rules_nodejs/index.bzl:122:10: WARNING: check_rules_nodejs_version has been removed. This is a no-op, please remove the call. Loading: Loading: Fetching repository @local_config_winsdk; starting  Loading: Fetching repository @com_github_grpc_grpc; starting Fetching ...t/out/external/com_github_grpc_grpc; Extracting v1.47.0.tar.gz   Loading: Fetching repository @com_github_grpc_grpc; starting Fetching ...t/out/external/com_github_grpc_grpc; Extracting v1.47.0.tar.gz   Loading: Fetching repository @com_github_grpc_grpc; starting Fetching ...t/out/external/com_github_grpc_grpc; Extracting v1.47.0.tar.gz   Loading: Fetching repository @com_github_grpc_grpc; Patching repository  Loading: Fetching repository @com_google_googleapis; starting Fetching repository @com_google_protobuf; starting Fetching ...itory @com_envoyproxy_protoc_gen_validate; Patching repository Fetching ...leapis; Extracting 2f9af297c84c55c8b871ba4495e01ade42476c92.ta\ r.gz Fetching ...kt/out/external/com_google_protobuf; Extracting v3.19.6.tar.gz       Loading: Fetching repository @com_google_googleapis; starting Fetching repository @com_google_protobuf; starting Fetching ...leapis; Extracting 2f9af297c84c55c8b871ba4495e01ade42476c92.ta\ r.gz Fetching ...kt/out/external/com_google_protobuf; Extracting v3.19.6.tar.gz Fetching repository @bazel_gazelle; starting Fetching ...xternal/bazel_gazelle; Extracting bazel-gazelle-v0.24.0.tar.gz        Loading: Fetching repository @com_google_googleapis; starting Fetching repository @com_google_protobuf; starting Fetching ...leapis; Extracting 2f9af297c84c55c8b871ba4495e01ade42476c92.ta\ r.gz Fetching ...kt/out/external/com_google_protobuf; Extracting v3.19.6.tar.gz      Loading: Fetching repository @com_google_googleapis; starting Fetching ...leapis; Extracting 2f9af297c84c55c8b871ba4495e01ade42476c92.ta\ r.gz    Loading: Loading: Loading: 0 packages loaded Loading: 1 packages loaded Analyzing: target //src:bazel_nojdk (1 packages loaded, 0 targets configured) Analyzing: target //src:bazel_nojdk (3 packages loaded, 3 targets configured) currently loading:  Analyzing: target //src:bazel_nojdk (4 packages loaded, 6 targets configured) currently loading: src/main/cpp  Analyzing: target //src:bazel_nojdk (13 packages loaded, 16 targets configured\ ) currently loading: @rules_license//licenses/spdx ... (10 packages) Fetching repository @local_config_sh; starting Fetching repository @local_config_cc_toolchains; starting Fetching ...ory @remotejdk11_macos_aarch64_toolchain_config_repo; starting Fetching repository @local_jdk; starting       Analyzing: target //src:bazel_nojdk (46 packages loaded, 43 targets configured\ ) currently loading: third_party/grpc ... (14 packages) Fetching repository @local_jdk; starting Fetching repository @rules_proto; starting     Analyzing: target //src:bazel_nojdk (59 packages loaded, 51 targets configured\ ) currently loading: src/main/protobuf ... (3 packages) Fetching repository @rules_cc; Patching repository    Analyzing: target //src:bazel_nojdk (61 packages loaded, 141 targets configure\ d) currently loading: src/main/protobuf ... (2 packages)   Analyzing: target //src:bazel_nojdk (102 packages loaded, 612 targets configur\ ed)  Analyzing: target //src:bazel_nojdk (125 packages loaded, 878 targets configur\ ed) Fetching repository @local_config_cc; starting   Analyzing: target //src:bazel_nojdk (125 packages loaded, 878 targets configur\ ed) currently loading: @local_config_cc//   Analyzing: target //src:bazel_nojdk (168 packages loaded, 1103 targets configu\ red) currently loading: src/main/java/com/google/devtools/build/lib ... (9 pack\ ages)    Analyzing: target //src:bazel_nojdk (185 packages loaded, 1447 targets configu\ red) currently loading: @com_google_protobuf// ... (4 packages) Fetching repository @io_bazel; starting    Analyzing: target //src:bazel_nojdk (192 packages loaded, 1950 targets configu\ red) currently loading: @com_google_protobuf// ... (5 packages) Fetching repository @blake3; starting Fetching /tmp/bazel_VjoDehkt/out/external/blake3; Extracting 1.3.3.zip     Analyzing: target //src:bazel_nojdk (271 packages loaded, 2117 targets configu\ red) currently loading: @com_google_protobuf// ... (11 packages) Fetching repository @blake3; starting Fetching /tmp/bazel_VjoDehkt/out/external/blake3; Extracting 1.3.3.zip Fetching repository @zstd-jni; starting Fetching .../bazel_VjoDehkt/out/external/zstd-jni; Extracting v1.5.2-3.zip       Analyzing: target //src:bazel_nojdk (298 packages loaded, 2931 targets configu\ red) currently loading: @com_github_grpc_grpc// ... (2 packages) Fetching repository @blake3; Patching repository Fetching repository @zstd-jni; starting Fetching .../bazel_VjoDehkt/out/external/zstd-jni; Extracting v1.5.2-3.zip      Analyzing: target //src:bazel_nojdk (301 packages loaded, 3905 targets configu\ red) currently loading: @com_github_grpc_grpc// ... (3 packages) Fetching repository @zstd-jni; starting Fetching .../bazel_VjoDehkt/out/external/zstd-jni; Extracting v1.5.2-3.zip     ERROR: /tmp/bazel_VjoDehkt/out/external/local_config_cc/BUILD:47:19: in cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'unknown' Analyzing: target //src:bazel_nojdk (305 packages loaded, 4230 targets configu\ red) currently loading: @com_github_grpc_grpc// ... (5 packages) Fetching repository @zstd-jni; starting Fetching .../bazel_VjoDehkt/out/external/zstd-jni; Extracting v1.5.2-3.zip     ERROR: /tmp/bazel_VjoDehkt/out/external/local_config_cc/BUILD:47:19: Analysis of target '@local_config_cc//:toolchain' failed Analyzing: target //src:bazel_nojdk (306 packages loaded, 4238 targets configu\ red) currently loading: @com_github_grpc_grpc// ... (4 packages) Fetching repository @zstd-jni; starting Fetching .../bazel_VjoDehkt/out/external/zstd-jni; Extracting v1.5.2-3.zip     INFO: Repository zstd-jni instantiated at: /builddir/build/BUILD/bazel-6.4.0/WORKSPACE:287:18: in /builddir/build/BUILD/bazel-6.4.0/distdir.bzl:94:17: in dist_http_archive Repository rule http_archive defined at: /builddir/build/BUILD/bazel-6.4.0/tools/build_defs/repo/http.bzl:372:31: in Analyzing: target //src:bazel_nojdk (310 packages loaded, 4264 targets configu\ red) currently loading: @com_google_protobuf//java/core Fetching repository @zstd-jni; starting Fetching .../bazel_VjoDehkt/out/external/zstd-jni; Extracting v1.5.2-3.zip     ERROR: Analysis of target '//src:bazel_nojdk' failed; build aborted: Analyzing: target //src:bazel_nojdk (310 packages loaded, 4264 targets configu\ red) currently loading: @com_google_protobuf//java/core Fetching .../bazel_VjoDehkt/out/external/zstd-jni; Extracting v1.5.2-3.zip    INFO: Elapsed time: 13.879s Analyzing: target //src:bazel_nojdk (310 packages loaded, 4264 targets configu\ red) currently loading: @com_google_protobuf//java/core Fetching .../bazel_VjoDehkt/out/external/zstd-jni; Extracting v1.5.2-3.zip    INFO: 0 processes. Analyzing: target //src:bazel_nojdk (310 packages loaded, 4264 targets configu\ red) currently loading: @com_google_protobuf//java/core Fetching .../bazel_VjoDehkt/out/external/zstd-jni; Extracting v1.5.2-3.zip    FAILED: Build did NOT complete successfully (310 packages loaded, 4264 targets\ configured) currently loading: @com_google_protobuf//java/core Fetching .../bazel_VjoDehkt/out/external/zstd-jni; Extracting v1.5.2-3.zip ERROR: Could not build Bazel error: Bad exit status from /var/tmp/rpm-tmp.K1vX3S (%build) Bad exit status from /var/tmp/rpm-tmp.K1vX3S (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/bazel.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/bazel.spec