Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/bazel.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-125317-74901/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/bazel-6.4.0-4.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/bazel.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-125317-74901/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --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: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4eHtev + 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 . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/3000-bazel-6.4.0-add-loongarch64-support.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.xw1piK + 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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 'EXTRA_BAZEL_ARGS= --python_path=/usr/bin/python3 --nokeep_state_after_build --notrack_incremental_state --nokeep_state_after_build' + EXTRA_BAZEL_ARGS=' --python_path=/usr/bin/python3 --nokeep_state_after_build --notrack_incremental_state --nokeep_state_after_build' + export EMBED_LABEL=6.4.0 + EMBED_LABEL=6.4.0 + export 'EXTRA_BAZEL_ARGS= --python_path=/usr/bin/python3 --nokeep_state_after_build --notrack_incremental_state --nokeep_state_after_build --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 --nokeep_state_after_build --notrack_incremental_state --nokeep_state_after_build --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 Fetching ...skydoc; Extracting 1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.ta\ r.gz    Loading: Fetching repository @build_bazel_rules_nodejs; starting Fetching ...build_bazel_rules_nodejs; Extracting rules_nodejs-5.5.0.tar.gz   DEBUG: /tmp/bazel_PJJPowdV/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 ...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 ...dV/out/external/com_google_protobuf; Extracting v3.19.6.tar.gz      Loading: Loading: Loading: 0 packages loaded Analyzing: target //src:bazel_nojdk (1 packages loaded, 0 targets configured) INFO: Repository platforms instantiated at: /builddir/build/BUILD/bazel-6.4.0/WORKSPACE:410: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 (2 packages loaded, 0 targets configured) Fetching repository @platforms; starting  WARNING: Download from https://github.com/Loongson-Cloud-Community/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Unknown host: github.com Analyzing: target //src:bazel_nojdk (2 packages loaded, 0 targets configured) ERROR: An error occurred during the fetch of repository 'platforms': Traceback (most recent call last): File "/builddir/build/BUILD/bazel-6.4.0/tools/build_defs/repo/http.bzl", line 132, column 45, in _http_archive_impl download_info = ctx.download_and_extract( Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/Loongson-Cloud-Community/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz] to /tmp/bazel_PJJPowdV/out/external/platforms/temp12643599438736831740/platforms-0.0.7.tar.gz: Unknown host: github.com Analyzing: target //src:bazel_nojdk (2 packages loaded, 0 targets configured) ERROR: /builddir/build/BUILD/bazel-6.4.0/WORKSPACE:410:18: fetching http_archive rule //external:platforms: Traceback (most recent call last): File "/builddir/build/BUILD/bazel-6.4.0/tools/build_defs/repo/http.bzl", line 132, column 45, in _http_archive_impl download_info = ctx.download_and_extract( Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/Loongson-Cloud-Community/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz] to /tmp/bazel_PJJPowdV/out/external/platforms/temp12643599438736831740/platforms-0.0.7.tar.gz: Unknown host: github.com Analyzing: target //src:bazel_nojdk (2 packages loaded, 0 targets configured) ERROR: /tmp/bazel_PJJPowdV/out/external/local_config_platform/BUILD.bazel:4:9: @local_config_platform//:host depends on @platforms//cpu:aarch64 in repository @platforms which failed to fetch. no such package '@platforms//cpu': java.io.IOException: Error downloading [https://github.com/Loongson-Cloud-Community/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz] to /tmp/bazel_PJJPowdV/out/external/platforms/temp12643599438736831740/platforms-0.0.7.tar.gz: Unknown host: github.com Analyzing: target //src:bazel_nojdk (2 packages loaded, 0 targets configured) ERROR: /builddir/build/BUILD/bazel-6.4.0/src/BUILD:366:9: While resolving toolchains for target //src:bazel-bin_nojdk: Target @local_config_platform//:host was referenced as a platform, but does not provide PlatformInfo Analyzing: target //src:bazel_nojdk (2 packages loaded, 0 targets configured) ERROR: Analysis of target '//src:bazel_nojdk' failed; build aborted: Analyzing: target //src:bazel_nojdk (2 packages loaded, 0 targets configured) INFO: Elapsed time: 3.768s Analyzing: target //src:bazel_nojdk (2 packages loaded, 0 targets configured) INFO: 0 processes. Analyzing: target //src:bazel_nojdk (2 packages loaded, 0 targets configured) FAILED: Build did NOT complete successfully (2 packages loaded, 0 targets conf\ igured) ERROR: Could not build Bazel error: Bad exit status from /var/tmp/rpm-tmp.xw1piK (%build) Bad exit status from /var/tmp/rpm-tmp.xw1piK (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/bazel.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, 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 aarch64 --nodeps /builddir/build/SPECS/bazel.spec