encryptogroup / MOTION

An efficient, user-friendly, modular, and extensible framework for mixed-protocol secure multi-party computation with two or more parties
MIT License
85 stars 40 forks source link

errors while compiling #28

Open Mactep1 opened 2 years ago

Mactep1 commented 2 years ago

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<F>::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<F>::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<F>::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<F>::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<int>') 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<int>') 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<int>') 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
Oleksandr-Tkachenko commented 2 years ago

what are your compiler and boost version?

Mactep1 commented 2 years ago

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 commented 2 years ago

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)?