Git Product home page Git Product logo

mctpwplus's Issues

mctpwplus build error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.