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/aardvark-dns.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-189840-12842/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/aardvark-dns.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/aardvark-dns-1.6.0-4.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/aardvark-dns.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-189840-12842/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/aardvark-dns.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.e1ZaZs + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf aardvark-dns-1.6.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/aardvark-dns-1.6.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd aardvark-dns-1.6.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'aardvark-dns-1.6.0 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + tar fx /builddir/build/SOURCES/aardvark-dns-v1.6.0-vendor.tar.gz + mkdir -p .cargo + cat + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qIy8I1 + 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 aardvark-dns-1.6.0 + /usr/bin/make build mkdir -p bin mkdir -p targets cargo build --release Compiling libc v0.2.140 Compiling proc-macro2 v1.0.54 Compiling autocfg v1.1.0 Compiling quote v1.0.26 Compiling unicode-ident v1.0.1 Compiling syn v1.0.98 Compiling cfg-if v1.0.0 Compiling version_check v0.9.4 Compiling futures-core v0.3.28 Compiling log v0.4.17 Compiling tinyvec_macros v0.1.0 Compiling futures-task v0.3.28 Compiling pin-project-lite v0.2.9 Compiling heck v0.4.0 Compiling pin-utils v0.1.0 Compiling matches v0.1.9 Compiling futures-util v0.3.28 Compiling once_cell v1.13.0 Compiling async-trait v0.1.56 Compiling serde_derive v1.0.139 Compiling ppv-lite86 v0.2.16 Compiling percent-encoding v2.1.0 Compiling smallvec v1.9.0 Compiling unicode-bidi v0.3.8 Compiling futures-channel v0.3.21 Compiling slab v0.4.6 Compiling num_threads v0.1.6 Compiling bytes v1.1.0 Compiling itoa v1.0.2 Compiling serde v1.0.139 Compiling lazy_static v1.4.0 Compiling iana-time-zone v0.1.53 Compiling tinyvec v1.6.0 Compiling data-encoding v2.3.2 Compiling endian-type v0.1.2 Compiling ipnet v2.5.0 Compiling futures-io v0.3.21 Compiling anyhow v1.0.70 Compiling bitflags v1.3.2 Compiling match_cfg v0.1.0 Compiling hashbrown v0.12.2 Compiling form_urlencoded v1.0.1 Compiling os_str_bytes v6.1.0 Compiling signal-hook v0.3.15 Compiling textwrap v0.16.0 Compiling tracing-core v0.1.29 Compiling termcolor v1.1.3 Compiling event-listener v2.5.2 Compiling strsim v0.10.0 Compiling quick-error v1.2.3 Compiling static_assertions v1.1.0 Compiling nibble_vec v0.1.0 Compiling resolv-conf v0.7.0 Compiling async-broadcast v0.5.1 Compiling proc-macro-error-attr v1.0.4 Compiling proc-macro-error v1.0.4 Compiling error-chain v0.12.4 Compiling clap_lex v0.2.4 Compiling num-traits v0.2.15 Compiling num-integer v0.1.45 Compiling tokio v1.27.0 Compiling memoffset v0.7.1 Compiling indexmap v1.9.1 Compiling radix_trie v0.2.1 Compiling syn v2.0.12 Compiling unicode-normalization v0.1.21 Compiling idna v0.2.3 Compiling getrandom v0.2.7 Compiling mio v0.8.4 Compiling num_cpus v1.13.1 Compiling socket2 v0.4.9 Compiling time v0.3.11 Compiling atty v0.2.14 Compiling signal-hook-registry v1.4.0 Compiling hostname v0.3.1 Compiling nix v0.26.2 Compiling rand_core v0.6.3 Compiling time v0.1.44 Compiling rand_chacha v0.3.1 Compiling url v2.2.2 Compiling chrono v0.4.24 error[E0432]: unresolved import `self::consts` --> /builddir/build/BUILD/aardvark-dns-1.6.0/vendor/nix/src/sys/ioctl/linux.rs:60:15 | 60 | pub use self::consts::*; | ^^^^^^ could not find `consts` in `self` Compiling rand v0.8.5 error[E0425]: cannot find value `SIZEBITS` in this scope --> /builddir/build/BUILD/aardvark-dns-1.6.0/vendor/nix/src/sys/ioctl/linux.rs:69:50 | 69 | pub const DIRSHIFT: ioctl_num_type = SIZESHIFT + SIZEBITS as ioctl_num_type; | ^^^^^^^^ not found in this scope error[E0425]: cannot find value `SIZEBITS` in this scope --> /builddir/build/BUILD/aardvark-dns-1.6.0/vendor/nix/src/sys/ioctl/linux.rs:76:44 | 76 | pub const SIZEMASK: ioctl_num_type = (1 << SIZEBITS) - 1; | ^^^^^^^^ not found in this scope error[E0425]: cannot find value `DIRBITS` in this scope --> /builddir/build/BUILD/aardvark-dns-1.6.0/vendor/nix/src/sys/ioctl/linux.rs:78:43 | 13 | pub const NRBITS: ioctl_num_type = 8; | ------------------------------------- similarly named constant `NRBITS` defined here ... 78 | pub const DIRMASK: ioctl_num_type = (1 << DIRBITS) - 1; | ^^^^^^^ help: a constant with a similar name exists: `NRBITS` Compiling syslog v6.0.1 Compiling futures-executor v0.3.21 Compiling aardvark-dns v1.6.0 (/builddir/build/BUILD/aardvark-dns-1.6.0) Some errors have detailed explanations: E0425, E0432. For more information about an error, try `rustc --explain E0425`. error: could not compile `nix` (lib) due to 4 previous errors warning: build failed, waiting for other jobs to finish... make: *** [Makefile:53: build] Error 101 error: Bad exit status from /var/tmp/rpm-tmp.qIy8I1 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.qIy8I1 (%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/aardvark-dns.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/aardvark-dns.spec