Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/rust-bytes0.4.spec'], chrootPath='/var/lib/mock/f40-build-2325020-58777/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-bytes0.4.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=1706486400 Wrote: /builddir/build/SRPMS/rust-bytes0.4-0.4.12-1.fc40.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-bytes0.4.spec'], chrootPath='/var/lib/mock/f40-build-2325020-58777/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-bytes0.4.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=1706486400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CdQnqu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bytes-0.4.12 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/bytes-0.4.12.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd bytes-0.4.12 + rm -rf /builddir/build/BUILD/bytes-0.4.12-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/bytes-0.4.12-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + set -euo pipefail + /usr/bin/mkdir -p target/rpm + /usr/bin/ln -s rpm target/release + /usr/bin/rm -rf .cargo/ + /usr/bin/mkdir -p .cargo + cat + 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.C5EbMA + umask 022 + cd /builddir/build/BUILD + cd bytes-0.4.12 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-bytes0.4-0.4.12-1.fc40.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-bytes0.4.spec'], chrootPath='/var/lib/mock/f40-build-2325020-58777/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-bytes0.4.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=1706486400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fBvZA8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bytes-0.4.12 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/bytes-0.4.12.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd bytes-0.4.12 + rm -rf /builddir/build/BUILD/bytes-0.4.12-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/bytes-0.4.12-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + set -euo pipefail + /usr/bin/mkdir -p target/rpm + /usr/bin/ln -s rpm target/release + /usr/bin/rm -rf .cargo/ + /usr/bin/mkdir -p .cargo + cat + 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.5Xk2z4 + umask 022 + cd /builddir/build/BUILD + cd bytes-0.4.12 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/rust-bytes0.4-0.4.12-1.fc40.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-bytes0.4.spec'], chrootPath='/var/lib/mock/f40-build-2325020-58777/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-bytes0.4.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=1706486400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.BYJmtZ + umask 022 + cd /builddir/build/BUILD + cd bytes-0.4.12 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Fg9fIW + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -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' + export RUSTFLAGS + 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 bytes-0.4.12 + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -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 --profile rpm Compiling libc v0.2.152 Compiling byteorder v1.5.0 Running `/usr/bin/rustc --crate-name build_script_build /usr/share/cargo/registry/libc-0.2.152/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=23dacbb882f4c8e9 -C extra-filename=-23dacbb882f4c8e9 --out-dir /builddir/build/BUILD/bytes-0.4.12/target/rpm/build/libc-23dacbb882f4c8e9 -L dependency=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -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 byteorder --edition=2021 /usr/share/cargo/registry/byteorder-1.5.0/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 codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=d25a1b6340117bc4 -C extra-filename=-d25a1b6340117bc4 --out-dir /builddir/build/BUILD/bytes-0.4.12/target/rpm/deps -L dependency=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -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: rustc interrupted by SIGSEGV, printing backtrace /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x9de4b2)[0xffffffbb3de4b2] linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0xffffffbddef800] /lib64/lp64d/libc.so.6(syscall+0x1c)[0xffffffba7e62b0] /lib64/lp64d/libstd-befa7e56df894fae.so(_ZN3std3sys4unix5locks11futex_mutex5Mutex14lock_contended17h95e8e53aa0d0c145E+0x96)[0xffffffba90ae08] /lib64/lp64d/libstd-befa7e56df894fae.so(_ZN3std3sys4unix5locks13futex_condvar7Condvar4wait17h9735986bca56331dE+0x9e)[0xffffffba94754e] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323870)[0xffffffbcd23870] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323ab6)[0xffffffbcd23ab6] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x23250ec)[0xffffffbcd250ec] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323b76)[0xffffffbcd23b76] /lib64/lp64d/libstd-befa7e56df894fae.so(rust_metadata_std_2a86bed24e1ebfc9+0xabf36)[0xffffffba945f36] /lib64/lp64d/libc.so.6(+0x746b8)[0xffffffba7956b8] /lib64/lp64d/libc.so.6(+0xc6cc4)[0xffffffba7e7cc4] note: we would appreciate a report at https://github.com/rust-lang/rust error: rustc interrupted by SIGSEGV, printing backtrace /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x9de4b2)[0xffffff9d3de4b2] linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0xffffff9fdae800] /lib64/lp64d/libc.so.6(syscall+0x1c)[0xffffff9c7e62b0] /lib64/lp64d/libstd-befa7e56df894fae.so(_ZN3std3sys4unix5locks13futex_condvar7Condvar4wait17h9735986bca56331dE+0x64)[0xffffff9c947514] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323870)[0xffffff9ed23870] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323ab6)[0xffffff9ed23ab6] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x23250ec)[0xffffff9ed250ec] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323b76)[0xffffff9ed23b76] /lib64/lp64d/libstd-befa7e56df894fae.so(rust_metadata_std_2a86bed24e1ebfc9+0xabf36)[0xffffff9c945f36] /lib64/lp64d/libc.so.6(+0x746b8)[0xffffff9c7956b8] /lib64/lp64d/libc.so.6(+0xc6cc4)[0xffffff9c7e7cc4] note: we would appreciate a report at https://github.com/rust-lang/rust Running `/builddir/build/BUILD/bytes-0.4.12/target/rpm/build/libc-23dacbb882f4c8e9/build-script-build` Running `/usr/bin/rustc --crate-name libc /usr/share/cargo/registry/libc-0.2.152/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 codegen-units=1 -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=3f14fdac3e7b4753 -C extra-filename=-3f14fdac3e7b4753 --out-dir /builddir/build/BUILD/bytes-0.4.12/target/rpm/deps -L dependency=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -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` Compiling iovec v0.1.4 Running `/usr/bin/rustc --crate-name iovec /usr/share/cargo/registry/iovec-0.1.4/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 codegen-units=1 -C debuginfo=2 -C metadata=6af4d41ab94c641d -C extra-filename=-6af4d41ab94c641d --out-dir /builddir/build/BUILD/bytes-0.4.12/target/rpm/deps -L dependency=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps --extern libc=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps/liblibc-3f14fdac3e7b4753.rmeta --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -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` Compiling bytes v0.4.12 (/builddir/build/BUILD/bytes-0.4.12) Running `/usr/bin/rustc --crate-name bytes 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 codegen-units=1 -C debuginfo=2 -C metadata=555888e87474f68b -C extra-filename=-555888e87474f68b --out-dir /builddir/build/BUILD/bytes-0.4.12/target/rpm/deps -L dependency=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps --extern byteorder=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps/libbyteorder-d25a1b6340117bc4.rmeta --extern iovec=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps/libiovec-6af4d41ab94c641d.rmeta -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -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: rustc interrupted by SIGSEGV, printing backtrace /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x9de4b2)[0xffffffbc3de4b2] linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0xffffffbed9e800] /lib64/lp64d/libc.so.6(syscall+0x1c)[0xffffffbb7e62b0] /lib64/lp64d/libstd-befa7e56df894fae.so(_ZN3std3sys4unix5locks11futex_mutex5Mutex14lock_contended17h95e8e53aa0d0c145E+0x96)[0xffffffbb90ae08] /lib64/lp64d/libstd-befa7e56df894fae.so(_ZN3std3sys4unix5locks13futex_condvar7Condvar4wait17h9735986bca56331dE+0x9e)[0xffffffbb94754e] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323870)[0xffffffbdd23870] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323ab6)[0xffffffbdd23ab6] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x23250ec)[0xffffffbdd250ec] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323b76)[0xffffffbdd23b76] /lib64/lp64d/libstd-befa7e56df894fae.so(rust_metadata_std_2a86bed24e1ebfc9+0xabf36)[0xffffffbb945f36] /lib64/lp64d/libc.so.6(+0x746b8)[0xffffffbb7956b8] /lib64/lp64d/libc.so.6(+0xc6cc4)[0xffffffbb7e7cc4] note: we would appreciate a report at https://github.com/rust-lang/rust warning: use of deprecated macro `try`: use the `?` operator instead --> src/debug.rs:17:9 | 17 | try!(write!(fmt, "b\"")); | ^^^ | note: the lint level is defined here --> src/lib.rs:71:9 | 71 | #![deny(warnings, missing_docs, missing_debug_implementations)] | ^^^^^^^^ = note: `#[warn(deprecated)]` implied by `#[warn(warnings)]` warning: use of deprecated macro `try`: use the `?` operator instead --> src/debug.rs:37:9 | 37 | try!(write!(fmt, "\"")); | ^^^ warning: use of deprecated macro `try`: use the `?` operator instead --> src/debug.rs:21:17 | 21 | try!(write!(fmt, "\\n")); | ^^^ warning: use of deprecated macro `try`: use the `?` operator instead --> src/debug.rs:23:17 | 23 | try!(write!(fmt, "\\r")); | ^^^ warning: use of deprecated macro `try`: use the `?` operator instead --> src/debug.rs:25:17 | 25 | try!(write!(fmt, "\\t")); | ^^^ warning: use of deprecated macro `try`: use the `?` operator instead --> src/debug.rs:27:17 | 27 | try!(write!(fmt, "\\{}", c as char)); | ^^^ warning: use of deprecated macro `try`: use the `?` operator instead --> src/debug.rs:29:17 | 29 | try!(write!(fmt, "\\0")); | ^^^ warning: use of deprecated macro `try`: use the `?` operator instead --> src/debug.rs:32:17 | 32 | try!(write!(fmt, "{}", c as char)); | ^^^ warning: use of deprecated macro `try`: use the `?` operator instead --> src/debug.rs:34:17 | 34 | try!(write!(fmt, "\\x{:02x}", c)); | ^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/bytes.rs:1630:45 | 1630 | let mut inner: Inner = mem::uninitialized(); | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/bytes.rs:1822:45 | 1822 | let mut inner: Inner = mem::uninitialized(); | ^^^^^^^^^^^^^ warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead --> src/bytes.rs:2115:41 | 2115 | let mut inner: Inner = mem::uninitialized(); | ^^^^^^^^^^^^^ warning: trait objects without an explicit `dyn` are deprecated --> src/buf/buf.rs:1154:30 | 1154 | fn _assert_trait_object(_b: &Buf) {} | ^^^ | = 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)]` implied by `#[warn(warnings)]` help: use `dyn` | 1154 | fn _assert_trait_object(_b: &dyn Buf) {} | +++ warning: trait objects without an explicit `dyn` are deprecated --> src/buf/buf_mut.rs:1167:30 | 1167 | fn _assert_trait_object(_b: &BufMut) {} | ^^^^^^ | = 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` | 1167 | fn _assert_trait_object(_b: &dyn BufMut) {} | +++ warning: use of deprecated method `std::sync::atomic::AtomicPtr::::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead --> src/bytes.rs:2220:31 | 2220 | let actual = self.arc.compare_and_swap(arc as *mut Shared, shared, AcqRel); | ^^^^^^^^^^^^^^^^ warning: unused return value of `std::mem::replace` that must be used --> src/bytes.rs:833:9 | 833 | mem::replace(self, result.freeze()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly = note: `#[warn(unused_must_use)]` implied by `#[warn(warnings)]` help: use `let _ = ...` to ignore the resulting value | 833 | let _ = mem::replace(self, result.freeze()); | +++++++ warning: unused return value of `std::mem::replace` that must be used --> src/bytes.rs:1028:9 | 1028 | mem::replace(self, bytes_mut.freeze()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly help: use `let _ = ...` to ignore the resulting value | 1028 | let _ = mem::replace(self, bytes_mut.freeze()); | +++++++ warning: the type `Inner` does not permit being left uninitialized --> src/bytes.rs:1630:40 | 1630 | let mut inner: Inner = mem::uninitialized(); | ^^^^^^^^^^^^^^^^^^^^ | | | this code causes undefined behavior when executed | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done | note: raw pointers must be initialized (in this struct field) --> src/bytes.rs:301:5 | 301 | arc: AtomicPtr, | ^^^^^^^^^^^^^^^^^^^^^^ = note: `#[warn(invalid_value)]` implied by `#[warn(warnings)]` warning: the type `Inner` does not permit being left uninitialized --> src/bytes.rs:1822:40 | 1822 | let mut inner: Inner = mem::uninitialized(); | ^^^^^^^^^^^^^^^^^^^^ | | | this code causes undefined behavior when executed | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done | note: raw pointers must be initialized (in this struct field) --> src/bytes.rs:301:5 | 301 | arc: AtomicPtr, | ^^^^^^^^^^^^^^^^^^^^^^ warning: the type `Inner` does not permit being left uninitialized --> src/bytes.rs:2115:36 | 2115 | let mut inner: Inner = mem::uninitialized(); | ^^^^^^^^^^^^^^^^^^^^ | | | this code causes undefined behavior when executed | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done | note: raw pointers must be initialized (in this struct field) --> src/bytes.rs:301:5 | 301 | arc: AtomicPtr, | ^^^^^^^^^^^^^^^^^^^^^^ warning: unused return value of `Box::::from_raw` that must be used --> src/bytes.rs:2554:9 | 2554 | Box::from_raw(ptr); | ^^^^^^^^^^^^^^^^^^ | = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` help: use `let _ = ...` to ignore the resulting value | 2554 | let _ = Box::from_raw(ptr); | +++++++ error: rustc interrupted by SIGSEGV, printing backtrace /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x9de4b2)[0xffffff7fdde4b2] linux-vdso.so.1(__vdso_rt_sigreturn+0x0)[0xffffff8277f800] /lib64/lp64d/libc.so.6(syscall+0x1c)[0xffffff7f1e62b0] /lib64/lp64d/libstd-befa7e56df894fae.so(_ZN3std3sys4unix5locks11futex_mutex5Mutex14lock_contended17h95e8e53aa0d0c145E+0x96)[0xffffff7f30ae08] /lib64/lp64d/libstd-befa7e56df894fae.so(_ZN3std3sys4unix5locks13futex_condvar7Condvar4wait17h9735986bca56331dE+0x9e)[0xffffff7f34754e] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323870)[0xffffff81723870] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323ab6)[0xffffff81723ab6] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x23250ec)[0xffffff817250ec] /lib64/lp64d/librustc_driver-c309084a720e38a9.so(+0x2323b76)[0xffffff81723b76] /lib64/lp64d/libstd-befa7e56df894fae.so(rust_metadata_std_2a86bed24e1ebfc9+0xabf36)[0xffffff7f345f36] /lib64/lp64d/libc.so.6(+0x746b8)[0xffffff7f1956b8] /lib64/lp64d/libc.so.6(+0xc6cc4)[0xffffff7f1e7cc4] note: we would appreciate a report at https://github.com/rust-lang/rust warning: `bytes` (lib) generated 21 warnings (run `cargo fix --lib -p bytes` to apply 2 suggestions) error: could not compile `bytes` (lib); 21 warnings emitted Caused by: process didn't exit successfully: `/usr/bin/rustc --crate-name bytes 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 codegen-units=1 -C debuginfo=2 -C metadata=555888e87474f68b -C extra-filename=-555888e87474f68b --out-dir /builddir/build/BUILD/bytes-0.4.12/target/rpm/deps -L dependency=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps --extern byteorder=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps/libbyteorder-d25a1b6340117bc4.rmeta --extern iovec=/builddir/build/BUILD/bytes-0.4.12/target/rpm/deps/libiovec-6af4d41ab94c641d.rmeta -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -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` (signal: 11, SIGSEGV: invalid memory reference) error: Bad exit status from /var/tmp/rpm-tmp.Fg9fIW (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Fg9fIW (%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-bytes0.4.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 597, 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-bytes0.4.spec