Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

mctpwplus build error #2

@santupari

Description

@santupari

Hi All,

I am trying to integrate mctpwplus as part of our opensource build (openbmc). We are using openbmc 2.14 and boost 1.80.00 for our project.
I am getting compilations error in mctpwplus library and would need some help to resolve this error:

| /home/san/build//mctpwplus/1.0+gitAUTOINC+2f525a71e7-r0/recipe-sysroot/usr/include/boost/coroutine/detail/pull_coroutine_object.hp
p:48:9: required from 'boost::coroutines::detail::pull_coroutine_context::pull_coroutine_context(const boost::coroutines::detail::preallocated&, Coro*) [with Coro = boost::coroutines::det
ail::pull_coroutine_object<boost::coroutines::push_coroutine, void, boost::asio::detail::spawned_coroutine_thread::entry_point<boost::asio::detail::old_spawn_entry_point<boost::asio::
strand<boost::asio::io_context::basic_executor_type<std::allocator, 0> >, mctpw::onInterfacesAdded(sd_bus_message*, void*, sd_bus_error*)::<lambda(boost::asio::yield_context)>, void (
)()> >, boost::coroutines::basic_standard_stack_allocatorboost::coroutines::stack_traits >]'
| /home/san/build//mctpwplus/1.0+gitAUTOINC+2f525a71e7-r0/recipe-sysroot/usr/include/boost/coroutine/detail/pull_coroutine_object.hp
p:276:34: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
| /home/san/build//mctpwplus/1.0+gitAUTOINC+2f525a71e7-r0/recipe-sysroot/usr/include/boost/asio/impl/spawn.hpp:77:17: required fro
m 'static boost::asio::detail::spawned_thread_base
boost::asio::detail::spawned_coroutine_thread::spawn(F&&, const boost::coroutines::attributes&, boost::asio::cancellation_slot, boost::as
io::cancellation_state) [with F = boost::asio::detail::old_spawn_entry_point<boost::asio::strand<boost::asio::io_context::basic_executor_type<std::allocator, 0> >, mctpw::onInterfaces
Added(sd_bus_message*, void*, sd_bus_error*)::<lambda(boost::asio::yield_context)>, void ()()>]'
| /home/san/build//mctpwplus/1.0+gitAUTOINC+2f525a71e7-r0/recipe-sysroot/usr/include/boost/asio/impl/spawn.hpp:1486:48: required f
rom 'void boost::asio::spawn(Handler&&, Function&&, const boost::coroutines::attributes&, typename constraint<(((! is_executor<typename std::decay::type>::value) && (! exec
ution::is_executor<typename std::decay<_Tp>::type>::value)) && (! std::is_convertible<ExecutionContext&, execution_context&>::value))>::type) [with Handler = executor_binder<void (
)(), str
and<io_context::basic_executor_type<std::allocator, 0> > >; Function = mctpw::onInterfacesAdded(sd_bus_message*, void*, sd_bus_error*)::<lambda(yield_context)>; typename constraint<((
(! is_executor<typename std::decay::type>::value) && (! execution::is_executor<typename std::decay<_Tp>::type>::value)) && (! std::is_convertible<ExecutionContext&, executi
on_context&>::value))>::type = int; typename std::decay::type = std::decay<executor_binder<void ()(), strand<io_context::basic_executor_type<std::allocator, 0> > > >
::type; typename std::decay<_Tp>::type = std::decay<executor_binder<void (
)(), strand<io_context::basic_executor_type<std::allocator, 0> > > >::type]'
| /home/san/build//mctpwplus/1.0+gitAUTOINC+2f525a71e7-r0/recipe-sysroot/usr/include/boost/asio/impl/spawn.hpp:1526:21: required f
rom 'void boost::asio::spawn(const strand&, Function&&, const boost::coroutines::attributes&) [with Function = mctpw::onInterfacesAdded(sd_bus_message*, void*, sd_bus_error*)::<la
mbda(yield_context)>; Executor = io_context::basic_executor_type<std::allocator, 0>]'
| /home/san/build//mctpwplus/1.0+gitAUTOINC+2f525a71e7-r0/recipe-sysroot/usr/include/boost/asio/impl/spawn.hpp:1517:21: required f
rom 'void boost::asio::spawn(const Executor&, Function&&, const boost::coroutines::attributes&, typename constraint<(is_executor::value || execution::is_executor::value)

::type) [with Function = mctpw::onInterfacesAdded(sd_bus_message*, void*, sd_bus_error*)::<lambda(yield_context)>; Executor = io_context::basic_executor_type<std::allocator, 0>; type
name constraint<(is_executor::value || execution::is_executor::value)>::type = int]'
| /home/san/build//mctpwplus/1.0+gitAUTOINC+2f525a71e7-r0/recipe-sysroot/usr/include/boost/asio/impl/spawn.hpp:1552:21: required f
rom 'void boost::asio::spawn(ExecutionContext&, Function&&, const boost::coroutines::attributes&, typename constraint<std::is_convertible<ExecutionContext&, execution_context&>::value>::typ
e) [with Function = mctpw::onInterfacesAdded(sd_bus_message*, void*, sd_bus_error*)::<lambda(yield_context)>; ExecutionContext = io_context; typename constraint<std::is_convertible<Executio
nContext&, execution_context&>::value>::type = int]'
| ../git/dbus_cb.cpp:128:35: required from here
| /home/san/build//mctpwplus/1.0+gitAUTOINC+2f525a71e7-r0/recipe-sysroot/usr/include/boost/asio/impl/spawn.hpp:1445:49: error: too many arguments to function
| 1445 | BOOST_ASIO_MOVE_OR_LVALUE(Handler)(handler_)(function_(yield));
| | ^

Thanks,
Santosh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions