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*)::)'
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_stackboost::context::stack_traits&;
Arg = {boost::fibers::context::context(boost::fibers::dispatcher_context_t,
const boost::context::preallocated&, const default_stack&,
boost::fibers::scheduler*)::}]
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_stackboost::context::stack_traits;
Fn = boost::fibers::context::context(boost::fibers::dispatcher_context_t,
const boost::context::preallocated&, const default_stack&,
boost::fibers::scheduler*)::;
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_stackboost::context::stack_traits;
Fn = boost::fibers::context::context(boost::fibers::dispatcher_context_t,
const boost::context::preallocated&, const default_stack&,
boost::fibers::scheduler*)::]
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_stackboost::context::stack_traits,
boost::fibers::context::context(boost::fibers::dispatcher_context_t,
const boost::context::preallocated&, const default_stack&,
boost::fibers::scheduler*)::};
<template-parameter-1-3> = void]
callcc( Fn && fn, Arg ... arg) {
^
--
Carlos Miguel Ferreira
Researcher at Telecommunications Institute
Aveiro - Portugal
Work E-mail - cmf@av.it.pt
Skype & GTalk -> carlosmf.pt@gmail.com
LinkedIn -> http://www.linkedin.com/in/carlosmferreira