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='/var/lib/mock/dist-ocs23-loongarch64-build-148713-9859/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=983gid=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='/var/lib/mock/dist-ocs23-loongarch64-build-148713-9859/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=983gid=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.dzLyl5 + 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.UtrENP + 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; Restarting.  Loading: Loading: Fetching repository @rules_nodejs; starting  DEBUG: /tmp/bazel_ssUeP6Qv/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 @com_github_grpc_grpc; starting Fetching https://mirror.bazel.build/...0.tar.gz; Checking in SHA-256 cache   Loading: Fetching repository @com_github_grpc_grpc; starting Fetching ...v/out/external/com_github_grpc_grpc; Extracting v1.47.0.tar.gz   Loading: Fetching repository @com_github_grpc_grpc; starting Fetching ...v/out/external/com_github_grpc_grpc; Extracting v1.47.0.tar.gz   Loading: Fetching repository @com_github_grpc_grpc; starting Fetching ...v/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_protobuf; starting Fetching repository @com_google_googleapis; starting Fetching ...leapis; Extracting 2f9af297c84c55c8b871ba4495e01ade42476c92.ta\ r.gz Fetching ...Qv/out/external/com_google_protobuf; Extracting v3.19.6.tar.gz Fetching repository @bazel_gazelle; starting Fetching https://mirror.bazel.build/...0.tar.gz; Checking in SHA-256 cache        Loading: Fetching repository @com_google_protobuf; starting Fetching repository @com_google_googleapis; starting Fetching ...leapis; Extracting 2f9af297c84c55c8b871ba4495e01ade42476c92.ta\ r.gz Fetching ...Qv/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_protobuf; starting Fetching repository @com_google_googleapis; starting Fetching ...leapis; Extracting 2f9af297c84c55c8b871ba4495e01ade42476c92.ta\ r.gz Fetching ...Qv/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 Analyzing: target //src:bazel_nojdk (1 packages loaded) Analyzing: target //src:bazel_nojdk (1 packages loaded, 0 targets configured) Analyzing: target //src:bazel_nojdk (4 packages loaded, 3 targets configured) Analyzing: target //src:bazel_nojdk (10 packages loaded, 16 targets configured\ ) currently loading: @rules_license//licenses/spdx ... (4 packages)   Analyzing: target //src:bazel_nojdk (57 packages loaded, 45 targets configured\ ) currently loading: src/main/protobuf ... (4 packages) Fetching repository @local_jdk; starting Fetching repository @rules_proto; Patching repository Fetching repository @rules_python; starting Fetching repository @rules_cc; starting Fetching ...UeP6Qv/out/external/rules_cc; Extracting rules_cc-0.0.2.tar.gz        Analyzing: target //src:bazel_nojdk (68 packages loaded, 269 targets configure\ d) currently loading: tools/python ... (5 packages)   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 (175 packages loaded, 1222 targets configu\ red) currently loading: src/main/java/com/google/devtools/build/lib/analysis ..\ . (8 packages)    Analyzing: target //src:bazel_nojdk (186 packages loaded, 1505 targets configu\ red) currently loading: src/main/java/com/google/devtools/build/lib/analysis ..\ . (5 packages) Fetching repository @blake3; Restarting.     Analyzing: target //src:bazel_nojdk (268 packages loaded, 2086 targets configu\ red) currently loading: @com_google_protobuf// ... (11 packages) Fetching repository @blake3; Patching repository Fetching repository @zstd-jni; starting Fetching ...-3.zip; Checking SHA-256 of /builddir/build/BUILD/bazel-6.4.0/\ derived/distdir/v1.5.2-3.zip       ERROR: /tmp/bazel_ssUeP6Qv/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 (295 packages loaded, 2410 targets configu\ red) currently loading: @com_github_grpc_grpc// ... (4 packages) Fetching repository @zstd-jni; starting Fetching .../bazel_ssUeP6Qv/out/external/zstd-jni; Extracting v1.5.2-3.zip     ERROR: /tmp/bazel_ssUeP6Qv/out/external/local_config_cc/BUILD:47:19: Analysis of target '@local_config_cc//:toolchain' failed Analyzing: target //src:bazel_nojdk (296 packages loaded, 2411 targets configu\ red) currently loading: @com_github_grpc_grpc// ... (3 packages) Fetching repository @zstd-jni; starting Fetching .../bazel_ssUeP6Qv/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 (299 packages loaded, 2414 targets configu\ red) Fetching repository @zstd-jni; starting Fetching .../bazel_ssUeP6Qv/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 (299 packages loaded, 2414 targets configu\ red) Fetching .../bazel_ssUeP6Qv/out/external/zstd-jni; Extracting v1.5.2-3.zip   INFO: Elapsed time: 11.501s Analyzing: target //src:bazel_nojdk (299 packages loaded, 2414 targets configu\ red) Fetching .../bazel_ssUeP6Qv/out/external/zstd-jni; Extracting v1.5.2-3.zip   INFO: 0 processes. Analyzing: target //src:bazel_nojdk (299 packages loaded, 2414 targets configu\ red) Fetching .../bazel_ssUeP6Qv/out/external/zstd-jni; Extracting v1.5.2-3.zip   FAILED: Build did NOT complete successfully (299 packages loaded, 2414 targets\ configured) Fetching .../bazel_ssUeP6Qv/out/external/zstd-jni; Extracting v1.5.2-3.zip ERROR: Could not build Bazel error: Bad exit status from /var/tmp/rpm-tmp.UtrENP (%build) Bad exit status from /var/tmp/rpm-tmp.UtrENP (%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