Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors while compiling #28

Open
Mactep1 opened this issue Aug 19, 2022 · 3 comments
Open

errors while compiling #28

Mactep1 opened this issue Aug 19, 2022 · 3 comments

Comments

@Mactep1
Copy link

Mactep1 commented Aug 19, 2022

chengyifandeMacBook-Pro:build chengyifan$ make
[ 6%] Built target external_boost
Consolidate compiler generated dependencies of target flatc
[ 30%] Built target flatc
[ 36%] Built target fbs-generation
[ 36%] Built target motion_config
[ 37%] gather information about git repository and generating version.cpp
[ 37%] Built target motion_version
[ 38%] Building CXX object src/motioncore/CMakeFiles/motion.dir/algorithm/algorithm_description.cpp.o
[ 39%] Building CXX object src/motioncore/CMakeFiles/motion.dir/base/backend.cpp.o
In file included from /Users/chengyifan/cheng/crypto/MOTION/src/motioncore/base/backend.cpp:25:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/thread_pool.hpp:20:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/detail/scheduler.hpp:21:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution_context.hpp:409:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/impl/execution_context.hpp:18:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/detail/handler_type_requirements.hpp:53:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/async_result.hpp:19:
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/detail/type_traits.hpp:89:12: error: no member named 'result_of' in namespace 'std'
using std::result_of;
~~~~~^
In file included from /Users/chengyifan/cheng/crypto/MOTION/src/motioncore/base/backend.cpp:25:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/thread_pool.hpp:22:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution.hpp:18:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/allocator.hpp:20:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/executor.hpp:20:
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/execute.hpp:101:20: error: no member named 'result_of' in namespace 'boost::asio'
using boost::asio::result_of;
~~~~~~~~~~~~~^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/execute.hpp:156:13: error: no template named 'result_of'
typename result_of<typename decay::type&()>::type
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/execute.hpp:159:45: error: expected unqualified-id
!is_as_invocable<typename decay::type>::value
^
In file included from /Users/chengyifan/cheng/crypto/MOTION/src/motioncore/base/backend.cpp:25:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/thread_pool.hpp:22:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution.hpp:18:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/allocator.hpp:20:
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/executor.hpp:52:14: error: no template named 'result_of'
typename result_of<typename decay::type&()>::type
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/executor.hpp:55:45: error: expected unqualified-id
is_constructible<typename decay::type, F>::value
^
In file included from /Users/chengyifan/cheng/crypto/MOTION/src/motioncore/base/backend.cpp:25:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/thread_pool.hpp:22:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution.hpp:23:
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/bulk_execute.hpp:114:20: error: no member named 'result_of' in namespace 'boost::asio'
using boost::asio::result_of;
~~~~~~~~~~~~~^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/bulk_execute.hpp:193:16: error: no template named 'result_of'
typename result_of<
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/asio/execution/bulk_execute.hpp:200:10: error: expected unqualified-id

::type,
^
In file included from /Users/chengyifan/cheng/crypto/MOTION/src/motioncore/base/backend.cpp:27:
In file included from /Users/chengyifan/cheng/crypto/MOTION/src/motioncore/base/backend.h:32:
In file included from /Users/chengyifan/cheng/crypto/MOTION/src/motioncore/protocols/arithmetic_gmw/arithmetic_gmw_gate.h:33:
In file included from /Users/chengyifan/cheng/crypto/MOTION/src/motioncore/base/motion_base_provider.h:27:
In file included from /Users/chengyifan/cheng/crypto/MOTION/src/motioncore/utility/reusable_future.h:31:
In file included from /Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future.hpp:7:
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future/async.hpp:30:12: error: no member named 'result_of' in namespace 'std'
using std::result_of;
~~~~~^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future/async.hpp:36:14: error: no template named 'result_of'
typename result_of<
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future/async.hpp:44:22: error: no template named 'result_of'
typedef typename result_of<
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future/async.hpp:52:12: error: no viable conversion from returned value of type 'future<result_type>' (aka 'future') to function return type 'int'
return f;
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future/async.hpp:57:14: error: no template named 'result_of'
typename result_of<
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future/async.hpp:65:22: error: no template named 'result_of'
typedef typename result_of<
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future/async.hpp:73:12: error: no viable conversion from returned value of type 'future<result_type>' (aka 'future') to function return type 'int'
return f;
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future/async.hpp:78:14: error: no template named 'result_of'
typename result_of<
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future/async.hpp:86:22: error: no template named 'result_of'
typedef typename result_of<
^
/Users/chengyifan/cheng/crypto/MOTION/build/extern/boost/include/boost/fiber/future/async.hpp:95:12: error: no viable conversion from returned value of type 'future<result_type>' (aka 'future') to function return type 'int'
return f;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/motioncore/CMakeFiles/motion.dir/base/backend.cpp.o] Error 1
make[1]: *** [src/motioncore/CMakeFiles/motion.dir/all] Error 2
make: *** [all] Error 2

@Mactep1 Mactep1 changed the title errors whiling compiling errors while compiling Aug 19, 2022
@Oleksandr-Tkachenko
Copy link
Member

what are your compiler and boost version?

@Mactep1
Copy link
Author

Mactep1 commented Aug 29, 2022

what are your compiler and boost version?
The CXX compiler identification is AppleClang 12.0.5.12050022
the boost version is 1.79.0_1

@Oleksandr-Tkachenko
Copy link
Member

oh, it actually looks like your boost is built locally: [ 6%] Built target external_boost

could you try out AppleClang 13 or 14 and/or higher version of boost (by changing the URL here)?

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

No branches or pull requests

2 participants