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 x86_64 --nodeps /builddir/build/SPECS/rust.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-339700-69796/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/rust.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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/rust-1.66.1-2.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/rust.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-339700-69796/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/rust.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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QOxJ8j + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf wasi-libc-wasi-sdk-17 + /usr/bin/gzip -dc /builddir/build/SOURCES/wasi-libc-wasi-sdk-17.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd wasi-libc-wasi-sdk-17 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + rm -rf rustc-1.66.1-src + /usr/bin/xz -dc /builddir/build/SOURCES/rustc-1.66.1-src.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rustc-1.66.1-src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-Use-lld-provided-by-system-for-wasm.patch):' Patch #1 (0001-Use-lld-provided-by-system-for-wasm.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file compiler/rustc_target/src/spec/wasm_base.rs Patch #2 (rustc-1.61.0-rust-gdb-substitute-path.patch): + echo 'Patch #2 (rustc-1.61.0-rust-gdb-substitute-path.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/etc/rust-gdb Patch #3 (0001-compiletest-set-the-dylib-path-when-gathering-target.patch): + echo 'Patch #3 (0001-compiletest-set-the-dylib-path-when-gathering-target.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/tools/compiletest/src/common.rs patching file src/tools/compiletest/src/runtest.rs patching file src/tools/compiletest/src/util.rs Patch #4 (0001-Improve-generating-Custom-entry-function.patch): + echo 'Patch #4 (0001-Improve-generating-Custom-entry-function.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file compiler/rustc_codegen_llvm/src/abi.rs patching file compiler/rustc_codegen_llvm/src/context.rs patching file compiler/rustc_codegen_llvm/src/declare.rs patching file compiler/rustc_codegen_ssa/src/back/symbol_export.rs patching file compiler/rustc_target/src/abi/call/mod.rs patching file compiler/rustc_target/src/json.rs patching file compiler/rustc_target/src/spec/mod.rs Hunk #2 succeeded at 1668 (offset -1 lines). Hunk #3 succeeded at 1892 (offset -1 lines). Hunk #4 succeeded at 2411 (offset -1 lines). Hunk #5 succeeded at 2542 (offset -1 lines). Hunk #6 succeeded at 2794 (offset -1 lines). Patch #5 (0001-Mangle-main-as-__main_void-on-wasm32-wasi.patch): + echo 'Patch #5 (0001-Mangle-main-as-__main_void-on-wasm32-wasi.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file compiler/rustc_target/src/spec/wasm32_wasi.rs Hunk #1 succeeded at 100 (offset -4 lines). Patch #100 (rustc-1.65.0-disable-libssh2.patch): + echo 'Patch #100 (rustc-1.65.0-disable-libssh2.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Cargo.lock Hunk #1 succeeded at 1989 (offset 18 lines). Hunk #2 succeeded at 2021 (offset 18 lines). patching file vendor/git2/Cargo.toml + echo 'Patch #1000 (0001-cargo-CVE-2023-38497.patch):' Patch #1000 (0001-cargo-CVE-2023-38497.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/tools/cargo/src/cargo/sources/registry/mod.rs patching file src/tools/cargo/src/cargo/util/mod.rs patching file src/tools/cargo/tests/testsuite/registry.rs patching file src/tools/cargo/tests/testsuite/vendor.rs Patch #1001 (0001-update-vendor-tar-to-0.4.39.patch): + echo 'Patch #1001 (0001-update-vendor-tar-to-0.4.39.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Cargo.lock patching file src/bootstrap/Cargo.lock patching file src/tools/cargo/Cargo.toml patching file vendor/tar/.cargo-checksum.json patching file vendor/tar/Cargo.lock patching file vendor/tar/Cargo.toml patching file vendor/tar/src/archive.rs patching file vendor/tar/src/entry.rs patching file vendor/tar/tests/all.rs patching file vendor/tar/tests/entry.rs + sed -i.try-python -e '/^try python3 /i try "/usr/libexec/platform-python" "$@"' ./configure + sed -i.rust-src -e s#@BUILDDIR@#/builddir/build/BUILD/rustc-1.66.1-src# ./src/etc/rust-gdb + rm -rf src/llvm-project/ + mkdir -p src/llvm-project/libunwind/ + rm -rf vendor/curl-sys/curl/ + rm -rf vendor/jemalloc-sys/jemalloc/ vendor/tikv-jemalloc-sys/jemalloc/ + rm -rf vendor/libmimalloc-sys/c_src/mimalloc/ + rm -rf vendor/libssh2-sys/libssh2/ + rm -rf vendor/libz-sys/src/zlib/ + rm -rf vendor/libz-sys/src/zlib-ng/ + rm -rf vendor/lzma-sys/xz-5.2/ + rm -rf vendor/openssl-src/openssl/ + rm -rf vendor/libssh2-sys/ + sed -i.lzma -e /LZMA_API_STATIC/d src/bootstrap/tool.rs + find vendor -name .cargo-checksum.json -exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' + + find -name '*.rs' -type f -perm /111 -exec chmod -v -x '{}' + mode of './vendor/type-map/src/lib.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/colored/examples/most_simple.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/colored/examples/control.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/colored/examples/dynamic_colors.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/colored/examples/nested_colors.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/colored/tests/ansi_term_compat.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/colored/src/lib.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/colored/src/style.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/colored/src/control.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/colored/src/color.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/colored/src/formatters.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/unicode-normalization/src/no_std_prelude.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/gimli-0.26.1/tests/parse_self.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/gimli/tests/parse_self.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/gimli-0.25.0/tests/parse_self.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './compiler/rustc_codegen_cranelift/scripts/filter_profile.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './compiler/rustc_codegen_cranelift/y.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './src/tools/rust-analyzer/crates/ide/src/folding_ranges.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.dAx10p + umask 022 export CONFIG_SITE="NONE" export HISTCONTROL="ignoredups" export HISTSIZE="1000" export HOME="/builddir" export HOSTNAME="" export LANG="C" export LESSOPEN="||/usr/bin/lesspipe.sh %s" export LOADEDMODULES="" export LOGNAME="mockbuild" export MAIL="/var/spool/mail/mockbuild" export MANPATH=":" export MODULEPATH="/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles" export MODULEPATH_modshare="/usr/share/Modules/modulefiles:2:/etc/modulefiles:2:/usr/share/modulefiles:2" export MODULESHOME="/usr/share/Modules" export MODULES_CMD="/usr/share/Modules/libexec/modulecmd.tcl" export MODULES_RUN_QUARANTINE="LD_LIBRARY_PATH LD_PRELOAD" export OLDPWD="/builddir/build/BUILD" export PATH="/usr/share/Modules/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin" export PKG_CONFIG_PATH=":/usr/lib64/pkgconfig:/usr/share/pkgconfig" export PROMPT_COMMAND="printf \"\\033]0;\\007\"" export PWD="/builddir/build/BUILD/rustc-1.66.1-src" export PYTHON_DISALLOW_AMBIGUOUS_VERSION="warn" export RPM_ARCH="x86_64" export RPM_BUILD_DIR="/builddir/build/BUILD" export RPM_BUILD_NCPUS="80" export RPM_BUILD_ROOT="/builddir/build/BUILDROOT/rust-1.66.1-2.an8.x86_64" export RPM_DOC_DIR="/usr/share/doc" export RPM_LD_FLAGS="-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld" export RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection" export RPM_OS="linux" export RPM_PACKAGE_NAME="rust" export RPM_PACKAGE_RELEASE="2.an8" export RPM_PACKAGE_VERSION="1.66.1" export RPM_SOURCE_DIR="/builddir/build/SOURCES" export SHELL="/bin/bash" export SHLVL="2" export TERM="vt100" export USER="mockbuild" export which_declare="declare -f" + cd /builddir/build/BUILD + cd rustc-1.66.1-src + export ++ /usr/bin/getconf _NPROCESSORS_ONLN + ncpus=80 ++ free -g ++ awk '/^Mem:/{print $2}' + max_cpus=94 + '[' 94 -ge 1 -a 94 -lt 80 ']' + /usr/bin/make -O -j80 --quiet -C /builddir/build/BUILD/wasi-libc-wasi-sdk-17 CC=clang AR=llvm-ar NM=llvm-nm find: '/builddir/build/BUILD/wasi-libc-wasi-sdk-17/build': No such file or directory + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./vendor/libffi-sys/libffi/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./vendor/libffi-sys/libffi/config.sub ++ basename ./vendor/libffi-sys/libffi/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./vendor/libffi-sys/libffi/config.sub '/usr/lib/rpm/redhat/config.sub' -> './vendor/libffi-sys/libffi/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./vendor/libffi-sys/libffi/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./vendor/libffi-sys/libffi/config.guess ++ basename ./vendor/libffi-sys/libffi/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./vendor/libffi-sys/libffi/config.guess '/usr/lib/rpm/redhat/config.guess' -> './vendor/libffi-sys/libffi/config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./vendor/libffi-sys/libffi/ltmain.sh + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-option-checking --libdir=/usr/lib --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu --set target.x86_64-unknown-linux-gnu.linker=gcc --set target.x86_64-unknown-linux-gnu.cc=gcc --set target.x86_64-unknown-linux-gnu.cxx=g++ --set target.x86_64-unknown-linux-gnu.ar=ar --set target.x86_64-unknown-linux-gnu.ranlib=/usr/bin/ranlib --set target.wasm32-wasi.wasi-root=/builddir/build/BUILD/wasi-libc-wasi-sdk-17/sysroot --python=/usr/libexec/platform-python --local-rust-root=/usr --set build.rustfmt=/bin/true --llvm-root=/usr --enable-llvm-link-shared --disable-llvm-static-stdcpp --disable-rpath --debuginfo-level=2 --set rust.codegen-units-std=1 --set build.build-stage=2 --set build.doc-stage=2 --set build.install-stage=2 --set build.test-stage=2 --enable-extended --tools=analysis,cargo,clippy,rls,rust-analyzer,rustfmt,src --enable-vendor --enable-verbose-tests --dist-compression-formats=gz --release-channel=stable '--release-description=Red Hat 1.66.1-2.an8' configure: processing command line configure: configure: build.build := x86_64-unknown-linux-gnu configure: build.host := ['x86_64-unknown-linux-gnu'] configure: install.prefix := /usr configure: install.bindir := /usr/bin configure: install.sysconfdir := /etc configure: install.datadir := /usr/share configure: install.libdir := /usr/lib configure: install.localstatedir := /var configure: install.mandir := /usr/share/man configure: install.infodir := /usr/share/info configure: build.target := ['x86_64-unknown-linux-gnu'] configure: target.x86_64-unknown-linux-gnu.linker := gcc configure: target.x86_64-unknown-linux-gnu.cc := gcc configure: target.x86_64-unknown-linux-gnu.cxx := g++ configure: target.x86_64-unknown-linux-gnu.ar := ar configure: target.x86_64-unknown-linux-gnu.ranlib := /usr/bin/ranlib configure: target.wasm32-wasi.wasi-root := /builddir/build/BUILD/wasi-libc-wasi-s ... configure: build.rustfmt := /bin/true configure: rust.codegen-units-std := 1 configure: build.build-stage := 2 configure: build.doc-stage := 2 configure: build.install-stage := 2 configure: build.test-stage := 2 configure: build.python := /usr/libexec/platform-python configure: build.rustc := /usr/bin/rustc configure: build.cargo := /usr/bin/cargo configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/bin/llvm-config configure: llvm.link-shared := True configure: llvm.static-libstdcpp := False configure: rust.rpath := False configure: rust.debuginfo-level := 2 configure: build.extended := True configure: build.tools := ['analysis', 'cargo', 'clippy', 'rls', 'rust-a ... configure: build.vendor := True configure: rust.verbose-tests := True configure: dist.compression-formats := ['gz'] configure: rust.channel := stable configure: rust.description := Red Hat 1.66.1-2.an8 configure: build.configure-args := ['--build=x86_64-Anolis-linux', '--host=x86_64 ... warning: localstatedir will be ignored warning: infodir will be ignored configure: configure: writing `config.toml` in current directory configure: configure: run `python /builddir/build/BUILD/rustc-1.66.1-src/x.py --help` + /usr/libexec/platform-python ./x.py build -j 80 Building rustbuild error: failed to run `rustc` to learn about target-specific information Caused by: process didn't exit successfully: `/usr/bin/rustc - --crate-name ___ --print=file-names -Wrust_2018_idioms -Wunused_lifetimes -Wsemicolon_in_expressions_from_macros -Dwarnings --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1) --- stderr error: unknown print request `split-debuginfo` failed to run: /usr/bin/cargo build --manifest-path /builddir/build/BUILD/rustc-1.66.1-src/src/bootstrap/Cargo.toml --frozen Build completed unsuccessfully in 0:00:00 error: Bad exit status from /var/tmp/rpm-tmp.dAx10p (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.dAx10p (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/rust.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 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 x86_64 --nodeps /builddir/build/SPECS/rust.spec