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-145845-9812/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-145845-9812/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.POhriL + 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.5I8MDH + 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: Loading: Fetching repository @io_bazel_skydoc; starting Fetching ...skydoc; Extracting 1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.ta\ r.gz    Loading: Fetching repository @bazel_tools; starting  Loading: Loading: Fetching repository @rules_nodejs; starting  DEBUG: /tmp/bazel_AG97oyFT/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 ...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 ...leapis; Extracting 2f9af297c84c55c8b871ba4495e01ade42476c92.ta\ r.gz Fetching ...FT/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_googleapis; starting Fetching repository @com_google_protobuf; starting Fetching ...leapis; Extracting 2f9af297c84c55c8b871ba4495e01ade42476c92.ta\ r.gz Fetching ...FT/out/external/com_google_protobuf; Extracting v3.19.6.tar.gz      Loading: Fetching repository @com_google_googleapis; starting Fetching repository @com_google_protobuf; Patching repository Fetching ...leapis; Extracting 2f9af297c84c55c8b871ba4495e01ade42476c92.ta\ r.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) 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 (42 packages loaded, 34 targets configured\ ) currently loading: @rules_license//licenses/spdx ... (17 packages) Fetching repository @local_jdk; starting Fetching repository @rules_proto; starting Fetching repository @rules_cc; starting      Analyzing: target //src:bazel_nojdk (62 packages loaded, 54 targets configured\ ) currently loading: src/tools/android/java/com/google/devtools/build/androi\ d/junctions ... (7 packages)    Analyzing: target //src:bazel_nojdk (120 packages loaded, 866 targets configur\ ed) currently loading: @bazel_tools//tools/def_parser   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 (164 packages loaded, 1078 targets configu\ red) currently loading: src/main/java/com/google/devtools/build/lib ... (8 pack\ ages)    Analyzing: target //src:bazel_nojdk (192 packages loaded, 1960 targets configu\ red) currently loading: @com_google_protobuf// ... (3 packages) Fetching repository @blake3; starting Fetching /tmp/bazel_AG97oyFT/out/external/blake3; Extracting 1.3.3.zip     Analyzing: target //src:bazel_nojdk (294 packages loaded, 2408 targets configu\ red) currently loading: @com_github_grpc_grpc// ... (5 packages) Fetching repository @blake3; starting Fetching /tmp/bazel_AG97oyFT/out/external/blake3; Extracting 1.3.3.zip Fetching repository @zstd-jni; starting Fetching .../bazel_AG97oyFT/out/external/zstd-jni; Extracting v1.5.2-3.zip       Analyzing: target //src:bazel_nojdk (299 packages loaded, 2958 targets configu\ red) currently loading: @com_github_grpc_grpc// ... (5 packages) Fetching repository @zstd-jni; starting Fetching .../bazel_AG97oyFT/out/external/zstd-jni; Extracting v1.5.2-3.zip     ERROR: /tmp/bazel_AG97oyFT/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 (302 packages loaded, 3038 targets configu\ red) currently loading: @com_github_grpc_grpc// ... (2 packages) Fetching repository @zstd-jni; starting Fetching .../bazel_AG97oyFT/out/external/zstd-jni; Extracting v1.5.2-3.zip     ERROR: /tmp/bazel_AG97oyFT/out/external/local_config_cc/BUILD:47:19: Analysis of target '@local_config_cc//:toolchain' failed Analyzing: target //src:bazel_nojdk (302 packages loaded, 3039 targets configu\ red) currently loading: @com_github_grpc_grpc// ... (2 packages) Fetching repository @zstd-jni; starting Fetching .../bazel_AG97oyFT/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 (303 packages loaded, 3042 targets configu\ red) currently loading: @com_github_grpc_grpc// Fetching repository @zstd-jni; starting Fetching .../bazel_AG97oyFT/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 (304 packages loaded, 3043 targets configu\ red) Fetching .../bazel_AG97oyFT/out/external/zstd-jni; Extracting v1.5.2-3.zip   INFO: Elapsed time: 11.374s Analyzing: target //src:bazel_nojdk (304 packages loaded, 3043 targets configu\ red) Fetching .../bazel_AG97oyFT/out/external/zstd-jni; Extracting v1.5.2-3.zip   INFO: 0 processes. Analyzing: target //src:bazel_nojdk (304 packages loaded, 3043 targets configu\ red) Fetching .../bazel_AG97oyFT/out/external/zstd-jni; Extracting v1.5.2-3.zip   FAILED: Build did NOT complete successfully (304 packages loaded, 3043 targets\ configured) Fetching .../bazel_AG97oyFT/out/external/zstd-jni; Extracting v1.5.2-3.zip ERROR: Could not build Bazel error: Bad exit status from /var/tmp/rpm-tmp.5I8MDH (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.5I8MDH (%build) 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