how to build elliptics
molele2 opened this issue · 34 comments
I try more and more ,not success,But I have more error,for example:
Scanning dependencies of target cocaine-core
[ 2%] Building CXX object CMakeFiles/cocaine-core.dir/src/actor.cpp.o
In file included from /storm/cocaine-core-0.12/include/cocaine/locked_ptr.hpp:24,
from /storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:25,
from /storm/cocaine-core-0.12/src/actor.cpp:21:
/storm/cocaine-core-0.12/include/cocaine/utility.hpp:84: error: ‘declval’ is not a member of ‘std’
/storm/cocaine-core-0.12/include/cocaine/utility.hpp:84: error: ‘declval’ is not a member of ‘std’
/storm/cocaine-core-0.12/include/cocaine/utility.hpp:84: error: expected primary-expression before ‘>’ token
/storm/cocaine-core-0.12/include/cocaine/utility.hpp:84: error: expected primary-expression before ‘)’ token
In file included from /storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:25,
from /storm/cocaine-core-0.12/src/actor.cpp:21:
/storm/cocaine-core-0.12/include/cocaine/locked_ptr.hpp:134: error: ‘declval’ is not a member of ‘std’
/storm/cocaine-core-0.12/include/cocaine/locked_ptr.hpp:134: error: ‘declval’ is not a member of ‘std’
/storm/cocaine-core-0.12/include/cocaine/locked_ptr.hpp:134: error: expected primary-expression before ‘&’ token
/storm/cocaine-core-0.12/include/cocaine/locked_ptr.hpp:134: error: expected primary-expression before ‘>’ token
/storm/cocaine-core-0.12/include/cocaine/locked_ptr.hpp:134: error: expected primary-expression before ‘)’ token
/storm/cocaine-core-0.12/include/cocaine/locked_ptr.hpp:140: error: ‘declval’ is not a member of ‘std’
/storm/cocaine-core-0.12/include/cocaine/locked_ptr.hpp:140: error: ‘declval’ is not a member of ‘std’
/storm/cocaine-core-0.12/include/cocaine/locked_ptr.hpp:140: error: expected primary-expression before ‘const’
In file included from /storm/cocaine-core-0.12/src/actor.cpp:21:
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:30: error: expected nested-name-specifier before ‘boost’
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:30: error: namespace ‘boost’ not allowed in using-declaration
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:42: error: ‘asio’ was not declared in this scope
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:42: error: template argument 1 is invalid
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:52: error: ‘asio’ was not declared in this scope
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:52: error: template argument 1 is invalid
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:52: error: template argument 2 is invalid
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:52: error: template argument 1 is invalid
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:58: error: ‘asio’ was not declared in this scope
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:58: error: template argument 1 is invalid
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:61: error: ‘asio’ was not declared in this scope
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:61: error: template argument 1 is invalid
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:69: error: ‘asio’ was not declared in this scope
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:69: error: template argument 1 is invalid
/storm/cocaine-core-0.12/include/cocaine/rpc/actor.hpp:69: error: template argument 2 is invalid
In file included from /storm/cocaine-core-0.12/src/actor.cpp:23:
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:29: error: expected nested-name-specifier before ‘boost’
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:29: error: namespace ‘boost’ not allowed in using-declaration
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:46: error: ‘asio’ has not been declared
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:46: error: expected ‘,’ or ‘...’ before ‘&’ token
cc1plus: warnings being treated as errors
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:46: error: unused parameter ‘io_service’
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:58: error: ‘asio’ has not been declared
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:58: error: expected ‘,’ or ‘...’ before ‘&’ token
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:65: error: ‘asio’ has not been declared
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:65: error: expected ‘,’ or ‘...’ before ‘&’ token
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp: In member function ‘virtual cocaine::api::category_traitscocaine::api::service_t::ptr_type cocaine::api::category_traitscocaine::api::service_t::default_factory::get(cocaine::context_t&, int)’:
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:66: error: ‘asio’ was not declared in this scope
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:66: error: ‘name’ was not declared in this scope
/storm/cocaine-core-0.12/include/cocaine/api/service.hpp:66: error: ‘args’ was not declared in this scope
In file included from /storm/cocaine-core-0.12/include/cocaine/context.hpp:26,
from /storm/cocaine-core-0.12/src/actor.cpp:25:
/storm/cocaine-core-0.12/include/cocaine/context/config.hpp: At global scope:
/storm/cocaine-core-0.12/include/cocaine/context/config.hpp:31: error: expected nested-name-specifier before ‘boost’
/storm/cocaine-core-0.12/include/cocaine/context/config.hpp:31: error: namespace ‘boost’ not allowed in using-declaration
/storm/cocaine-core-0.12/include/cocaine/context/config.hpp:54: error: ‘asio’ has not been declared
/storm/cocaine-core-0.12/include/cocaine/context/config.hpp:54: error: ISO C++ forbids declaration of ‘address’ with no type
/storm/cocaine-core-0.12/include/cocaine/context/config.hpp:54: error: expected ‘;’ before ‘endpoint’
^Cmake[2]: *** wait: No child processes. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** wait: No child processes. Stop.
make[1]: *** wait: No child processes. Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: *** wait: No child processes. Stop.
make: *** wait: No child processes. Stop.
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
I found code not use namespace, So,I add some,but more error is now
sorry,I have a error,It should like this:
Msgpack found:
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- python
-- Found PythonInterp: /usr/local/bin/python (found version "2.7.10")
-- Found PythonLibs: /usr/local/lib/libpython2.7.so (found suitable exact version "2.7.10")
-- Python includes are situated in (/usr/local/include/python2.7, /usr/local/include/python2.7)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- iostreams
-- thread
-- regex
-- program_options
-- system
-- filesystem
-- Found libev: /usr/local/lib/libev.so
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find CocaineNative (missing: CocaineNative_LIBRARY
CocaineNative_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindCocaineNative.cmake:18 (find_package_handle_standard_args)
tests/CMakeLists.txt:22 (find_package)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
COCAINE_CORE_LIBRARY (ADVANCED)
linked by target "elliptics_cocaine" in directory /storm/elliptics-master/srw
linked by target "elliptics" in directory /storm/elliptics-master/library
COCAINE_INCLUDE_DIRS (ADVANCED)
used as include directory in directory /storm/elliptics-master/example/module_backend
used as include directory in directory /storm/elliptics-master/example/module_backend
used as include directory in directory /storm/elliptics-master/srw
used as include directory in directory /storm/elliptics-master/cache
used as include directory in directory /storm/elliptics-master/indexes
used as include directory in directory /storm/elliptics-master/library
used as include directory in directory /storm/elliptics-master/library
used as include directory in directory /storm/elliptics-master/library
used as include directory in directory /storm/elliptics-master/bindings/cpp
used as include directory in directory /storm/elliptics-master/bindings/python
used as include directory in directory /storm/elliptics-master/monitor
-- Configuring incomplete, errors occurred!
See also "/storm/elliptics-master/build/CMakeFiles/CMakeOutput.log".
See also "/storm/elliptics-master/build/CMakeFiles/CMakeError.log".
Currently, Elliptics doesn't support Cocaine v0.12 which is under stabilization. Please, use Cocaine v0.11
oh!,I always try three days,Elliptics have a topic for how to build for elliptics
What need for third framework,and paramter for cmake,Thank Elliptics terms
I set paramter on elliptics-bf.spec for
%{cmake} -DHAVE_MODULE_BACKEND_SUPPORT=no -DWITH_COCAINE=off .
change on to off
cmake .. on root build
Found the following Boost libraries:
-- python
-- Found PythonInterp: /usr/local/bin/python (found version "2.7.10")
-- Found PythonLibs: /usr/local/lib/libpython2.7.so (found suitable exact version "2.7.10")
-- Python includes are situated in (/usr/local/include/python2.7, /usr/local/include/python2.7)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- iostreams
-- thread
-- regex
-- program_options
-- system
-- filesystem
-- Found libev: /usr/local/lib/libev.so
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find CocaineNative (missing: CocaineNative_LIBRARY
CocaineNative_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindCocaineNative.cmake:18 (find_package_handle_standard_args)
tests/CMakeLists.txt:22 (find_package)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
COCAINE_CORE_LIBRARY (ADVANCED)
linked by target "elliptics_cocaine" in directory /storm/elliptics-master/srw
linked by target "elliptics" in directory /storm/elliptics-master/library
COCAINE_INCLUDE_DIRS (ADVANCED)
used as include directory in directory /storm/elliptics-master/example/module_backend
used as include directory in directory /storm/elliptics-master/example/module_backend
used as include directory in directory /storm/elliptics-master/srw
used as include directory in directory /storm/elliptics-master/cache
used as include directory in directory /storm/elliptics-master/indexes
used as include directory in directory /storm/elliptics-master/library
used as include directory in directory /storm/elliptics-master/library
used as include directory in directory /storm/elliptics-master/library
used as include directory in directory /storm/elliptics-master/bindings/cpp
used as include directory in directory /storm/elliptics-master/bindings/python
used as include directory in directory /storm/elliptics-master/monitor
-- Configuring incomplete, errors occurred!
See also "/storm/elliptics-master/build/CMakeFiles/CMakeOutput.log".
See also "/storm/elliptics-master/build/CMakeFiles/CMakeError.log".
There is build tutorial at http://doc.reverbrain.com/elliptics:server-tutorial
Or you can use our repository with binary packages for many distributions at http://repo.reverbrain.com
I like compile form source code,But very diffcult
If cmake tries to find cocaine after you have disabled it in the command line, this is likely because of cached cmake configs.
Usually one builds in a separate dir like
cd elliptics
mkdir build
cd build
cmake -DWITH_COCAINE=OFF ..
make
Found PythonLibs: /usr/local/lib/libpython2.7.so (found suitable exact version "2.7.10")
-- Python includes are situated in (/usr/local/include/python2.7, /usr/local/include/python2.7)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- iostreams
-- thread
-- regex
-- program_options
-- system
-- filesystem
-- Configuring done
CMake Error at bindings/cpp/CMakeLists.txt:39 (add_library):
Cannot find source file:
../../foreign/cmp/cmp.c
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
-- Build files have been written to: /storm/elliptics-master/build
You should run
$ git submodule init
$ git submodule update
usually on every project you try to build from github
ye!I see cmp project for github address,I try again
[ 16%] Building CXX object library/CMakeFiles/elliptics_client.dir//bindings/cpp/logger.cpp.o
In file included from /storm/elliptics-master/include/elliptics/logger.hpp:16,
from /storm/elliptics-master/bindings/cpp/logger.cpp:1:
/usr/local/include/blackhole/log.hpp:4:2: warning: #warning <blackhole/log.hpp> file is deprecated, use <blackhole/logger.hpp> plus <blackhole/macro.hpp> instead
In file included from /storm/elliptics-master/bindings/cpp/logger.cpp:1:
/storm/elliptics-master/include/elliptics/logger.hpp:55: warning: ‘blackhole::v500::log::record_t’ is deprecated (declared at /usr/local/include/blackhole/record.hpp:102)
In file included from /storm/elliptics-master/bindings/cpp/logger.cpp:2:
/storm/elliptics-master/include/elliptics/session.hpp:166: warning: ‘attributes_t’ is deprecated (declared at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:171)
In file included from /storm/elliptics-master/bindings/cpp/../../library/elliptics.h:51,
from /storm/elliptics-master/bindings/cpp/logger.cpp:3:
/storm/elliptics-master/bindings/cpp/../../library/backend.h:51: warning: ‘blackhole::v500::log::attributes_t’ is deprecated (declared at /usr/local/include/blackhole/attribute/set.hpp:32)
/storm/elliptics-master/bindings/cpp/../../library/backend.h: In static member function ‘static blackhole::v500::log::attributes_t dnet_backend_info::make_attributes(uint32_t)’:
/storm/elliptics-master/bindings/cpp/../../library/backend.h:53: warning: ‘blackhole::v500::log::attributes_t’ is deprecated (declared at /usr/local/include/blackhole/attribute/set.hpp:32)
/storm/elliptics-master/bindings/cpp/logger.cpp: In constructor ‘ioremap::elliptics::file_logger::file_logger(const char_, ioremap::elliptics::log_level)’:
/storm/elliptics-master/bindings/cpp/logger.cpp:29: error: no matching function for call to ‘blackhole::v500::verbose_logger_tblackhole::v500::defaults::severity::verbose_logger_t()’
/usr/local/include/blackhole/logger.hpp:230: note: candidates are: blackhole::v500::verbose_logger_t::verbose_logger_t(blackhole::v500::verbose_logger_t&&) [with Level = blackhole::v500::defaults::severity]
/usr/local/include/blackhole/logger.hpp:225: note: blackhole::v500::verbose_logger_t::verbose_logger_t(Level) [with Level = blackhole::v500::defaults::severity]
/usr/local/include/blackhole/logger.hpp:211: note: blackhole::v500::verbose_logger_tblackhole::v500::defaults::severity::verbose_logger_t(blackhole::v500::verbose_logger_tblackhole::v500::defaults::severity&)
/storm/elliptics-master/bindings/cpp/logger.cpp:31: error: no matching function for call to ‘ioremap::elliptics::file_logger::verbosity(ioremap::elliptics::log_level&)’
/usr/local/include/blackhole/logger.hpp:241: note: candidates are: Level blackhole::v500::verbose_logger_t::verbosity() const [with Level = blackhole::v500::defaults::severity]
/storm/elliptics-master/bindings/cpp/logger.cpp:33: error: ‘make_unique’ is not a member of ‘blackhole::v500::utils’
/storm/elliptics-master/bindings/cpp/logger.cpp:33: error: expected primary-expression before ‘>’ token
/storm/elliptics-master/bindings/cpp/logger.cpp:33: error: unable to deduce ‘auto’ from ‘’
/storm/elliptics-master/bindings/cpp/logger.cpp:35: error: ‘make_unique’ is not a member of ‘blackhole::v500::utils’
/storm/elliptics-master/bindings/cpp/logger.cpp:35: error: expected primary-expression before ‘>’ token
/storm/elliptics-master/bindings/cpp/logger.cpp:35: error: unable to deduce ‘auto’ from ‘’
/storm/elliptics-master/bindings/cpp/logger.cpp:36: error: ‘make_unique’ is not a member of ‘blackhole::v500::utils’
/storm/elliptics-master/bindings/cpp/logger.cpp:37: error: expected primary-expression before ‘>’ token
/storm/elliptics-master/bindings/cpp/logger.cpp:38: error: unable to deduce ‘auto’ from ‘’
/storm/elliptics-master/bindings/cpp/logger.cpp:42: error: ‘add_attribute’ was not declared in this scope
/storm/elliptics-master/bindings/cpp/logger.cpp: In function ‘void dnet_node_set_trace_id(dnet_logger_, uint64_t, int, int)’:
/storm/elliptics-master/bindings/cpp/logger.cpp:150: warning: ‘blackhole::v500::log::attributes_t’ is deprecated (declared at /usr/local/include/blackhole/attribute/set.hpp:32)
/storm/elliptics-master/bindings/cpp/logger.cpp:156: error: no matching function for call to ‘std::vector<std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t>, std::allocator<std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t> > >::insert(std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t>)’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/vector.tcc:106: note: candidates are: __gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> > std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t>, _Alloc = std::allocator<std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t> >]
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:815: note: __gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> > std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, _Tp&&) [with _Tp = std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t>, _Alloc = std::allocator<std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t> >]
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:832: note: void std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, std::initializer_list<_Tp>) [with _Tp = std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t>, _Alloc = std::allocator<std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t> >]
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_vector.h:850: note: void std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::Tp_alloc_type::pointer, std::vector<Tp, Alloc> >, size_t, const Tp&) [with Tp = std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t>, Alloc = std::allocator<std::pair<std::basic_string<char, std::char_traits, std::allocator >, blackhole::v500::attribute_t> >]
/storm/elliptics-master/bindings/cpp/logger.cpp: In function ‘dnet_logger_record* dnet_log_open_record(dnet_logger, dnet_log_level)’:
/storm/elliptics-master/bindings/cpp/logger.cpp:195: warning: ‘blackhole::v500::log::record_t’ is deprecated (declared at /usr/local/include/blackhole/record.hpp:102)
/storm/elliptics-master/bindings/cpp/logger.cpp: In function ‘int dnet_log_enabled(dnet_logger, dnet_log_level)’:
/storm/elliptics-master/bindings/cpp/logger.cpp:211: warning: ‘blackhole::v500::log::record_t’ is deprecated (declared at /usr/local/include/blackhole/record.hpp:102)
/storm/elliptics-master/bindings/cpp/logger.cpp: In function ‘void dnet_log_set_verbosity(dnet_logger, dnet_log_level)’:
/storm/elliptics-master/bindings/cpp/logger.cpp:227: error: no matching function for call to ‘blackhole::v500::verbose_logger_tblackhole::v500::defaults::severity::verbosity(dnet_log_level&)’
/usr/local/include/blackhole/logger.hpp:241: note: candidates are: Level blackhole::v500::verbose_logger_t::verbosity() const [with Level = blackhole::v500::defaults::severity]
/storm/elliptics-master/bindings/cpp/logger.cpp: In function ‘void dnet_log_add_message(dnet_logger_record, const char, va_list_tag)’:
/storm/elliptics-master/bindings/cpp/logger.cpp:244: error: ‘record->blackhole::v500::record_t::attributes’ does not have class type
/storm/elliptics-master/bindings/cpp/logger.cpp: In function ‘void dnet_log_record_set_request_id(dnet_logger_record, uint64_t, int)’:
/storm/elliptics-master/bindings/cpp/logger.cpp:287: error: ‘record->blackhole::v500::record_t::attributes’ does not have class type
/storm/elliptics-master/bindings/cpp/logger.cpp:288: error: ‘record->blackhole::v500::record_t::attributes’ does not have class type
make[2]: ** [library/CMakeFiles/elliptics_client.dir//bindings/cpp/logger.cpp.o] Error 1
make[1]: *** [library/CMakeFiles/elliptics_client.dir/all] Error 2
make: *** [all] Error 2
Elliptics supports blackhole 0.2 version, you should checkout that version.
If you want the latest 0.5 version, here is a link to appropriate pull request: #625
I not found blackhole 0.2 version ,I only find 0.5 version
Run
$ git branch -v -r
It will show you several branches including origin/v0.2
Then run
$ git checkout v0.2
$ mkdir build
...
https://github.com/shaitan/blackhole/branches/all
Are you sure use 0.2 version not 0.5?
Original blackhole tree lives at https://github.com/3Hren/blackhole
And yes, elliptics uses v0.2
thanks bioothod
If have chance,I want to join this project to developing ,I used linux 8 years ,can use c++ codeing
In file included from /boost/boost_1_58_0/boost/variant.hpp:22,
from /usr/local/include/blackhole/attribute.hpp:11,
from /usr/local/include/blackhole/detail/traits/attributes/pack/feeder.hpp:3,
from /usr/local/include/blackhole/detail/logger/pusher.hpp:7,
from /usr/local/include/blackhole/log.hpp:6,
from /storm/elliptics-master/include/elliptics/logger.hpp:16,
from /storm/elliptics-master/include/elliptics/interface.h:41,
from /storm/elliptics-master/library/route.h:5,
from /storm/elliptics-master/library/elliptics.h:50,
from /storm/elliptics-master/cache/cache.hpp:35,
from /storm/elliptics-master/cache/cache.cpp:18:
/boost/boost_1_58_0/boost/variant/get.hpp: In function ‘typename boost::add_pointer::type boost::strict_get(const boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>) [with U = const blackhole::dynamic_t::array_t&, T0 = blackhole::dynamic_t::null_t, T1 = bool, T2 = long unsigned int, T3 = long int, T4 = double, T5 = std::basic_string<char, std::char_traits, std::allocator >, T6 = std::vector<blackhole::dynamic_t, std::allocatorblackhole::dynamic_t >, T7 = std::map<std::basic_string<char, std::char_traits, std::allocator >, blackhole::dynamic_t, std::less<std::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits, std::allocator >, blackhole::dynamic_t> > >, T8 = boost::detail::variant::void, T9 = boost::detail::variant::void_, T10 = boost::detail::variant::void_, T11 = boost::detail::variant::void_, T12 = boost::detail::variant::void_, T13 = boost::detail::variant::void_, T14 = boost::detail::variant::void_, T15 = boost::detail::variant::void_, T16 = boost::detail::variant::void_, T17 = boost::detail::variant::void_, T18 = boost::detail::variant::void_, T19 = boost::detail::variant::void_]’:
/boost/boost_1_58_0/boost/variant/get.hpp:269: instantiated from ‘typename boost::add_pointer::type boost::get(const boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>) [with U = const blackhole::dynamic_t::array_t&, T0 = blackhole::dynamic_t::null_t, T1 = bool, T2 = long unsigned int, T3 = long int, T4 = double, T5 = std::basic_string<char, std::char_traits, std::allocator >, T6 = std::vector<blackhole::dynamic_t, std::allocatorblackhole::dynamic_t >, T7 = std::map<std::basic_string<char, std::char_traits, std::allocator >, blackhole::dynamic_t, std::less<std::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits, std::allocator >, blackhole::dynamic_t> > >, T8 = boost::detail::variant::void, T9 = boost::detail::variant::void_, T10 = boost::detail::variant::void_, T11 = boost::detail::variant::void_, T12 = boost::detail::variant::void_, T13 = boost::detail::variant::void_, T14 = boost::detail::variant::void_, T15 = boost::detail::variant::void_, T16 = boost::detail::variant::void_, T17 = boost::detail::variant::void_, T18 = boost::detail::variant::void_, T19 = boost::detail::variant::void_]’
/usr/local/include/blackhole/dynamic.hpp:396: instantiated from ‘typename std::enable_if<(blackhole::dynamic_t::is_convertible::value && (! blackhole::type_traits::is_integer::value)), T>::type blackhole::dynamic_t::to() const [with T = const blackhole::dynamic_t::array_t&]’
/storm/elliptics-master/cache/../example/config.hpp:237: instantiated from here
/boost/boost_1_58_0/boost/variant/get.hpp:195: error: static assertion failed: "boost::variant does not contain specified type U, call to boost::get(const boost::variant<T...>) will always return NULL"
/boost/boost_1_58_0/boost/asio/error.hpp: At global scope:
/boost/boost_1_58_0/boost/asio/error.hpp:258: warning: ‘boost::asio::error::system_category’ defined but not used
/boost/boost_1_58_0/boost/asio/error.hpp:260: warning: ‘boost::asio::error::netdb_category’ defined but not used
/boost/boost_1_58_0/boost/asio/error.hpp:262: warning: ‘boost::asio::error::addrinfo_category’ defined but not used
/boost/boost_1_58_0/boost/asio/error.hpp:264: warning: ‘boost::asio::error::misc_category’ defined but not used
make[2]: ** [cache/CMakeFiles/elliptics_cache.dir/cache.cpp.o] Error 1
make[1]: *** [cache/CMakeFiles/elliptics_cache.dir/all] Error 2
make: *** [all] Error 2
more error,I want to know ,You use boost for which model c99 c03 or c11?
We use boost c++11
ok,I try build boost for c11 good night bioothod
I would strongly recommend you not to do this and use your system's boost instead, since otherwise you may have to rebuild every other software on your system which depends on boost
I rebuild boost 1.58 and rebuild elliptics,The error have awalys
Scanning dependencies of target elliptics_indexes
[ 29%] Building CXX object indexes/CMakeFiles/elliptics_indexes.dir/indexes.cpp.o
[ 30%] Building CXX object indexes/CMakeFiles/elliptics_indexes.dir/local_session.cpp.o
Linking CXX static library libelliptics_indexes.a
[ 30%] Built target elliptics_indexes
Scanning dependencies of target elliptics_cache
[ 31%] Building CXX object cache/CMakeFiles/elliptics_cache.dir/slru_cache.cpp.o
[ 32%] Building CXX object cache/CMakeFiles/elliptics_cache.dir/cache.cpp.o
In file included from /boost/boost_1_58_0/boost/variant.hpp:22,
from /usr/local/include/blackhole/attribute.hpp:11,
from /usr/local/include/blackhole/detail/traits/attributes/pack/feeder.hpp:3,
from /usr/local/include/blackhole/detail/logger/pusher.hpp:7,
from /usr/local/include/blackhole/log.hpp:6,
from /storm/elliptics-master/include/elliptics/logger.hpp:16,
from /storm/elliptics-master/include/elliptics/interface.h:41,
from /storm/elliptics-master/library/route.h:5,
from /storm/elliptics-master/library/elliptics.h:50,
from /storm/elliptics-master/cache/cache.hpp:35,
from /storm/elliptics-master/cache/cache.cpp:18:
/boost/boost_1_58_0/boost/variant/get.hpp: In function ‘typename boost::add_pointer::type boost::strict_get(const boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>) [with U = const blackhole::dynamic_t::array_t&, T0 = blackhole::dynamic_t::null_t, T1 = bool, T2 = long unsigned int, T3 = long int, T4 = double, T5 = std::basic_string<char, std::char_traits, std::allocator >, T6 = std::vector<blackhole::dynamic_t, std::allocatorblackhole::dynamic_t >, T7 = std::map<std::basic_string<char, std::char_traits, std::allocator >, blackhole::dynamic_t, std::less<std::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits, std::allocator >, blackhole::dynamic_t> > >, T8 = boost::detail::variant::void, T9 = boost::detail::variant::void_, T10 = boost::detail::variant::void_, T11 = boost::detail::variant::void_, T12 = boost::detail::variant::void_, T13 = boost::detail::variant::void_, T14 = boost::detail::variant::void_, T15 = boost::detail::variant::void_, T16 = boost::detail::variant::void_, T17 = boost::detail::variant::void_, T18 = boost::detail::variant::void_, T19 = boost::detail::variant::void_]’:
/boost/boost_1_58_0/boost/variant/get.hpp:269: instantiated from ‘typename boost::add_pointer::type boost::get(const boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>) [with U = const blackhole::dynamic_t::array_t&, T0 = blackhole::dynamic_t::null_t, T1 = bool, T2 = long unsigned int, T3 = long int, T4 = double, T5 = std::basic_string<char, std::char_traits, std::allocator >, T6 = std::vector<blackhole::dynamic_t, std::allocatorblackhole::dynamic_t >, T7 = std::map<std::basic_string<char, std::char_traits, std::allocator >, blackhole::dynamic_t, std::less<std::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits, std::allocator >, blackhole::dynamic_t> > >, T8 = boost::detail::variant::void, T9 = boost::detail::variant::void_, T10 = boost::detail::variant::void_, T11 = boost::detail::variant::void_, T12 = boost::detail::variant::void_, T13 = boost::detail::variant::void_, T14 = boost::detail::variant::void_, T15 = boost::detail::variant::void_, T16 = boost::detail::variant::void_, T17 = boost::detail::variant::void_, T18 = boost::detail::variant::void_, T19 = boost::detail::variant::void_]’
/usr/local/include/blackhole/dynamic.hpp:396: instantiated from ‘typename std::enable_if<(blackhole::dynamic_t::is_convertible::value && (! blackhole::type_traits::is_integer::value)), T>::type blackhole::dynamic_t::to() const [with T = const blackhole::dynamic_t::array_t&]’
/storm/elliptics-master/cache/../example/config.hpp:237: instantiated from here
/boost/boost_1_58_0/boost/variant/get.hpp:195: error: static assertion failed: "boost::variant does not contain specified type U, call to boost::get(const boost::variant<T...>) will always return NULL"
/boost/boost_1_58_0/boost/asio/error.hpp: At global scope:
/boost/boost_1_58_0/boost/asio/error.hpp:258: warning: ‘boost::asio::error::system_category’ defined but not used
/boost/boost_1_58_0/boost/asio/error.hpp:260: warning: ‘boost::asio::error::netdb_category’ defined but not used
/boost/boost_1_58_0/boost/asio/error.hpp:262: warning: ‘boost::asio::error::addrinfo_category’ defined but not used
/boost/boost_1_58_0/boost/asio/error.hpp:264: warning: ‘boost::asio::error::misc_category’ defined but not used
make[2]: ** [cache/CMakeFiles/elliptics_cache.dir/cache.cpp.o] Error 1
make[1]: *** [cache/CMakeFiles/elliptics_cache.dir/all] Error 2
make: *** [all] Error 2
Are you sure you have rebuilt/reinstalled blackhole v0.2?
@3Hren please take a look
ye,I use blackhode v0.2 ,and configure boost
./bjam --toolset=gcc --with-iostreams --with-python --with-serialization --with-signals --with-math --with-exception --with-atomic --with-system --with-random --with-chrono --with-date_time --with-thread --with-filesystem --with-regex --with-program_options --with-timer --with-coroutine --with-context --with-locale threading=multi cxxflags="-std=c++0x"
blackhole-0.2
I haven't especially tested Blackhole 0.2 with boost 1.58, but if it doesn't work, then the only rationale is that boost guys has broken backward compatibility.
I see there is static_assert, which checks that to<U>
's method type contains in the boost::variant<T...>
ADT.
@molele2 can you check whether 1.55 boost works in your environment?
This is the latest version I've found to date which is used to compile our packages
ok, I downloads boost on 1.55 version,try rebuild it ,thanks guys 3Hren and bioothod for help me more
@3Hren ,I think the error by c++11 ,but now it is are not all ,the result I don't know
Is this issue still relevant?
I try spark Tachyon and storm compute big data from my company application store data