Source code compiled with Boost-library version 1.57.0 and GCC version 4.8. Cmake run command line is completed steps. Follow cmake run configuration success as below.
workspacecpp/rDSN/builddir$ /home/chatsiri/sda1/workspacecpp/cmake/build/bin/cmake .. -DCMAKE_INSTALL_PREFIX=/media/0200784479D7F470/workspacecpp/rDSN/builddir -DBOOST_ROOT=/home/chatsiri/sda1/workspacecpp/boost_1_57_0 -DBOOST_LIBRARYDIR=/home/chatsiri/sda1/workspacecpp/boost_1_57_0/stage/lib -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/gcc
Compiler set : /usr/bin/gcc.
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/gcc-4.8
-- Check for working CXX compiler: /usr/bin/gcc-4.8 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Boost version: 1.57.0
-- Found the following Boost libraries:
-- thread
-- regex
-- system
-- filesystem
-- chrono
-- date_time
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
CMake Warning (dev) in src/core/CMakeLists.txt:
Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> properties.
Run "cmake --help-policy CMP0043" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
After run Make command line for building rDSN source code throws an error in steps of 24% [ 24%] Building CXX object src/core/CMakeFiles/dsn.core.dir/service_api.cpp.o
follow as below
workspacecpp/rDSN/builddir$ make
Scanning dependencies of target googletest
[ 0%] Creating directories for 'googletest'
[ 1%] Performing download step (git clone) for 'googletest'
Cloning into 'googletest'...
Already on 'master'
[ 2%] No patch step for 'googletest'
[ 3%] Performing update step for 'googletest'
Current branch master is up to date.
[ 4%] Performing configure step for 'googletest'
-- The CXX compiler identification is GNU 4.8.1
Compiler set : /usr/bin/gcc.
-- The C compiler identification is GNU 4.8.1
-- Check for working CXX compiler: /usr/bin/gcc-4.8
-- Check for working CXX compiler: /usr/bin/gcc-4.8 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /media/0200784479D7F470/workspacecpp/rDSN/builddir/lib
[ 5%] Performing build step for 'googletest'
Scanning dependencies of target gtest
[ 25%] Building CXX object CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 50%] Linking CXX static library libgtest.a
[ 50%] Built target gtest
Scanning dependencies of target gtest_main
[ 75%] Building CXX object CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[100%] Linking CXX static library libgtest_main.a
[100%] Built target gtest_main
[ 6%] No install step for 'googletest'
[ 7%] Completed 'googletest'
[ 7%] Built target googletest
Scanning dependencies of target dsn.core
[ 8%] Building CXX object src/core/CMakeFiles/dsn.core.dir/disk_engine.cpp.o
[ 9%] Building CXX object src/core/CMakeFiles/dsn.core.dir/admission_controller.cpp.o
[ 9%] Building CXX object src/core/CMakeFiles/dsn.core.dir/aio_provider.cpp.o
[ 10%] Building CXX object src/core/CMakeFiles/dsn.core.dir/command_manager.cpp.o
[ 11%] Building CXX object src/core/CMakeFiles/dsn.core.dir/configuration.cpp.o
[ 12%] Building CXX object src/core/CMakeFiles/dsn.core.dir/coredump.posix.cpp.o
[ 13%] Building CXX object src/core/CMakeFiles/dsn.core.dir/coredump.win.cpp.o
[ 14%] Building CXX object src/core/CMakeFiles/dsn.core.dir/end_point.cpp.o
[ 14%] Building CXX object src/core/CMakeFiles/dsn.core.dir/env_provider.cpp.o
[ 15%] Building CXX object src/core/CMakeFiles/dsn.core.dir/error_code.cpp.o
[ 16%] Building CXX object src/core/CMakeFiles/dsn.core.dir/global_config.cpp.o
[ 17%] Building CXX object src/core/CMakeFiles/dsn.core.dir/join_point.cpp.o
[ 18%] Building CXX object src/core/CMakeFiles/dsn.core.dir/logging.cpp.o
[ 19%] Building CXX object src/core/CMakeFiles/dsn.core.dir/memory_provider.cpp.o
[ 19%] Building CXX object src/core/CMakeFiles/dsn.core.dir/message_parser.cpp.o
[ 20%] Building CXX object src/core/CMakeFiles/dsn.core.dir/network.cpp.o
[ 21%] Building CXX object src/core/CMakeFiles/dsn.core.dir/perf_counter.cpp.o
[ 22%] Building CXX object src/core/CMakeFiles/dsn.core.dir/perf_counters.cpp.o
[ 23%] Building CXX object src/core/CMakeFiles/dsn.core.dir/rpc_engine.cpp.o
[ 24%] Building CXX object src/core/CMakeFiles/dsn.core.dir/rpc_message.cpp.o
[ 24%] Building CXX object src/core/CMakeFiles/dsn.core.dir/service_api.cpp.o
In file included from /usr/include/boost/iterator/interoperable.hpp:13:0,
from /usr/include/boost/iterator/iterator_facade.hpp:11,
from /usr/include/boost/filesystem/v3/path.hpp:28,
from /usr/include/boost/filesystem.hpp:35,
from /media/0200784479D7F470/workspacecpp/rDSN/src/core/service_api.cpp:36:
/usr/include/boost/type_traits/is_convertible.hpp: In instantiation of ‘const bool boost::detail::is_convertible_basic_impl<boost::filesystem3::directory_iterator&, boost::filesystem3::directory_iterator>::value’:
/usr/include/boost/type_traits/is_convertible.hpp:295:5: required from ‘const bool boost::detail::is_convertible_impl<boost::filesystem3::directory_iterator, boost::filesystem3::directory_iterator>::value’
/usr/include/boost/type_traits/is_convertible.hpp:418:1: required from ‘struct boost::is_convertible<boost::filesystem3::directory_iterator, boost::filesystem3::directory_iterator>’
/usr/include/boost/mpl/aux_/nested_type_wknd.hpp:26:31: required from ‘struct boost::mpl::aux::nested_type_wknd<boost::is_convertible<boost::filesystem3::directory_iterator, boost::filesystem3::directory_iterator> >’
/usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp:48:8: required from ‘struct boost::mpl::or_<boost::is_convertible<boost::filesystem3::directory_iterator, boost::filesystem3::directory_iterator>, boost::is_convertible<boost::filesystem3::directory_iterator, boost::filesystem3::directory_iterator>, mpl_::bool_<false>, mpl_::bool_<false>, mpl_::bool_<false> >’
/usr/include/boost/iterator/detail/enable_if.hpp:68:12: required from ‘struct boost::iterators::enable_if<boost::mpl::or_<boost::is_convertible<boost::filesystem3::directory_iterator, boost::filesystem3::directory_iterator>, boost::is_convertible<boost::filesystem3::directory_iterator, boost::filesystem3::directory_iterator>, mpl_::bool_<false>, mpl_::bool_<false>, mpl_::bool_<false> >, bool>’
/usr/include/boost/iterator/iterator_facade.hpp:67:12: required from ‘struct boost::detail::enable_if_interoperable<boost::filesystem3::directory_iterator, boost::filesystem3::directory_iterator, bool>’
/usr/include/boost/iterator/iterator_facade.hpp:837:3: required by substitution of ‘template<class Derived1, class V1, class TC1, class Reference1, class Difference1, class Derived2, class V2, class TC2, class Reference2, class Difference2> typename boost::detail::enable_if_interoperable<Derived1, Derived2, typename boost::mpl::apply2<boost::detail::always_bool2, Derived1, Derived2>::type>::type boost::operator!=(const boost::iterator_facade<Derived1, V1, TC1, Reference1, Difference1>&, const boost::iterator_facade<Derived2, V2, TC2, Reference2, Difference2>&) [with Derived1 = boost::filesystem3::directory_iterator; V1 = boost::filesystem3::directory_entry; TC1 = boost::single_pass_traversal_tag; Reference1 = boost::filesystem3::directory_entry&; Difference1 = long int; Derived2 = boost::filesystem3::directory_iterator; V2 = boost::filesystem3::directory_entry; TC2 = boost::single_pass_traversal_tag; Reference2 = boost::filesystem3::directory_entry&; Difference2 = long int]’
/usr/include/boost/filesystem/v3/operations.hpp:691:49: required from here
/usr/include/boost/type_traits/is_convertible.hpp:135:86: error: use of deleted function ‘boost::filesystem3::directory_iterator::directory_iterator(const boost::filesystem3::directory_iterator&)’
static bool const value = sizeof( boost::detail::checker<To>::_m_check(_m_from, 0) )
^
In file included from /usr/include/boost/filesystem.hpp:36:0,
from /media/0200784479D7F470/workspacecpp/rDSN/src/core/service_api.cpp:36:
/usr/include/boost/filesystem/v3/operations.hpp:581:9: note: ‘boost::filesystem3::directory_iterator::directory_iterator(const boost::filesystem3::directory_iterator&)’ is implicitly deleted because the default definition would be ill-formed:
class directory_iterator
^
/usr/include/boost/filesystem/v3/operations.hpp:581:9: error: use of deleted function ‘boost::shared_ptr<boost::filesystem3::detail::dir_itr_imp>::shared_ptr(const boost::shared_ptr<boost::filesystem3::detail::dir_itr_imp>&)’
In file included from /usr/include/boost/shared_ptr.hpp:17:0,
from /media/0200784479D7F470/workspacecpp/rDSN/include/dsn/internal/dsn_types.h:112,
from /media/0200784479D7F470/workspacecpp/rDSN/include/dsn/internal/task.h:28,
from /media/0200784479D7F470/workspacecpp/rDSN/include/dsn/service_api.h:28,
from /media/0200784479D7F470/workspacecpp/rDSN/src/core/service_api.cpp:26:
/usr/include/boost/smart_ptr/shared_ptr.hpp:168:25: note: ‘boost::shared_ptr<boost::filesystem3::detail::dir_itr_imp>::shared_ptr(const boost::shared_ptr<boost::filesystem3::detail::dir_itr_imp>&)’ is implicitly declared as deleted because ‘boost::shared_ptr<boost::filesystem3::detail::dir_itr_imp>’ declares a move constructor or move assignment operator
template<class T> class shared_ptr
^
In file included from /usr/include/boost/iterator/interoperable.hpp:13:0,
from /usr/include/boost/iterator/iterator_facade.hpp:11,
from /usr/include/boost/filesystem/v3/path.hpp:28,
from /usr/include/boost/filesystem.hpp:35,
from /media/0200784479D7F470/workspacecpp/rDSN/src/core/service_api.cpp:36:
/usr/include/boost/type_traits/is_convertible.hpp:128:41: error: initializing argument 1 of ‘static boost::type_traits::yes_type boost::detail::checker<T>::_m_check(T, int) [with T = boost::filesystem3::directory_iterator; boost::type_traits::yes_type = char]’
static boost::type_traits::yes_type _m_check(T, int);
^
/media/0200784479D7F470/workspacecpp/rDSN/src/core/service_api.cpp: In function ‘bool dsn::internal_only::run(const char*, bool, std::string&, int)’:
/media/0200784479D7F470/workspacecpp/rDSN/src/core/service_api.cpp:150:32: error: ‘canonical’ is not a member of ‘boost::filesystem’
std::string cdir = boost::filesystem::canonical(boost::filesystem::path(spec.coredump_dir)).string();
^
In file included from /usr/include/x86_64-linux-gnu/c++/4.8/bits/c++allocator.h:33:0,
from /usr/include/c++/4.8/bits/allocator.h:46,
from /usr/include/c++/4.8/string:41,
from /media/0200784479D7F470/workspacecpp/rDSN/include/dsn/internal/dsn_types.h:94,
from /media/0200784479D7F470/workspacecpp/rDSN/include/dsn/internal/task.h:28,
from /media/0200784479D7F470/workspacecpp/rDSN/include/dsn/service_api.h:28,
from /media/0200784479D7F470/workspacecpp/rDSN/src/core/service_api.cpp:26:
/usr/include/c++/4.8/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = boost::filesystem3::directory_iterator; _Args = {boost::filesystem3::directory_iterator}; _Tp = boost::filesystem3::directory_iterator]’:
/usr/include/c++/4.8/bits/alloc_traits.h:254:4: required from ‘static typename std::enable_if<std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::value, void>::type std::allocator_traits<_Alloc>::_S_construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = boost::filesystem3::directory_iterator; _Args = {boost::filesystem3::directory_iterator}; _Alloc = std::allocator<boost::filesystem3::directory_iterator>; typename std::enable_if<std::allocator_traits<_Alloc>::__construct_helper<_Tp, _Args>::value, void>::type = void]’
/usr/include/c++/4.8/bits/alloc_traits.h:393:57: required from ‘static decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) std::allocator_traits<_Alloc>::construct(_Alloc&, _Tp*, _Args&& ...) [with _Tp = boost::filesystem3::directory_iterator; _Args = {boost::filesystem3::directory_iterator}; _Alloc = std::allocator<boost::filesystem3::directory_iterator>; decltype (_S_construct(__a, __p, (forward<_Args>)(std::allocator_traits::construct::__args)...)) = <type error>]’
/usr/include/c++/4.8/bits/vector.tcc:97:40: required from ‘void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {boost::filesystem3::directory_iterator}; _Tp = boost::filesystem3::directory_iterator; _Alloc = std::allocator<boost::filesystem3::directory_iterator>]’
/usr/include/c++/4.8/bits/stl_vector.h:920:36: required from ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = boost::filesystem3::directory_iterator; _Alloc = std::allocator<boost::filesystem3::directory_iterator>; std::vector<_Tp, _Alloc>::value_type = boost::filesystem3::directory_iterator]’
/usr/include/c++/4.8/bits/stl_stack.h:192:9: required from ‘void std::stack<_Tp, _Sequence>::push(std::stack<_Tp, _Sequence>::value_type&&) [with _Tp = boost::filesystem3::directory_iterator; _Sequence = std::vector<boost::filesystem3::directory_iterator>; std::stack<_Tp, _Sequence>::value_type = boost::filesystem3::directory_iterator]’
/usr/include/boost/filesystem/v3/operations.hpp:685:65: required from here
/usr/include/c++/4.8/ext/new_allocator.h:120:4: error: use of deleted function ‘boost::filesystem3::directory_iterator::directory_iterator(const boost::filesystem3::directory_iterator&)’
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^
In file included from /usr/include/c++/4.8/memory:64:0,
from /media/0200784479D7F470/workspacecpp/rDSN/include/dsn/internal/dsn_types.h:95,
from /media/0200784479D7F470/workspacecpp/rDSN/include/dsn/internal/task.h:28,
from /media/0200784479D7F470/workspacecpp/rDSN/include/dsn/service_api.h:28,
from /media/0200784479D7F470/workspacecpp/rDSN/src/core/service_api.cpp:26:
/usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = boost::filesystem3::directory_iterator; _Args = {boost::filesystem3::directory_iterator}]’:
/usr/include/c++/4.8/bits/stl_uninitialized.h:75:53: required from ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<boost::filesystem3::directory_iterator*>; _ForwardIterator = boost::filesystem3::directory_iterator*; bool _TrivialValueTypes = false]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:117:41: required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<boost::filesystem3::directory_iterator*>; _ForwardIterator = boost::filesystem3::directory_iterator*]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:258:63: required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator<boost::filesystem3::directory_iterator*>; _ForwardIterator = boost::filesystem3::directory_iterator*; _Tp = boost::filesystem3::directory_iterator]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:281:69: required from ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = boost::filesystem3::directory_iterator*; _ForwardIterator = boost::filesystem3::directory_iterator*; _Allocator = std::allocator<boost::filesystem3::directory_iterator>]’
/usr/include/c++/4.8/bits/vector.tcc:415:43: required from ‘void std::vector<_Tp, _Alloc>::_M_emplace_back_aux(_Args&& ...) [with _Args = {boost::filesystem3::directory_iterator}; _Tp = boost::filesystem3::directory_iterator; _Alloc = std::allocator<boost::filesystem3::directory_iterator>]’
/usr/include/c++/4.8/bits/vector.tcc:101:54: required from ‘void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {boost::filesystem3::directory_iterator}; _Tp = boost::filesystem3::directory_iterator; _Alloc = std::allocator<boost::filesystem3::directory_iterator>]’
/usr/include/c++/4.8/bits/stl_vector.h:920:36: required from ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = boost::filesystem3::directory_iterator; _Alloc = std::allocator<boost::filesystem3::directory_iterator>; std::vector<_Tp, _Alloc>::value_type = boost::filesystem3::directory_iterator]’
/usr/include/c++/4.8/bits/stl_stack.h:192:9: required from ‘void std::stack<_Tp, _Sequence>::push(std::stack<_Tp, _Sequence>::value_type&&) [with _Tp = boost::filesystem3::directory_iterator; _Sequence = std::vector<boost::filesystem3::directory_iterator>; std::stack<_Tp, _Sequence>::value_type = boost::filesystem3::directory_iterator]’
/usr/include/boost/filesystem/v3/operations.hpp:685:65: required from here
/usr/include/c++/4.8/bits/stl_construct.h:75:7: error: use of deleted function ‘boost::filesystem3::directory_iterator::directory_iterator(const boost::filesystem3::directory_iterator&)’
{ ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
^
make[2]: *** [src/core/CMakeFiles/dsn.core.dir/service_api.cpp.o] Error 1
make[1]: *** [src/core/CMakeFiles/dsn.core.dir/all] Error 2
make: *** [all] Error 2