[Building fail] (Version: [rippled 2])
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
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); `
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
I'm assuming the suggested fix resolved your issue. Please re-open if it did not.