Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNU/Linux Debian 12 - Kernel 6.1.0-23-amd64 - Groovy Gluon 7.5.13882 - Compilation failure: error: ‘*&wr.beam::wallet::MyWrapper::m_p0’ #1998

Open
blackmennewstyle opened this issue Aug 21, 2024 · 0 comments

Comments

@blackmennewstyle
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant