Quantcast

[context] - Boost.Context fails to build -> Call of overloaded 'callcc(...) is ambiguous'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[context] - Boost.Context fails to build -> Call of overloaded 'callcc(...) is ambiguous'

Boost - Dev mailing list
I was trying to compile Boost 1.64.0 for OpenWRT when the build failed
for Arm Cortex A7 (Raspberry Pi 2) using Gcc 5.2 with Musl 1.1.16.

The build output with the error follows.

Any ideas on what it could be ?



gcc.compile.c++
bin.v2/libs/fiber/build/gcc-arm/release/abi-aapcs/boost.locale.iconv-on/boost.locale.posix-off/link-static/threading-multi/context.o
libs/fiber/src/context.cpp: In constructor
'boost::fibers::context::context(boost::fibers::dispatcher_context_t,
const boost::context::preallocated&, const default_stack&,
boost::fibers::scheduler*)':
libs/fiber/src/context.cpp:236:14: error: call of overloaded
'callcc(const std::allocator_arg_t&, const
boost::context::preallocated&, const default_stack&,
boost::fibers::context::context(boost::fibers::dispatcher_context_t,
const boost::context::preallocated&, const default_stack&,
boost::fibers::scheduler*)::<lambda(boost::context::continuation&&)>)'
is ambiguous
             });
              ^
In file included from ./boost/fiber/context.hpp:28:0,
                 from libs/fiber/src/context.cpp:7:
./boost/context/continuation.hpp:469:1: note: candidate:
boost::context::continuation
boost::context::callcc(std::allocator_arg_t, StackAlloc, Fn&&, Arg
...) [with StackAlloc = boost::context::preallocated; Fn = const
boost::context::basic_fixedsize_stack<boost::context::stack_traits>&;
Arg = {boost::fibers::context::context(boost::fibers::dispatcher_context_t,
const boost::context::preallocated&, const default_stack&,
boost::fibers::scheduler*)::<lambda(boost::context::continuation&&)>}]
 callcc( std::allocator_arg_t, StackAlloc salloc, Fn && fn, Arg ... arg) {
 ^
./boost/context/continuation.hpp:483:1: note: candidate:
boost::context::continuation
boost::context::callcc(std::allocator_arg_t,
boost::context::preallocated, StackAlloc, Fn&&, Arg ...) [with
StackAlloc = boost::context::basic_fixedsize_stack<boost::context::stack_traits>;
Fn = boost::fibers::context::context(boost::fibers::dispatcher_context_t,
const boost::context::preallocated&, const default_stack&,
boost::fibers::scheduler*)::<lambda(boost::context::continuation&&)>;
Arg = {}]
 callcc( std::allocator_arg_t, preallocated palloc, StackAlloc salloc,
Fn && fn, Arg ... arg) {
 ^
./boost/context/continuation.hpp:514:1: note: candidate:
boost::context::continuation
boost::context::callcc(std::allocator_arg_t,
boost::context::preallocated, StackAlloc, Fn&&) [with StackAlloc =
boost::context::basic_fixedsize_stack<boost::context::stack_traits>;
Fn = boost::fibers::context::context(boost::fibers::dispatcher_context_t,
const boost::context::preallocated&, const default_stack&,
boost::fibers::scheduler*)::<lambda(boost::context::continuation&&)>]
 callcc( std::allocator_arg_t, preallocated palloc, StackAlloc salloc,
Fn && fn) {
 ^
./boost/context/continuation.hpp:457:1: note: candidate:
boost::context::continuation boost::context::callcc(Fn&&, Arg ...)
[with Fn = const std::allocator_arg_t&; Arg =
{boost::context::preallocated,
boost::context::basic_fixedsize_stack<boost::context::stack_traits>,
boost::fibers::context::context(boost::fibers::dispatcher_context_t,
const boost::context::preallocated&, const default_stack&,
boost::fibers::scheduler*)::<lambda(boost::context::continuation&&)>};
<template-parameter-1-3> = void]
 callcc( Fn && fn, Arg ... arg) {
 ^





--

Carlos Miguel Ferreira
Researcher at Telecommunications Institute
Aveiro - Portugal
Work E-mail - [hidden email]
Skype & GTalk -> [hidden email]
LinkedIn -> http://www.linkedin.com/in/carlosmferreira

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [context] - Boost.Context fails to build -> Call of overloaded 'callcc(...) is ambiguous'

Boost - Dev mailing list
fixed in branch develop (see issue #52) - gcc-4.9 has problems with
overloads of functions callcc()

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [context] - Boost.Context fails to build -> Call of overloaded 'callcc(...) is ambiguous'

Boost - Dev mailing list
Yes. I noticed that you also marked it at GitHub.
Thank you! The issue was also solved for Gcc 5.2.

On 24 April 2017 at 12:17, Oliver Kowalke via Boost
<[hidden email]> wrote:
> fixed in branch develop (see issue #52) - gcc-4.9 has problems with
> overloads of functions callcc()
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost



--

Carlos Miguel Ferreira
Researcher at Telecommunications Institute
Aveiro - Portugal
Work E-mail - [hidden email]
Skype & GTalk -> [hidden email]
LinkedIn -> http://www.linkedin.com/in/carlosmferreira

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Loading...