Boost logo

Boost :

Subject: [boost] [context] - Boost.Context fails to build -> Call of overloaded 'callcc(...) is ambiguous'
From: Carlos Ferreira (carlosmf.pt_at_[hidden])
Date: 2017-04-24 10:56:05


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 - cmf_at_[hidden]
Skype & GTalk -> carlosmf.pt_at_[hidden]
LinkedIn -> http://www.linkedin.com/in/carlosmferreira

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk