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 riscv64 --nodeps /builddir/build/SPECS/rust-nix0.14.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-981391-29038/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-nix0.14.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674259200 Wrote: /builddir/build/SRPMS/rust-nix0.14-0.14.1-9.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-nix0.14.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-981391-29038/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-nix0.14.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674259200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XT8mo0 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nix-0.14.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/nix-0.14.1.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd nix-0.14.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/nix-fix-metadata.diff + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + set -eu + /usr/bin/mkdir -p .cargo + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.5k55eu + umask 022 + cd /builddir/build/BUILD + cd nix-0.14.1 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-nix0.14-0.14.1-9.fc38.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-nix0.14.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-981391-29038/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-nix0.14.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674259200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Y6qoKp + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nix-0.14.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/nix-0.14.1.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd nix-0.14.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/nix-fix-metadata.diff + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + set -eu + /usr/bin/mkdir -p .cargo + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.rRwESC + umask 022 + cd /builddir/build/BUILD + cd nix-0.14.1 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-nix0.14-0.14.1-9.fc38.buildreqs.nosrc.rpm Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-nix0.14.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-981391-29038/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-nix0.14.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674259200 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.2cyNkQ + umask 022 + cd /builddir/build/BUILD + cd nix-0.14.1 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.WQMU0K + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -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,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd nix-0.14.1 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' /usr/bin/cargo build -j8 -Z avoid-dev-deps --release Compiling libc v0.2.140 Compiling nix v0.14.1 (/builddir/build/BUILD/nix-0.14.1) Compiling cfg-if v0.1.10 Compiling bitflags v1.3.2 Compiling void v1.0.2 Running `/usr/bin/rustc --crate-name build_script_build /usr/share/cargo/registry/libc-0.2.140/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=9a918c2161aee77e -C extra-filename=-9a918c2161aee77e --out-dir /builddir/build/BUILD/nix-0.14.1/target/release/build/libc-9a918c2161aee77e -L dependency=/builddir/build/BUILD/nix-0.14.1/target/release/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name build_script_build build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C metadata=17e1ffcc458f1d60 -C extra-filename=-17e1ffcc458f1d60 --out-dir /builddir/build/BUILD/nix-0.14.1/target/release/build/nix-17e1ffcc458f1d60 -L dependency=/builddir/build/BUILD/nix-0.14.1/target/release/deps -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name cfg_if --edition=2018 /usr/share/cargo/registry/cfg-if-0.1.10/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=d4a0e663fe400d1b -C extra-filename=-d4a0e663fe400d1b --out-dir /builddir/build/BUILD/nix-0.14.1/target/release/deps -L dependency=/builddir/build/BUILD/nix-0.14.1/target/release/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name void /usr/share/cargo/registry/void-1.0.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=c3dc4406a26be5f6 -C extra-filename=-c3dc4406a26be5f6 --out-dir /builddir/build/BUILD/nix-0.14.1/target/release/deps -L dependency=/builddir/build/BUILD/nix-0.14.1/target/release/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/usr/bin/rustc --crate-name bitflags --edition=2018 /usr/share/cargo/registry/bitflags-1.3.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' -C metadata=c2307db5e8653568 -C extra-filename=-c2307db5e8653568 --out-dir /builddir/build/BUILD/nix-0.14.1/target/release/deps -L dependency=/builddir/build/BUILD/nix-0.14.1/target/release/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` Running `/builddir/build/BUILD/nix-0.14.1/target/release/build/nix-17e1ffcc458f1d60/build-script-build` Running `/builddir/build/BUILD/nix-0.14.1/target/release/build/libc-9a918c2161aee77e/build-script-build` Running `/usr/bin/rustc --crate-name libc /usr/share/cargo/registry/libc-0.2.140/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=843f22f2d53c1c79 -C extra-filename=-843f22f2d53c1c79 --out-dir /builddir/build/BUILD/nix-0.14.1/target/release/deps -L dependency=/builddir/build/BUILD/nix-0.14.1/target/release/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_int128 --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor --cfg libc_non_exhaustive --cfg libc_long_array --cfg libc_ptr_addr_of --cfg libc_underscore_const_names --cfg libc_const_extern_fn` Running `/usr/bin/rustc --crate-name nix src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=21a12243c389b024 -C extra-filename=-21a12243c389b024 --out-dir /builddir/build/BUILD/nix-0.14.1/target/release/deps -L dependency=/builddir/build/BUILD/nix-0.14.1/target/release/deps --extern bitflags=/builddir/build/BUILD/nix-0.14.1/target/release/deps/libbitflags-c2307db5e8653568.rmeta --extern cfg_if=/builddir/build/BUILD/nix-0.14.1/target/release/deps/libcfg_if-d4a0e663fe400d1b.rmeta --extern libc=/builddir/build/BUILD/nix-0.14.1/target/release/deps/liblibc-843f22f2d53c1c79.rmeta --extern void=/builddir/build/BUILD/nix-0.14.1/target/release/deps/libvoid-c3dc4406a26be5f6.rmeta -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` error[E0432]: unresolved import `self::consts` --> src/sys/ioctl/linux.rs:50:15 | 50 | pub use self::consts::*; | ^^^^^^ could not find `consts` in `self` error[E0425]: cannot find value `SIZEBITS` in this scope --> src/sys/ioctl/linux.rs:59:50 | 59 | 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 --> src/sys/ioctl/linux.rs:66:44 | 66 | pub const SIZEMASK: ioctl_num_type = (1 << SIZEBITS) - 1; | ^^^^^^^^ not found in this scope error[E0425]: cannot find value `DIRBITS` in this scope --> src/sys/ioctl/linux.rs:68:43 | 13 | pub const NRBITS: ioctl_num_type = 8; | ------------------------------------- similarly named constant `NRBITS` defined here ... 68 | pub const DIRMASK: ioctl_num_type = (1 << DIRBITS) - 1; | ^^^^^^^ help: a constant with a similar name exists: `NRBITS` warning: 8th rule of macro `libc_enum` is never used --> src/macros.rs:204:5 | 204 | / (@accumulate_entries 205 | | $prefix:tt, 206 | | [$($entries:tt)*]; 207 | | $entry:ident as $ty:ty, $($tail:tt)* 208 | | ) => { | |_____^ | note: the lint level is defined here --> src/lib.rs:13:9 | 13 | #![deny(unused)] | ^^^^^^ = note: `#[warn(unused_macro_rules)]` implied by `#[warn(unused)]` warning: `...` range patterns are deprecated --> src/features.rs:42:21 | 42 | b'0'...b'9' => { | ^^^ help: use `..=` for an inclusive range | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default warning: unnecessary parentheses around type --> src/mqueue.rs:154:46 | 154 | pub fn mq_set_nonblock(mqd: mqd_t) -> Result<(MqAttr)> { | ^ ^ | = note: `#[warn(unused_parens)]` implied by `#[warn(unused)]` help: remove these parentheses | 154 - pub fn mq_set_nonblock(mqd: mqd_t) -> Result<(MqAttr)> { 154 + pub fn mq_set_nonblock(mqd: mqd_t) -> Result { | warning: unnecessary parentheses around type --> src/mqueue.rs:166:49 | 166 | pub fn mq_remove_nonblock(mqd: mqd_t) -> Result<(MqAttr)> { | ^ ^ | help: remove these parentheses | 166 - pub fn mq_remove_nonblock(mqd: mqd_t) -> Result<(MqAttr)> { 166 + pub fn mq_remove_nonblock(mqd: mqd_t) -> Result { | warning: 2nd rule of macro `sockopt_impl` is never used --> src/sys/socket/sockopt.rs:131:5 | 131 | (GetOnly, $name:ident, $level:path, $flag:path, u8) => { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: 3rd rule of macro `sockopt_impl` is never used --> src/sys/socket/sockopt.rs:135:5 | 135 | (GetOnly, $name:ident, $level:path, $flag:path, usize) => { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: 4th rule of macro `sockopt_impl` is never used --> src/sys/socket/sockopt.rs:139:5 | 139 | (SetOnly, $name:ident, $level:path, $flag:path, bool) => { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: 5th rule of macro `sockopt_impl` is never used --> src/sys/socket/sockopt.rs:143:5 | 143 | (SetOnly, $name:ident, $level:path, $flag:path, u8) => { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/dir.rs:112:52 | 112 | let mut ent: Entry = Entry(::std::mem::uninitialized()); | ^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/ifaddrs.rs:128:55 | 128 | let mut addrs: *mut libc::ifaddrs = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/mqueue.rs:135:34 | 135 | let mut attr = unsafe { mem::uninitialized::() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/mqueue.rs:146:34 | 146 | let mut attr = unsafe { mem::uninitialized::() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/mqueue.rs:54:38 | 54 | let mut attr = unsafe { mem::uninitialized::() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/pty.rs:222:48 | 222 | let mut slave: libc::c_int = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/pty.rs:223:49 | 223 | let mut master: libc::c_int = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/pty.rs:298:49 | 298 | let mut master: libc::c_int = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/ptrace/linux.rs:225:33 | 225 | let data: T = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/quota.rs:264:35 | 264 | let mut dqblk = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/select.rs:20:39 | 20 | let mut fdset = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/signal.rs:507:27 | 507 | let mut oldact = mem::uninitialized::(); | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/signal.rs:340:56 | 340 | let mut sigset: libc::sigset_t = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/signal.rs:347:56 | 347 | let mut sigset: libc::sigset_t = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/signal.rs:385:49 | 385 | let mut oldmask: SigSet = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/signal.rs:407:49 | 407 | let mut oldmask: SigSet = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/signal.rs:415:53 | 415 | let mut signum: libc::c_int = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/signal.rs:457:35 | 457 | let mut s = unsafe { mem::uninitialized::() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/signalfd.rs:101:69 | 101 | let mut buffer: [u8; SIGNALFD_SIGINFO_SIZE] = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/socket/mod.rs:909:44 | 909 | let mut mhdr: msghdr = unsafe{mem::uninitialized()}; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/socket/mod.rs:950:55 | 950 | let mut address: sockaddr_storage = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/socket/mod.rs:961:44 | 961 | let mut mhdr: msghdr = unsafe{mem::uninitialized()}; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/socket/mod.rs:1242:43 | 1242 | let addr: sockaddr_storage = mem::uninitialized(); | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/socket/mod.rs:1258:43 | 1258 | let addr: sockaddr_storage = mem::uninitialized(); | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/socket/mod.rs:398:23 | 398 | unsafe { mem::uninitialized() } | ^^^^^^^^^^^^^ warning: use of deprecated struct `libc::af_alg_iv`: this struct has unsafe trait implementations that will be removed in the future --> src/sys/socket/mod.rs:778:58 | 778 | let alg_iv = cmsg_data as *mut libc::af_alg_iv; | ^^^^^^^^^ warning: use of deprecated struct `libc::af_alg_iv`: this struct has unsafe trait implementations that will be removed in the future --> src/sys/socket/mod.rs:818:38 | 818 | mem::size_of::() + iv.len() | ^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/socket/addr.rs:552:60 | 552 | let mut in6_addr_var: libc::in6_addr = unsafe{mem::uninitialized()}; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/stat.rs:81:33 | 81 | let mut dst = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/stat.rs:94:33 | 94 | let mut dst = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/stat.rs:107:33 | 107 | let mut dst = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/stat.rs:116:33 | 116 | let mut dst = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/statvfs.rs:128:38 | 128 | let mut stat: Statvfs = mem::uninitialized(); | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/statvfs.rs:141:38 | 141 | let mut stat: Statvfs = mem::uninitialized(); | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/sysinfo.rs:70:49 | 70 | let mut info: libc::sysinfo = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/termios.rs:1049:52 | 1049 | let mut termios: libc::termios = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/termios.rs:254:38 | 254 | inner: RefCell::new(mem::uninitialized()), | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/sys/utsname.rs:35:37 | 35 | let mut ret: UtsName = mem::uninitialized(); | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/unistd.rs:1010:40 | 1010 | let mut fds: [c_int; 2] = mem::uninitialized(); | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/unistd.rs:1037:45 | 1037 | let mut fds: [c_int; 2] = unsafe { mem::uninitialized() }; | ^^^^^^^^^^^^^ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:105:20 | 105 | BoxedSlice(Box>), | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see = note: `#[warn(bare_trait_objects)]` on by default help: use `dyn` | 105 | BoxedSlice(Box>), | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:107:23 | 107 | BoxedMutSlice(Box>), | ^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 107 | BoxedMutSlice(Box>), | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sched.rs:39:28 | 39 | pub type CloneCb<'a> = Box isize + 'a>; | ^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 39 | pub type CloneCb<'a> = Box isize + 'a>; | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:168:49 | 168 | pub fn boxed_slice(&mut self) -> Option>> { | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 168 | pub fn boxed_slice(&mut self) -> Option>> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:190:53 | 190 | pub fn boxed_mut_slice(&mut self) -> Option>> { | ^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 190 | pub fn boxed_mut_slice(&mut self) -> Option>> { | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:451:62 | 451 | pub fn from_boxed_slice(fd: RawFd, offs: off_t, buf: Box>, | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 451 | pub fn from_boxed_slice(fd: RawFd, offs: off_t, buf: Box>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:519:46 | 519 | ... mut buf: Box>, | ^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 519 | mut buf: Box>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/socket/mod.rs:947:48 | 947 | cmsg_buffer: Option<&'a mut CmsgBuffer>, | ^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 947 | cmsg_buffer: Option<&'a mut dyn CmsgBuffer>, | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sched.rs:113:71 | 113 | libc::clone(mem::transmute(callback as extern "C" fn(*mut Box<::std::ops::FnMut() -> isize>) -> i32), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 113 | libc::clone(mem::transmute(callback as extern "C" fn(*mut Box isize)>) -> i32), | +++++ + warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:119:33 | 119 | let borrowed : &Borrow<[u8]> = bs.borrow(); | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 119 | let borrowed : &dyn Borrow<[u8]> = bs.borrow(); | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:124:33 | 124 | let borrowed : &BorrowMut<[u8]> = bms.borrow(); | ^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 124 | let borrowed : &dyn BorrowMut<[u8]> = bms.borrow(); | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:121:40 | 121 | borrowed as *const Borrow<[u8]>) | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 121 | borrowed as *const dyn Borrow<[u8]>) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:126:40 | 126 | borrowed as *const BorrowMut<[u8]>) | ^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 126 | borrowed as *const dyn BorrowMut<[u8]>) | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:456:29 | 456 | let borrowed : &Borrow<[u8]> = buf.borrow(); | ^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 456 | let borrowed : &dyn Borrow<[u8]> = buf.borrow(); | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/sys/aio.rs:524:33 | 524 | let borrowed : &mut BorrowMut<[u8]> = buf.borrow_mut(); | ^^^^^^^^^^^^^^^ | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! = note: for more information, see help: use `dyn` | 524 | let borrowed : &mut dyn BorrowMut<[u8]> = buf.borrow_mut(); | +++ warning: use of deprecated field `libc::af_alg_iv::ivlen`: this struct has unsafe trait implementations that will be removed in the future --> src/sys/socket/mod.rs:779:21 | 779 | (*alg_iv).ivlen = iv.len() as u32; | ^^^^^^^^^^^^^^^ warning: use of deprecated field `libc::af_alg_iv::iv`: this struct has unsafe trait implementations that will be removed in the future --> src/sys/socket/mod.rs:782:25 | 782 | (*alg_iv).iv.as_mut_ptr(), | ^^^^^^^^^^^^ Some errors have detailed explanations: E0425, E0432. For more information about an error, try `rustc --explain E0425`. warning: `nix` (lib) generated 65 warnings error: could not compile `nix` (lib) due to 4 previous errors; 65 warnings emitted Caused by: process didn't exit successfully: `/usr/bin/rustc --crate-name nix src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=21a12243c389b024 -C extra-filename=-21a12243c389b024 --out-dir /builddir/build/BUILD/nix-0.14.1/target/release/deps -L dependency=/builddir/build/BUILD/nix-0.14.1/target/release/deps --extern bitflags=/builddir/build/BUILD/nix-0.14.1/target/release/deps/libbitflags-c2307db5e8653568.rmeta --extern cfg_if=/builddir/build/BUILD/nix-0.14.1/target/release/deps/libcfg_if-d4a0e663fe400d1b.rmeta --extern libc=/builddir/build/BUILD/nix-0.14.1/target/release/deps/liblibc-843f22f2d53c1c79.rmeta --extern void=/builddir/build/BUILD/nix-0.14.1/target/release/deps/libvoid-c3dc4406a26be5f6.rmeta -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn` (exit status: 1) error: Bad exit status from /var/tmp/rpm-tmp.WQMU0K (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.WQMU0K (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-nix0.14.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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 -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-nix0.14.spec