red with attribute 'nodiscard' [-Wunused-result] 168 | Base::try_lock(); | ~~~~~~~~~~~~~~^~ In file included from /usr/include/c++/13/mutex:46, from ./support/lockedpool.h:11, from ./support/allocators/secure.h:9, from ./key.h:12, from ./key_io.h:10, from wallet/rpc/spend.cpp:7: /usr/include/c++/13/bits/unique_lock.h:148:7: note: declared here 148 | try_lock() | ^~~~~~~~ make[2]: Leaving directory '/builddir/build/BUILD/bitcoin-24.0.1/src' make[2]: Entering directory '/builddir/build/BUILD/bitcoin-24.0.1/src' g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../src/config -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -DHAVE_BUILD_INFO -DPROVIDE_FUZZ_MAIN_FUNCTION -I. -I./minisketch/include -I./secp256k1/include -I./univalue/include -I./leveldb/include -I/usr/include -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION -DBOOST_NO_CXX98_FUNCTION_BASE -I/builddir/build/BUILD/bitcoin-24.0.1/db4/usr/include/ -fstack-reuse=none -Wstack-protector -fstack-protector-all -fstack-clash-protection -fno-extended-identifiers -fvisibility=hidden -fPIE -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 -c -o wallet/rpc/libbitcoin_wallet_a-wallet.o `test -f 'wallet/rpc/wallet.cpp' || echo './'`wallet/rpc/wallet.cpp make[2]: Leaving directory '/builddir/build/BUILD/bitcoin-24.0.1/src' In file included from ./script/signingprovider.h:15, from ./outputtype.h:9, from ./rpc/util.h:9, from ./rpc/server.h:10, from wallet/rpc/wallet.cpp:8: ./sync.h: In instantiation of 'bool UniqueLock::TryEnter(const char*, const char*, int) [with Mutex = AnnotatedMixin; Base = std::unique_lock]': ./sync.h:179:13: required from 'UniqueLock::UniqueLock(Mutex&, const char*, const char*, int, bool) [with Mutex = AnnotatedMixin; Base = std::unique_lock]' ./util/system.h:424:9: required from here ./sync.h:168:23: warning: ignoring return value of 'bool std::unique_lock<_Mutex>::try_lock() [with _Mutex = std::recursive_mutex]', declared with attribute 'nodiscard' [-Wunused-result] 168 | Base::try_lock(); | ~~~~~~~~~~~~~~^~ In file included from /usr/include/c++/13/mutex:46, from ./support/lockedpool.h:11, from ./support/allocators/secure.h:9, from ./key.h:12, from ./key_io.h:10, from wallet/rpc/wallet.cpp:7: /usr/include/c++/13/bits/unique_lock.h:148:7: note: declared here 148 | try_lock() | ^~~~~~~~ make[1]: *** [Makefile:18957: all-recursive] Error 1 make: *** [Makefile:825: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.Q05jDy (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Q05jDy (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/bitcoin-core.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 -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/bitcoin-core.spec