rippled icon indicating copy to clipboard operation
rippled copied to clipboard

[Building fail] (Version: [rippled 2])

Open diadal opened this issue 1 year ago • 1 comments

in MacBook Pro M1 build keeps failing at 59%

` [ 59%] Building CXX object CMakeFiles/rippled.dir/src/ripple/rpc/impl/ServerHandler.cpp.o In file included from /opt/homebrew/var/www/Sites/rippled/src/ripple/rpc/impl/ServerHandler.cpp:20: In file included from /opt/homebrew/var/www/Sites/rippled/src/ripple/rpc/ServerHandler.h:28: In file included from /opt/homebrew/var/www/Sites/rippled/src/ripple/server/Server.h:26: In file included from /opt/homebrew/var/www/Sites/rippled/src/ripple/server/impl/ServerImpl.h:26: In file included from /opt/homebrew/var/www/Sites/rippled/src/ripple/server/impl/Door.h:25: In file included from /opt/homebrew/var/www/Sites/rippled/src/ripple/server/impl/PlainHTTPPeer.h:25: In file included from /opt/homebrew/var/www/Sites/rippled/src/ripple/server/impl/PlainWSPeer.h:23: In file included from /opt/homebrew/var/www/Sites/rippled/src/ripple/server/impl/BaseWSPeer.h:31: In file included from /Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/beast/websocket.hpp:18: In file included from /Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/beast/websocket/stream.hpp:2857: /Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/beast/websocket/impl/read.hpp:695:17: error: call to 'async_teardown' is ambiguous async_teardown(impl.role, impl.stream(), ^~~~~~~~~~~~~~ /Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/beast/websocket/impl/read.hpp:78:9: note: in instantiation of member function 'boost::beast::websocket::stream<boost::beast::ssl_stream<boost::beast::basic_streamboost::asio::ip::tcp> &>::read_some_op<boost::beast::websocket::stream<boost::beast::ssl_stream<boost::beast::basic_streamboost::asio::ip::tcp> &>::read_op<boost::asio::executor_binder<std::__bind<void (ripple::BaseWSPeer<ripple::ServerHandler, ripple::SSLWSPeerripple::ServerHandler>::)(const boost::system::error_code &), std::shared_ptr<ripple::SSLWSPeerripple::ServerHandler>, const std::placeholders::__ph<1> &>, boost::asio::strandboost::asio::executor>, boost::beast::basic_multi_buffer<std::allocator>>, boost::beast::basic_multi_buffer<std::allocator>::subrange>::operator()' requested here (this)({}, 0, false); ^ /Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/beast/websocket/impl/read.hpp:797:21: note: in instantiation of function template specialization 'boost::beast::websocket::stream<boost::beast::ssl_stream<boost::beast::basic_streamboost::asio::ip::tcp> &>::read_some_op<boost::beast::websocket::stream<boost::beast::ssl_stream<boost::beast::basic_streamboost::asio::ip::tcp> &>::read_op<boost::asio::executor_binder<std::__bind<void (ripple::BaseWSPeer<ripple::ServerHandler, ripple::SSLWSPeerripple::ServerHandler>::)(const boost::system::error_code &), std::shared_ptr<ripple::SSLWSPeerripple::ServerHandler>, const std::placeholders::__ph<1> &>, boost::asio::strandboost::asio::executor>, boost::beast::basic_multi_buffer<std::allocator>>, boost::beast::basic_multi_buffer<std::allocator>::subrange>::read_some_op<boost::beast::websocket::stream<boost::beast::ssl_stream<boost::beast::basic_streamboost::asio::ip::tcp> &>::read_op<boost::asio::executor_binder<std::__bind<void (ripple::BaseWSPeer<ripple::ServerHandler, ripple::SSLWSPeerripple::ServerHandler>::)(const boost::system::error_code &), std::shared_ptr<ripple::SSLWSPeerripple::ServerHandler>, const std::placeholders::__ph<1> &>, boost::asio::strandboost::asio::executor>, boost::beast::basic_multi_buffer<std::allocator>>>' requested here read_some_op<read_op, mutable_buffers_type>( ^ /Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/beast/websocket/impl/read.hpp:761:9: note: in instantiation of member function 'boost::beast::websocket::stream<boost::beast::ssl_stream<boost::beast::basic_streamboost::asio::ip::tcp> &>::read_op<boost::asio::executor_binder<std::__bind<void (ripple::BaseWSPeer<ripple::ServerHandler, ripple::SSLWSPeerripple::ServerHandler>::)(const boost::system::error_code &), std::shared_ptr<ripple::SSLWSPeerripple::ServerHandler>, const std::placeholders::__ph<1> &>, boost::asio::strandboost::asio::executor>, boost::beast::basic_multi_buffer<std::allocator>>::operator()' requested here (this)({}, 0, false); ^ /Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/beast/websocket/impl/read.hpp:869:9: note: in instantiation of function template specialization 'boost::beast::websocket::stream<boost::beast::ssl_stream<boost::beast::basic_streamboost::asio::ip::tcp> &>::read_op<boost::asio::executor_binder<std::__bind<void (ripple::BaseWSPeer<ripple::ServerHandler, ripple::SSLWSPeerripple::ServerHandler>::)(const boost::system::error_code &), std::shared_ptr<ripple::SSLWSPeerripple::ServerHandler>, const std::placeholders::__ph<1> &>, boost::asio::strandboost::asio::executor>, boost::beast::basic_multi_buffer<std::allocator>>::read_op<boost::asio::executor_binder<std::__bind<void (ripple::BaseWSPeer<ripple::ServerHandler, ripple::SSLWSPeerripple::ServerHandler>::)(const boost::system::error_code &), std::shared_ptr<ripple::SSLWSPeerripple::ServerHandler>, const std::placeholders::__ph<1> &>, boost::asio::strandboost::asio::executor>>' requested here read_op< ^ /Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/asio/bind_executor.hpp:606:7: note: in instantiation of function template specialization 'boost::beast::websocket::stream<boost::beast::ssl_stream<boost::beast::basic_streamboost::asio::ip::tcp> &>::run_read_op::operator()<boost::asio::executor_binder<std::__bind<void (ripple::BaseWSPeer<ripple::ServerHandler, ripple::SSLWSPeerripple::ServerHandler>::*)(const boost::system::error_code &), std::shared_ptr<ripple::SSLWSPeerripple::ServerHandler>, const std::placeholders::_ph<1> &>, boost::asio::strandboost::asio::executor>, boost::beast::basic_multi_buffer<std::allocator>>' requested here BOOST_ASIO_MOVE_CAST(Initiation)(initiation)( ^ /Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/asio/detail/config.hpp:135:37: note: expanded from macro 'BOOST_ASIO_MOVE_CAST'

define BOOST_ASIO_MOVE_CAST(type) static_cast<type&&>

                                ^

/Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/asio/async_result.hpp:482:5: note: (skipping 22 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) BOOST_ASIO_MOVE_CAST(Initiation)(initiation)( ^ /Users/pc/.conan/p/b/boost3510db5f46ed8/p/include/boost/asio/detail/config.hpp:135:37: note: expanded from macro 'BOOST_ASIO_MOVE_CAST'

define BOOST_ASIO_MOVE_CAST(type) static_cast<type&&>

                                ^

/opt/homebrew/var/www/Sites/rippled/src/ripple/server/impl/ServerImpl.h:176:17: note: in instantiation of member function 'ripple::Doorripple::ServerHandler::run' requested here sp->run(); ^ /opt/homebrew/var/www/Sites/rippled/src/ripple/server/impl/ServerImpl.h:98:5: note: in instantiation of member function 'ripple::ServerImplripple::ServerHandler::ports' requested here ServerImpl( ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__memory/unique_ptr.h:686:30: note: in instantiation of member function 'ripple::ServerImplripple::ServerHandler::ServerImpl' requested here return unique_ptr<_Tp>(new _Tp(_VSTD::forward<_Args>(__args)...)); ^ /opt/homebrew/var/www/Sites/rippled/src/ripple/server/Server.h:39:17: note: in instantiation of function template specialization 'std::make_unique<ripple::ServerImplripple::ServerHandler, ripple::ServerHandler &, boost::asio::io_context &, beast::Journal &>' requested here return std::make_unique<ServerImpl<Handler>>(handler, io_service, journal); `

diadal avatar Jan 25 '24 11:01 diadal

You may be hitting a known issue. Try adding this to your Conan profile:

conan profile update 'env.CXXFLAGS="-DBOOST_ASIO_DISABLE_CONCEPTS"' default
conan profile update 'conf.tools.build:cxxflags+=["-DBOOST_ASIO_DISABLE_CONCEPTS"]' default

https://github.com/XRPLF/rippled/blob/develop/BUILD.md#call-to-async_teardown-is-ambiguous

legleux avatar Jan 25 '24 19:01 legleux

I'm assuming the suggested fix resolved your issue. Please re-open if it did not.

thejohnfreeman avatar Apr 23 '24 14:04 thejohnfreeman