d 2 has #[serde(default)] --> /usr/share/cargo/registry/aws-nitro-enclaves-cose-0.4.0/src/sign.rs:138:5 | 138 | ByteBuf, | ^^^^^^^ error: field must have #[serde(default)] because previous field 2 has #[serde(default)] --> /usr/share/cargo/registry/aws-nitro-enclaves-cose-0.4.0/src/sign.rs:140:5 | 140 | ByteBuf, | ^^^^^^^ error[E0277]: the trait bound `SigStructure: encrypt::_::_serde::Serialize` is not satisfied --> /usr/share/cargo/registry/aws-nitro-enclaves-cose-0.4.0/src/sign.rs:168:28 | 168 | serde_cbor::to_vec(self) | ------------------ ^^^^ the trait `encrypt::_::_serde::Serialize` is not implemented for `SigStructure` | | | required by a bound introduced by this call | = help: the following other types implement trait `encrypt::_::_serde::Serialize`: bool char isize i8 i16 i32 i64 i128 and 142 others note: required by a bound in `to_vec` --> /usr/share/cargo/registry/serde_cbor-0.11.2/src/ser.rs:22:8 | 20 | pub fn to_vec(value: &T) -> Result> | ------ required by a bound in this function 21 | where 22 | T: ser::Serialize, | ^^^^^^^^^^^^^^ required by this bound in `to_vec` For more information about this error, try `rustc --explain E0277`. error: could not compile `aws-nitro-enclaves-cose` (lib) due to 3 previous errors Caused by: process didn't exit successfully: `/usr/bin/rustc --crate-name aws_nitro_enclaves_cose --edition=2018 /usr/share/cargo/registry/aws-nitro-enclaves-cose-0.4.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="key_openssl_pkey"' -C metadata=1c5782d8a59f61eb -C extra-filename=-1c5782d8a59f61eb --out-dir /builddir/build/BUILD/fido-device-onboard-rs-0.4.12/target/rpm/deps -L dependency=/builddir/build/BUILD/fido-device-onboard-rs-0.4.12/target/rpm/deps --extern openssl=/builddir/build/BUILD/fido-device-onboard-rs-0.4.12/target/rpm/deps/libopenssl-c0c6728981ff7558.rmeta --extern serde=/builddir/build/BUILD/fido-device-onboard-rs-0.4.12/target/rpm/deps/libserde-9516b1b37fe5bbed.rmeta --extern serde_bytes=/builddir/build/BUILD/fido-device-onboard-rs-0.4.12/target/rpm/deps/libserde_bytes-e41462074de0b321.rmeta --extern serde_cbor=/builddir/build/BUILD/fido-device-onboard-rs-0.4.12/target/rpm/deps/libserde_cbor-8fb3c1abbd9ff933.rmeta --extern serde_repr=/builddir/build/BUILD/fido-device-onboard-rs-0.4.12/target/rpm/deps/libserde_repr-a1a10e67c1dccf8e.so --extern serde_with=/builddir/build/BUILD/fido-device-onboard-rs-0.4.12/target/rpm/deps/libserde_with-e3f29cff19871965.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` (exit status: 1) warning: build failed, waiting for other jobs to finish... error: Bad exit status from /var/tmp/rpm-tmp.khJaiL (%build) %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.khJaiL (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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 --target riscv64 --nodeps /builddir/build/SPECS/fido-device-onboard.spec