-
Notifications
You must be signed in to change notification settings - Fork 206
build issues #1998
Copy link
Copy link
Description
GNU/Linux Debian 12 - Kernel 6.1.0-23-amd64 - Groovy Gluon 7.5.13882 - Compilation failure: error: ‘*&wr.beam::wallet::MyWrapper::m_p0’
Hello beautiful devs,
Currently the latest release https://github.com/BeamMW/beam/releases/tag/beam-7.5.13882 does not compile on Debian 12:
[ 67%] Built target beam-node
[ 67%] Building CXX object wallet/core/CMakeFiles/wallet_core.dir/node_network.cpp.o
[ 67%] Building CXX object wallet/core/CMakeFiles/wallet_core.dir/wallet_db.cpp.o
In file included from /usr/include/c++/12/memory:76,
from /home/ceedii/beam/utility/common.h:35,
from /home/ceedii/beam/core/common.h:1,
from /home/ceedii/beam/core/ecc.h:16,
from /home/ceedii/beam/core/ecc_native.h:16,
from /home/ceedii/beam/wallet/core/common.h:17,
from /home/ceedii/beam/wallet/core/base_tx_builder.h:17,
from /home/ceedii/beam/wallet/core/base_tx_builder.cpp:15:
In member function ‘std::__uniq_ptr_impl<_Tp, _Dp>::pointer std::__uniq_ptr_impl<_Tp, _Dp>::_M_ptr() const [with _Tp = beam::TxKernel; _Dp = std::default_delete<beam::TxKernel>]’,
inlined from ‘std::unique_ptr<_Tp, _Dp>::pointer std::unique_ptr<_Tp, _Dp>::get() const [with _Tp = beam::TxKernel; _Dp = std::default_delete<beam::TxKernel>]’ at /usr/include/c++/12/bits/unique_ptr.h:462:27,
inlined from ‘void beam::wallet::MyWrapper::serialize(Archive&) [with Archive = yas::binary_oarchive<beam::detail::SerializeOstream, 153>]’ at /home/ceedii/beam/wallet/core/base_tx_builder.cpp:565:29,
inlined from ‘static Archive& yas::detail::serializer<yas::detail::type_prop::not_a_fundamental, yas::detail::ser_method::has_one_method, F, T>::save(Archive&, const T&) [with Archive = yas::binary_oarchive<beam::detail::SerializeOstream, 153>; long unsigned int F = 153; T = beam::wallet::MyWrapper]’ at /home/ceedii/beam/3rdparty/yas/types/utility/usertype.hpp:101:32,
inlined from ‘yas::binary_oarchive<OS, F>::this_type& yas::binary_oarchive<OS, F>::operator&(const T&) [with T = beam::wallet::MyWrapper; OS = beam::detail::SerializeOstream; long unsigned int F = 153]’ at /home/ceedii/beam/3rdparty/yas/binary_oarchive.hpp:87:16,
inlined from ‘beam::Serializer& beam::Serializer::operator&(const T&) [with T = beam::wallet::MyWrapper]’ at /home/ceedii/beam/utility/serialize.h:92:13,
inlined from ‘beam::ByteBuffer beam::wallet::toByteBuffer(const T&) [with T = MyWrapper]’ at /home/ceedii/beam/wallet/core/common.h:248:11,
inlined from ‘bool beam::wallet::storage::setTxParameter(beam::wallet::IWalletDB&, const beam::wallet::TxID&, beam::wallet::SubTxID, beam::wallet::TxParameterID, const T&, bool) [with T = beam::wallet::MyWrapper]’ at /home/ceedii/beam/wallet/core/wallet_db.h:981:37,
inlined from ‘bool beam::wallet::BaseTransaction::SetParameter(beam::wallet::TxParameterID, const T&, bool, beam::wallet::SubTxID) [with T = beam::wallet::MyWrapper]’ at /home/ceedii/beam/wallet/core/base_transaction.h:201:43,
inlined from ‘bool beam::wallet::BaseTransaction::SetParameter(beam::wallet::TxParameterID, const T&, beam::wallet::SubTxID) [with T = beam::wallet::MyWrapper]’ at /home/ceedii/beam/wallet/core/base_transaction.h:189:32,
inlined from ‘bool beam::wallet::BaseTxBuilder::SetParameter(beam::wallet::TxParameterID, const T&) [with T = beam::wallet::MyWrapper]’ at /home/ceedii/beam/wallet/core/base_tx_builder.h:128:37,
inlined from ‘void beam::wallet::BaseTxBuilder::SaveInOuts()’ at /home/ceedii/beam/wallet/core/base_tx_builder.cpp:586:21:
/usr/include/c++/12/bits/unique_ptr.h:191:67: error: ‘*&wr.beam::wallet::MyWrapper::m_p0’ may be used uninitialized [-Werror=maybe-uninitialized]
191 | pointer _M_ptr() const noexcept { return std::get<0>(_M_t); }
| ^
/home/ceedii/beam/wallet/core/base_tx_builder.cpp: In member function ‘void beam::wallet::BaseTxBuilder::SaveInOuts()’:
/home/ceedii/beam/wallet/core/base_tx_builder.cpp:579:19: note: ‘*&wr.beam::wallet::MyWrapper::m_p0’ was declared here
579 | MyWrapper wr;
| ^~
cc1plus: all warnings being treated as errors
make[2]: *** [wallet/core/CMakeFiles/wallet_core.dir/build.make:146: wallet/core/CMakeFiles/wallet_core.dir/base_tx_builder.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:4482: wallet/core/CMakeFiles/wallet_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 68%] Linking CXX executable websocket_test
[ 68%] Built target websocket_test
make: *** [Makefile:146: all] Error 2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels