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-an23.1-devel-build-367243-71320/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 setting SOURCE_DATE_EPOCH=1711065600 Wrote: /builddir/build/SRPMS/rust-1.76.0-1.an23.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-an23.1-devel-build-367243-71320/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 setting SOURCE_DATE_EPOCH=1711065600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.OkQ8ug + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf wasi-libc-03b228e46bb02fcc5927253e1b8ad715072b1ae4 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/wasi-libc-03b228e46bb02fcc5927253e1b8ad715072b1ae4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd wasi-libc-03b228e46bb02fcc5927253e1b8ad715072b1ae4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + rm -rf rustc-1.76.0-src + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/rustc-1.76.0-src.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd rustc-1.76.0-src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-Use-lld-provided-by-system.patch):' Patch #1 (0001-Use-lld-provided-by-system.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file compiler/rustc_target/src/spec/base/wasm.rs patching file compiler/rustc_target/src/spec/targets/x86_64_unknown_none.rs patching file compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs Patch #2 (rustc-1.70.0-rust-gdb-substitute-path.patch): + echo 'Patch #2 (rustc-1.70.0-rust-gdb-substitute-path.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/etc/rust-gdb Patch #3 (0001-Let-environment-variables-override-some-default-CPUs.patch): + echo 'Patch #3 (0001-Let-environment-variables-override-some-default-CPUs.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file compiler/rustc_target/src/spec/targets/powerpc64le_unknown_linux_gnu.rs patching file compiler/rustc_target/src/spec/targets/s390x_unknown_linux_gnu.rs patching file compiler/rustc_target/src/spec/targets/x86_64_unknown_linux_gnu.rs + echo 'Patch #4 (0001-bootstrap-allow-disabling-target-self-contained.patch):' Patch #4 (0001-bootstrap-allow-disabling-target-self-contained.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file config.example.toml Hunk #1 succeeded at 820 (offset 13 lines). patching file src/bootstrap/src/core/build_steps/compile.rs patching file src/bootstrap/src/core/config/config.rs Hunk #1 succeeded at 579 (offset 46 lines). Hunk #2 succeeded at 588 (offset 46 lines). Hunk #3 succeeded at 1140 (offset 85 lines). Hunk #4 succeeded at 1826 (offset 221 lines). patching file src/bootstrap/src/lib.rs Hunk #1 succeeded at 1319 (offset -16 lines). Patch #5 (0002-set-an-external-library-path-for-wasm32-wasi.patch): + echo 'Patch #5 (0002-set-an-external-library-path-for-wasm32-wasi.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file compiler/rustc_codegen_ssa/src/back/link.rs patching file compiler/rustc_target/src/spec/mod.rs Hunk #1 succeeded at 1877 (offset 3 lines). patching file compiler/rustc_target/src/spec/targets/wasm32_wasi.rs Patch #6 (rustc-1.76.0-unbundle-sqlite.patch): + echo 'Patch #6 (rustc-1.76.0-unbundle-sqlite.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/tools/cargo/Cargo.lock patching file src/tools/cargo/Cargo.toml + sed -i.try-python -e '/^try python3 /i try "/usr/bin/python3" "$@"' ./configure + sed -i.rust-src -e s#@BUILDDIR@#/builddir/build/BUILD/rustc-1.76.0-src# ./src/etc/rust-gdb + rm -rf src/llvm-project/ + mkdir -p src/llvm-project/libunwind/ + rm -rf vendor/libgit2-sys/libgit2/ + pushd vendor ~/build/BUILD/rustc-1.76.0-src/vendor ~/build/BUILD/rustc-1.76.0-src + rm -rf curl-sys/curl/ + rm -rf jemalloc-sys/jemalloc/ tikv-jemalloc-sys/jemalloc/ + rm -rf libmimalloc-sys/c_src/mimalloc/ + rm -rf libssh2-sys/libssh2/ + rm -rf libz-sys/src/zlib/ + rm -rf libz-sys/src/zlib-ng/ + rm -rf lzma-sys/xz-5.2/ + rm -rf openssl-src/openssl/ + popd ~/build/BUILD/rustc-1.76.0-src + 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 './src/tools/rust-analyzer/crates/ide/src/folding_ranges.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/equivalent-1.0.0/src/lib.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/bumpalo/src/lib.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/data.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/lib.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/grid.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/prelude.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/curve.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/filledcurve.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/candlestick.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/map.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/errorbar.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/axis.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/traits.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/display.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/key.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/criterion-plot/src/proxy.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/derivative/tests/derive-clone.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/derivative/tests/derive-hash.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/derivative/tests/derive-default-bounds.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/tinytemplate/src/lib.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/tinytemplate/src/template.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/tinytemplate/src/instruction.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/tinytemplate/src/compiler.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/tinytemplate/src/error.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/tinytemplate/src/syntax.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/tinytemplate/benches/benchmarks.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/bumpalo-3.13.0/src/lib.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/type-map/src/lib.rs' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './vendor/gix-pack/src/lib.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--) + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.h4OR92 + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 rustc-1.76.0-src + export LIBSSH2_SYS_USE_PKG_CONFIG=1 + LIBSSH2_SYS_USE_PKG_CONFIG=1 ++ /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 V=1 VERBOSE=1 --quiet -C /builddir/build/BUILD/wasi-libc-03b228e46bb02fcc5927253e1b8ad715072b1ae4 CC=clang AR=llvm-ar NM=llvm-nm find: 'build/wasm32-wasi': No such file or directory ++ find /usr/lib64/clang -type f -name 'libclang_rt.profile-*.a' + PROFILER=/usr/lib64/clang/17/lib/libclang_rt.profile-x86_64.a + 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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -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 + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./vendor/jemalloc-sys/configure/configure + diff -u ./vendor/jemalloc-sys/configure/configure.backup ./vendor/jemalloc-sys/configure/configure + mv ./vendor/jemalloc-sys/configure/configure.backup ./vendor/jemalloc-sys/configure/configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./vendor/jemalloc-sys/configure/configure + diff -u ./vendor/jemalloc-sys/configure/configure.backup ./vendor/jemalloc-sys/configure/configure + mv ./vendor/jemalloc-sys/configure/configure.backup ./vendor/jemalloc-sys/configure/configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./vendor/jemalloc-sys/configure/configure + diff -u ./vendor/jemalloc-sys/configure/configure.backup ./vendor/jemalloc-sys/configure/configure --- ./vendor/jemalloc-sys/configure/configure.backup 2024-02-04 22:52:04.000000000 +0800 +++ ./vendor/jemalloc-sys/configure/configure 2024-03-22 18:09:25.375280829 +0800 @@ -2140,7 +2140,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./vendor/jemalloc-sys/configure/configure + diff -u ./vendor/jemalloc-sys/configure/configure.backup ./vendor/jemalloc-sys/configure/configure + mv ./vendor/jemalloc-sys/configure/configure.backup ./vendor/jemalloc-sys/configure/configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./vendor/jemalloc-sys/configure/configure + diff -u ./vendor/jemalloc-sys/configure/configure.backup ./vendor/jemalloc-sys/configure/configure + mv ./vendor/jemalloc-sys/configure/configure.backup ./vendor/jemalloc-sys/configure/configure + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./vendor/libffi-sys/libffi/configure + diff -u ./vendor/libffi-sys/libffi/configure.backup ./vendor/libffi-sys/libffi/configure + mv ./vendor/libffi-sys/libffi/configure.backup ./vendor/libffi-sys/libffi/configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./vendor/libffi-sys/libffi/configure + diff -u ./vendor/libffi-sys/libffi/configure.backup ./vendor/libffi-sys/libffi/configure + mv ./vendor/libffi-sys/libffi/configure.backup ./vendor/libffi-sys/libffi/configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./vendor/libffi-sys/libffi/configure + diff -u ./vendor/libffi-sys/libffi/configure.backup ./vendor/libffi-sys/libffi/configure --- ./vendor/libffi-sys/libffi/configure.backup 2024-02-04 22:52:04.000000000 +0800 +++ ./vendor/libffi-sys/libffi/configure 2024-03-22 18:09:25.403281733 +0800 @@ -1823,7 +1823,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./vendor/libffi-sys/libffi/configure + diff -u ./vendor/libffi-sys/libffi/configure.backup ./vendor/libffi-sys/libffi/configure + mv ./vendor/libffi-sys/libffi/configure.backup ./vendor/libffi-sys/libffi/configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./vendor/libffi-sys/libffi/configure + diff -u ./vendor/libffi-sys/libffi/configure.backup ./vendor/libffi-sys/libffi/configure --- ./vendor/libffi-sys/libffi/configure.backup 2024-03-22 18:09:25.403281733 +0800 +++ ./vendor/libffi-sys/libffi/configure 2024-03-22 18:09:25.418282216 +0800 @@ -8221,7 +8221,7 @@ # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" @@ -21204,7 +21204,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./vendor/tikv-jemalloc-sys/configure/configure + diff -u ./vendor/tikv-jemalloc-sys/configure/configure.backup ./vendor/tikv-jemalloc-sys/configure/configure + mv ./vendor/tikv-jemalloc-sys/configure/configure.backup ./vendor/tikv-jemalloc-sys/configure/configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./vendor/tikv-jemalloc-sys/configure/configure + diff -u ./vendor/tikv-jemalloc-sys/configure/configure.backup ./vendor/tikv-jemalloc-sys/configure/configure + mv ./vendor/tikv-jemalloc-sys/configure/configure.backup ./vendor/tikv-jemalloc-sys/configure/configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./vendor/tikv-jemalloc-sys/configure/configure + diff -u ./vendor/tikv-jemalloc-sys/configure/configure.backup ./vendor/tikv-jemalloc-sys/configure/configure --- ./vendor/tikv-jemalloc-sys/configure/configure.backup 2024-02-04 22:52:05.000000000 +0800 +++ ./vendor/tikv-jemalloc-sys/configure/configure 2024-03-22 18:09:25.433282700 +0800 @@ -2140,7 +2140,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./vendor/tikv-jemalloc-sys/configure/configure + diff -u ./vendor/tikv-jemalloc-sys/configure/configure.backup ./vendor/tikv-jemalloc-sys/configure/configure + mv ./vendor/tikv-jemalloc-sys/configure/configure.backup ./vendor/tikv-jemalloc-sys/configure/configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./vendor/tikv-jemalloc-sys/configure/configure + diff -u ./vendor/tikv-jemalloc-sys/configure/configure.backup ./vendor/tikv-jemalloc-sys/configure/configure + mv ./vendor/tikv-jemalloc-sys/configure/configure.backup ./vendor/tikv-jemalloc-sys/configure/configure + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./vendor/libz-sys-1.1.9/src/zlib/configure + diff -u ./vendor/libz-sys-1.1.9/src/zlib/configure.backup ./vendor/libz-sys-1.1.9/src/zlib/configure + mv ./vendor/libz-sys-1.1.9/src/zlib/configure.backup ./vendor/libz-sys-1.1.9/src/zlib/configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./vendor/libz-sys-1.1.9/src/zlib/configure + diff -u ./vendor/libz-sys-1.1.9/src/zlib/configure.backup ./vendor/libz-sys-1.1.9/src/zlib/configure + mv ./vendor/libz-sys-1.1.9/src/zlib/configure.backup ./vendor/libz-sys-1.1.9/src/zlib/configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./vendor/libz-sys-1.1.9/src/zlib/configure + diff -u ./vendor/libz-sys-1.1.9/src/zlib/configure.backup ./vendor/libz-sys-1.1.9/src/zlib/configure + mv ./vendor/libz-sys-1.1.9/src/zlib/configure.backup ./vendor/libz-sys-1.1.9/src/zlib/configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./vendor/libz-sys-1.1.9/src/zlib/configure + diff -u ./vendor/libz-sys-1.1.9/src/zlib/configure.backup ./vendor/libz-sys-1.1.9/src/zlib/configure + mv ./vendor/libz-sys-1.1.9/src/zlib/configure.backup ./vendor/libz-sys-1.1.9/src/zlib/configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./vendor/libz-sys-1.1.9/src/zlib/configure + diff -u ./vendor/libz-sys-1.1.9/src/zlib/configure.backup ./vendor/libz-sys-1.1.9/src/zlib/configure + mv ./vendor/libz-sys-1.1.9/src/zlib/configure.backup ./vendor/libz-sys-1.1.9/src/zlib/configure + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + diff -u ./vendor/libz-sys-1.1.9/src/zlib-ng/configure.backup ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + mv ./vendor/libz-sys-1.1.9/src/zlib-ng/configure.backup ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + diff -u ./vendor/libz-sys-1.1.9/src/zlib-ng/configure.backup ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + mv ./vendor/libz-sys-1.1.9/src/zlib-ng/configure.backup ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + diff -u ./vendor/libz-sys-1.1.9/src/zlib-ng/configure.backup ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + mv ./vendor/libz-sys-1.1.9/src/zlib-ng/configure.backup ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + diff -u ./vendor/libz-sys-1.1.9/src/zlib-ng/configure.backup ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + mv ./vendor/libz-sys-1.1.9/src/zlib-ng/configure.backup ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + diff -u ./vendor/libz-sys-1.1.9/src/zlib-ng/configure.backup ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + mv ./vendor/libz-sys-1.1.9/src/zlib-ng/configure.backup ./vendor/libz-sys-1.1.9/src/zlib-ng/configure + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 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/anolis/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/anolis/config.sub ./vendor/libffi-sys/libffi/config.sub '/usr/lib/rpm/anolis/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/anolis/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/anolis/config.guess ./vendor/libffi-sys/libffi/config.guess '/usr/lib/rpm/anolis/config.guess' -> './vendor/libffi-sys/libffi/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./vendor/libz-sys-1.1.9/src/zlib-ng/tools/config.sub + '[' -f /usr/lib/rpm/anolis/config.sub ']' + /usr/bin/rm -f ./vendor/libz-sys-1.1.9/src/zlib-ng/tools/config.sub ++ basename ./vendor/libz-sys-1.1.9/src/zlib-ng/tools/config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub ./vendor/libz-sys-1.1.9/src/zlib-ng/tools/config.sub '/usr/lib/rpm/anolis/config.sub' -> './vendor/libz-sys-1.1.9/src/zlib-ng/tools/config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-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/anolis/anolis-hardened-ld"~' ./vendor/libffi-sys/libffi/ltmain.sh ++ dirname ./configure + /usr/lib/rpm/anolis/force-as-needed-for-shared-lib-in-libtool . Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/anolis/fix-libtool-ltmain-from-overlinking ++ dirname ./configure + /usr/lib/rpm/anolis/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/anolis/fix-dlsearch-path-in-libtool . lib64 + ./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.x86_64-unknown-linux-gnu.profiler=/usr/lib64/clang/17/lib/libclang_rt.profile-x86_64.a --set target.wasm32-wasi.wasi-root=/builddir/build/BUILD/wasi-libc-03b228e46bb02fcc5927253e1b8ad715072b1ae4/sysroot --python=/usr/bin/python3 --local-rust-root=/usr --set build.rustfmt=/bin/true --disable-llvm-static-stdcpp --llvm-root=/usr --disable-codegen-tests --enable-llvm-link-shared --debuginfo-level=2 --set build.build-stage=2 --set build.doc-stage=2 --set build.install-stage=2 --set build.test-stage=2 --enable-extended --tools=cargo,clippy,rls,rust-analyzer,rustfmt,src --enable-vendor --enable-verbose-tests --dist-compression-formats=gz --disable-rpath --release-channel=stable '--release-description=Anolis 23 1.76.0-1.an23' configure: processing command line configure: configure: build.configure-args := ['--build=x86_64-Anolis-linux', '--host=x86_64 ... 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.x86_64-unknown-linux-gnu.profiler := /usr/lib64/clang/17/lib/li ... configure: target.wasm32-wasi.wasi-root := /builddir/build/BUILD/wasi-libc-03b228 ... configure: build.rustfmt := /bin/true configure: build.build-stage := 2 configure: build.doc-stage := 2 configure: build.install-stage := 2 configure: build.test-stage := 2 configure: build.python := /usr/bin/python3 configure: build.rustc := /usr/bin/rustc configure: build.cargo := /usr/bin/cargo configure: llvm.static-libstdcpp := False configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/bin/llvm-config configure: rust.codegen-tests := False configure: llvm.link-shared := True configure: rust.debuginfo-level := 2 configure: build.extended := True configure: build.tools := ['cargo', 'clippy', 'rls', 'rust-analyzer', 'r ... configure: build.vendor := True configure: rust.verbose-tests := True configure: dist.compression-formats := ['gz'] configure: rust.rpath := False configure: rust.channel := stable configure: rust.description := Anolis 23 1.76.0-1.an23 configure: profile := dist 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.76.0-src/x.py --help` + /usr/bin/python3 ./x.py --keep-stage=0 --keep-stage=1 build Building bootstrap Compiling memchr v2.5.0 Compiling proc-macro2 v1.0.60 Compiling cfg-if v1.0.0 Compiling unicode-ident v1.0.0 Compiling quote v1.0.26 Compiling libc v0.2.150 Compiling typenum v1.15.0 Compiling version_check v0.9.4 Compiling cc v1.0.73 Compiling serde v1.0.160 Compiling lazy_static v1.4.0 Compiling log v0.4.17 Compiling regex-automata v0.1.10 Compiling pkg-config v0.3.25 Compiling heck v0.4.1 Compiling serde_derive v1.0.160 Compiling crossbeam-utils v0.8.14 Compiling regex-syntax v0.6.26 Compiling anstyle v1.0.0 Compiling clap_lex v0.6.0 Compiling rustix v0.38.19 Compiling same-file v1.0.6 Compiling fnv v1.0.7 Compiling once_cell v1.12.0 Compiling bitflags v2.4.1 Compiling serde_json v1.0.81 Compiling linux-raw-sys v0.4.10 Compiling semver v1.0.17 Compiling cpufeatures v0.2.5 Compiling ryu v1.0.10 Compiling itoa v1.0.2 Compiling bootstrap v0.0.0 (/builddir/build/BUILD/rustc-1.76.0-src/src/bootstrap) Compiling home v0.5.4 Compiling termcolor v1.2.0 Compiling walkdir v2.3.2 Compiling clap_builder v4.4.7 Compiling thread_local v1.1.4 Compiling generic-array v0.14.5 Compiling cmake v0.1.48 Compiling aho-corasick v0.7.18 Compiling bstr v0.2.17 Compiling object v0.32.0 Compiling lzma-sys v0.1.17 Compiling syn v2.0.8 Compiling filetime v0.2.16 Compiling xattr v0.2.3 Compiling tar v0.4.38 Compiling xz2 v0.1.6 Compiling opener v0.5.0 Compiling crypto-common v0.1.3 Compiling block-buffer v0.10.2 Compiling digest v0.10.3 Compiling sha2 v0.10.2 Compiling regex v1.5.6 Compiling fd-lock v3.0.13 Compiling globset v0.4.8 Compiling ignore v0.4.18 Compiling toml v0.5.9 Compiling clap_derive v4.4.7 Compiling clap v4.4.7 Compiling clap_complete v4.4.3 Compiling build_helper v0.1.0 (/builddir/build/BUILD/rustc-1.76.0-src/src/tools/build_helper) Finished dev [unoptimized] target(s) in 15.26s WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations. NOTE: to silence this warning, add `change-id = 118703` at the top of `config.toml` WARNING: Using a potentially old libstd. This may not behave well. ERROR: Unable to find the stamp file /builddir/build/BUILD/rustc-1.76.0-src/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/.libstd.stamp, did you try to keep a nonexistent build stage? Build completed unsuccessfully in 0:00:15 error: Bad exit status from /var/tmp/rpm-tmp.h4OR92 (%build) Bad exit status from /var/tmp/rpm-tmp.h4OR92 (%build) RPM build errors: 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