Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

compile error at 48% (overloaded call is 'ambiguous') #5144

Open
dchmelik opened this issue Jul 27, 2018 · 2 comments
Open

compile error at 48% (overloaded call is 'ambiguous') #5144

dchmelik opened this issue Jul 27, 2018 · 2 comments
Assignees
Labels

Comments

@dchmelik
Copy link

dchmelik commented Jul 27, 2018

I'm on Slackware64 GNU/Linux up-to-date stable with (extra/unofficial) leveldb-1.9.0-x86_64-1_SBo. I got cpp-ethereum code from git some minutes ago, tried to compile. It gets to 48% then says something is ambiguous:

[ 48%] Building CXX object libethereum/CMakeFiles/ethereum.dir/WarpHostCapability.cpp.o
In file included from /home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/operations.hpp:17:0,
                 from /home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/condition_variable.hpp:25,
                 from /home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/barrier.hpp:14,
                 from /home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/all.hpp:15,
                 from /home/user/cpp-ethereum/libethereum/WarpHostCapability.cpp:21:
/home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/fiber.hpp: In instantiation of ‘boost::fibers::fiber::fiber(Fn&&, Arg ...) [with Fn = void (dev::eth::{anonymous}::WarpPeerObserver::*)(std::shared_ptr<dev::eth::WarpPeerCapability>); Arg = {dev::eth::{anonymous}::WarpPeerObserver*, std::shared_ptr<dev::eth::WarpPeerCapability>}; <template-parameter-1-3> = void; <template-parameter-1-4> = void; <template-parameter-1-5> = void]’:
/home/user/cpp-ethereum/libethereum/WarpHostCapability.cpp:69:68:   required from here
/home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/fiber.hpp:68:71: error: call of overloaded ‘fiber(<brace-enclosed initializer list>)’ is ambiguous
                std::forward< Fn >( fn), std::forward< Arg >( arg) ... } {
                                                                       ^
/home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/fiber.hpp:106:5: note: candidate: boost::fibers::fiber::fiber(boost::fibers::launch, std::allocator_arg_t, StackAllocator, Fn&&, Arg ...) [with StackAllocator = boost::context::basic_fixedsize_stack<boost::context::stack_traits>; Fn = void (dev::eth::{anonymous}::WarpPeerObserver::*)(std::shared_ptr<dev::eth::WarpPeerCapability>); Arg = {dev::eth::{anonymous}::WarpPeerObserver*, std::shared_ptr<dev::eth::WarpPeerCapability>}]
     fiber( launch policy, std::allocator_arg_t, StackAllocator salloc, Fn && fn, Arg ... arg) :
     ^
/home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/fiber.hpp:78:5: note: candidate: boost::fibers::fiber::fiber(boost::fibers::launch, Fn&&, Arg ...) [with Fn = const std::allocator_arg_t&; Arg = {boost::context::basic_fixedsize_stack<boost::context::stack_traits>, void (dev::eth::{anonymous}::WarpPeerObserver::*)(std::shared_ptr<dev::eth::WarpPeerCapability>), dev::eth::{anonymous}::WarpPeerObserver*, std::shared_ptr<dev::eth::WarpPeerCapability>}; <template-parameter-1-3> = void]
     fiber( launch policy, Fn && fn, Arg ... arg) :
     ^
/home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/fiber.hpp:64:5: note: candidate: boost::fibers::fiber::fiber(Fn&&, Arg ...) [with Fn = boost::fibers::launch; Arg = {std::allocator_arg_t, boost::context::basic_fixedsize_stack<boost::context::stack_traits>, void (dev::eth::{anonymous}::WarpPeerObserver::*)(std::shared_ptr<dev::eth::WarpPeerCapability>), dev::eth::{anonymous}::WarpPeerObserver*, std::shared_ptr<dev::eth::WarpPeerCapability>}; <template-parameter-1-3> = void; <template-parameter-1-4> = void; <template-parameter-1-5> = void]
     fiber( Fn && fn, Arg ... arg) :
     ^
/home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/fiber.hpp: In instantiation of ‘boost::fibers::fiber::fiber(Fn&&, Arg ...) [with Fn = void (dev::eth::{anonymous}::WarpPeerObserver::*)(); Arg = {dev::eth::{anonymous}::WarpPeerObserver*}; <template-parameter-1-3> = void; <template-parameter-1-4> = void; <template-parameter-1-5> = void]’:
/home/user/cpp-ethereum/libethereum/WarpHostCapability.cpp:75:81:   required from here
/home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/fiber.hpp:68:71: error: call of overloaded ‘fiber(<brace-enclosed initializer list>)’ is ambiguous
                std::forward< Fn >( fn), std::forward< Arg >( arg) ... } {
                                                                       ^
/home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/fiber.hpp:106:5: note: candidate: boost::fibers::fiber::fiber(boost::fibers::launch, std::allocator_arg_t, StackAllocator, Fn&&, Arg ...) [with StackAllocator = boost::context::basic_fixedsize_stack<boost::context::stack_traits>; Fn = void (dev::eth::{anonymous}::WarpPeerObserver::*)(); Arg = {dev::eth::{anonymous}::WarpPeerObserver*}]
     fiber( launch policy, std::allocator_arg_t, StackAllocator salloc, Fn && fn, Arg ... arg) :
     ^
/home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/fiber.hpp:78:5: note: candidate: boost::fibers::fiber::fiber(boost::fibers::launch, Fn&&, Arg ...) [with Fn = const std::allocator_arg_t&; Arg = {boost::context::basic_fixedsize_stack<boost::context::stack_traits>, void (dev::eth::{anonymous}::WarpPeerObserver::*)(), dev::eth::{anonymous}::WarpPeerObserver*}; <template-parameter-1-3> = void]
     fiber( launch policy, Fn && fn, Arg ... arg) :
     ^
/home/user/.hunter/_Base/aa1facc/eb55840/852a159/Install/include/boost/fiber/fiber.hpp:64:5: note: candidate: boost::fibers::fiber::fiber(Fn&&, Arg ...) [with Fn = boost::fibers::launch; Arg = {std::allocator_arg_t, boost::context::basic_fixedsize_stack<boost::context::stack_traits>, void (dev::eth::{anonymous}::WarpPeerObserver::*)(), dev::eth::{anonymous}::WarpPeerObserver*}; <template-parameter-1-3> = void; <template-parameter-1-4> = void; <template-parameter-1-5> = void]
     fiber( Fn && fn, Arg ... arg) :
     ^
libethereum/CMakeFiles/ethereum.dir/build.make:254: recipe for target 'libethereum/CMakeFiles/ethereum.dir/WarpHostCapability.cpp.o' failed
gmake[2]: *** [libethereum/CMakeFiles/ethereum.dir/WarpHostCapability.cpp.o] Error 1
CMakeFiles/Makefile2:810: recipe for target 'libethereum/CMakeFiles/ethereum.dir/all' failed
gmake[1]: *** [libethereum/CMakeFiles/ethereum.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
gmake: *** [all] Error 2
@gumb0
Copy link
Member

gumb0 commented Jul 27, 2018

Which compiler version do you use?

@dchmelik
Copy link
Author

I'm using gcc 5.3.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants