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/rust-zram-generator.spec'], chrootPath='/var/lib/mock/dist-an23-loongarch-build-319428-67753/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=988gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.18w_6_76:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.18w_6_76:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'f7109a814f7145df8c783e67cedf65df', '-D', '/var/lib/mock/dist-an23-loongarch-build-319428-67753/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.18w_6_76:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/rust-zram-generator.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: loongarch64 Building for target loongarch64 setting SOURCE_DATE_EPOCH=1681516800 Wrote: /builddir/build/SRPMS/rust-zram-generator-1.1.2-2.an23.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/rust-zram-generator.spec'], chrootPath='/var/lib/mock/dist-an23-loongarch-build-319428-67753/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=988gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.18w_6_76:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.18w_6_76:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'bf67b400a657431cb1c8abed6bcbacb6', '-D', '/var/lib/mock/dist-an23-loongarch-build-319428-67753/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.18w_6_76:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/rust-zram-generator.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: loongarch64 Building for target loongarch64 setting SOURCE_DATE_EPOCH=1681516800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.s2uYlt + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf zram-generator-1.1.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v1.1.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd zram-generator-1.1.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + cd zram-generator-1.1.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/zram-generator-1.1.2-vendor.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -pva /builddir/build/SOURCES/zram-generator.conf . '/builddir/build/SOURCES/zram-generator.conf' -> './zram-generator.conf' + set -eu + /usr/bin/mkdir -p .cargo + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + mkdir -p .cargo + cat + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.izAzXK + 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 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-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 -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 -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 -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/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 zram-generator-1.1.2 + export SYSTEMD_UTIL_DIR=/usr/lib/systemd + SYSTEMD_UTIL_DIR=/usr/lib/systemd + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' /usr/bin/cargo build -j32 -Z avoid-dev-deps --release Compiling libc v0.2.141 Compiling cfg-if v1.0.0 Compiling ppv-lite86 v0.2.17 Compiling ahash v0.4.7 Compiling log v0.4.17 Compiling anyhow v1.0.70 Compiling unicode-width v0.1.10 Compiling bitflags v1.3.2 Compiling fasteval v0.2.4 Compiling textwrap v0.11.0 Compiling clap v2.34.0 Compiling hashbrown v0.9.1 Compiling liboverdrop v0.0.2 Compiling getrandom v0.2.9 Compiling rand_core v0.6.4 Compiling rand_chacha v0.3.1 Compiling rand v0.8.5 Compiling dlv-list v0.2.3 Compiling ordered-multimap v0.3.1 Compiling rust-ini v0.17.0 Compiling zram-generator v1.1.2 (/builddir/build/BUILD/zram-generator-1.1.2) Finished release [optimized] target(s) in 3m 09s + /usr/bin/make -O -j32 V=1 VERBOSE=1 SYSTEMD_SYSTEM_UNIT_DIR=/usr/lib/systemd/system SYSTEMD_SYSTEM_GENERATOR_DIR=/usr/lib/systemd/system-generators systemd-service sed -e 's,@SYSTEMD_SYSTEM_GENERATOR_DIR@,/usr/lib/systemd/system-generators,' \ < units/systemd-zram-setup@.service.in \ > units/systemd-zram-setup@.service + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.QVo6sL + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64 ++ dirname /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64 + 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 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-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 -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 -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 -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/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 zram-generator-1.1.2 + export SYSTEMD_UTIL_DIR=/usr/lib/systemd + SYSTEMD_UTIL_DIR=/usr/lib/systemd + set -eu + /usr/bin/cargo-inspector --target-kinds Cargo.toml ++ printf 'lib\nrlib\nproc-macro' + grep -q -F -x 'lib rlib proc-macro' ++ /usr/bin/cargo-inspector --name Cargo.toml + CRATE_NAME=zram-generator ++ /usr/bin/cargo-inspector --version Cargo.toml + CRATE_VERSION=1.1.2 + REG_DIR=/builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/share/cargo/registry/zram-generator-1.1.2 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/share/cargo/registry/zram-generator-1.1.2 + gawk -i inplace -v INPLACE_SUFFIX=.deps '/^\[((.+\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\[/{f=0}; !f' Cargo.toml + xargs -d '\n' /usr/bin/cp --parents -a -t /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/share/cargo/registry/zram-generator-1.1.2 + grep -w -E -v 'Cargo.(lock|toml.orig)' + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' /usr/bin/cargo package -l + /usr/bin/mv Cargo.toml.deps Cargo.toml + /usr/bin/cp -a Cargo.toml /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/share/cargo/registry/zram-generator-1.1.2/Cargo.toml + /usr/bin/rm -f /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/share/cargo/registry/zram-generator-1.1.2/Cargo.toml.deps + echo '{"files":{},"package":""}' + grep -q -F -x bin + /usr/bin/cargo-inspector --target-kinds Cargo.toml + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' /usr/bin/cargo install -j32 -Z avoid-dev-deps --no-track --path . Installing zram-generator v1.1.2 (/builddir/build/BUILD/zram-generator-1.1.2) Finished release [optimized] target(s) in 1.35s Installing /builddir/build/BUILD/zram-generator-1.1.2/.cargo/bin/zram-generator Installed package `zram-generator v1.1.2 (/builddir/build/BUILD/zram-generator-1.1.2)` (executable `zram-generator`) warning: be sure to add `/builddir/build/BUILD/zram-generator-1.1.2/.cargo/bin` to your PATH to be able to run the installed binaries + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64 'INSTALL=/usr/bin/install -p' SYSTEMD_SYSTEM_UNIT_DIR=/usr/lib/systemd/system SYSTEMD_SYSTEM_GENERATOR_DIR=/usr/lib/systemd/system-generators NOBUILD=1 NOMAN=1 /usr/bin/install -p -Dpm755 target/release/zram-generator -t /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/lib/systemd/system-generators/ /usr/bin/install -p -Dpm644 units/systemd-zram-setup@.service -t /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/lib/systemd/system/ /usr/bin/install -p -Dpm644 zram-generator.conf.example -t /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/share/doc/zram-generator/ + mkdir -p /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/lib/systemd + install -p -m 0644 /builddir/build/SOURCES/zram-generator.conf /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/lib/systemd + rm -rf /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/share/cargo/registry/zram-generator-1.1.2 + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 1.1.2-2.an23 --unique-debug-suffix -1.1.2-2.an23.loongarch64 --unique-debug-src-base rust-zram-generator-1.1.2-2.an23.loongarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/zram-generator-1.1.2 extracting debug info from /builddir/build/BUILDROOT/rust-zram-generator-1.1.2-2.an23.loongarch64/usr/lib/systemd/system-generators/zram-generator original debug info size: 18084kB, size after compression: 14904kB /usr/bin/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 3695 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/anolis/brp-ldconfig + COMPRESS='zstd -f --rm -19 -T0' + COMPRESS_EXT=.zst + /usr/lib/rpm/brp-compress + /usr/lib/rpm/anolis/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/anolis/clean_perl + /usr/lib/rpm/anolis/check_elf_files + /usr/lib/rpm/anolis/brp-mangle-shebangs + /usr/lib/rpm/anolis/remove-info-dir + /usr/lib/rpm/anolis/check-desktop-files + /usr/lib/rpm/anolis/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/anolis/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.wtGrQV + 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 -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/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-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 -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 -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 -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/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 zram-generator-1.1.2 + export SYSTEMD_UTIL_DIR=/usr/lib/systemd + SYSTEMD_UTIL_DIR=/usr/lib/systemd + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' /usr/bin/cargo test -j32 -Z avoid-dev-deps --release --no-fail-fast Compiling libc v0.2.141 Compiling cfg-if v1.0.0 Compiling ppv-lite86 v0.2.17 Compiling proc-macro2 v1.0.56 Compiling bitflags v1.3.2 Compiling autocfg v1.1.0 Compiling ahash v0.4.7 Compiling unicode-ident v1.0.8 Compiling io-lifetimes v1.0.10 Compiling quote v1.0.26 Compiling rustix v0.37.11 Compiling syn v1.0.109 Compiling unicode-width v0.1.10 Compiling linux-raw-sys v0.3.1 Compiling fastrand v1.9.0 Compiling fasteval v0.2.4 Compiling fs_extra v1.3.0 Compiling anyhow v1.0.70 error[E0432]: unresolved import `crate::general` --> /builddir/build/BUILD/zram-generator-1.1.2/vendor/linux-raw-sys/src/lib.rs:84:16 | 84 | use crate::general::{cmsghdr, msghdr}; | ^^^^^^^ could not find `general` in the crate root error[E0432]: unresolved import `crate::general` --> /builddir/build/BUILD/zram-generator-1.1.2/vendor/linux-raw-sys/src/lib.rs:137:16 | 137 | use crate::general::__kernel_fd_set; | ^^^^^^^ could not find `general` in the crate root error[E0433]: failed to resolve: use of undeclared crate or module `general` --> /builddir/build/BUILD/zram-generator-1.1.2/vendor/linux-raw-sys/src/lib.rs:67:20 | 67 | impl PartialEq for general::__kernel_timespec { | ^^^^^^^ use of undeclared crate or module `general` error[E0433]: failed to resolve: use of undeclared crate or module `general` --> /builddir/build/BUILD/zram-generator-1.1.2/vendor/linux-raw-sys/src/lib.rs:79:13 | 79 | impl Eq for general::__kernel_timespec {} | ^^^^^^^ use of undeclared crate or module `general` Compiling log v0.4.17 Some errors have detailed explanations: E0432, E0433. For more information about an error, try `rustc --explain E0432`. error: could not compile `linux-raw-sys` due to 4 previous errors warning: build failed, waiting for other jobs to finish... RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.wtGrQV (%check) Bad exit status from /var/tmp/rpm-tmp.wtGrQV (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M bf67b400a657431cb1c8abed6bcbacb6 -D /var/lib/mock/dist-an23-loongarch-build-319428-67753/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.18w_6_76:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\\033]0;\\007" --setenv=PS1= \\s-\\v\\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/rust-zram-generator.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: # /usr/bin/systemd-nspawn -q -M bf67b400a657431cb1c8abed6bcbacb6 -D /var/lib/mock/dist-an23-loongarch-build-319428-67753/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.18w_6_76:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/rust-zram-generator.spec