-- Operation System is UNIX-like OS's
-- Configuring done
CMake Error: Unable to open check cache file for write. /home/wubin/tmp/wondertrader/src/CMakeFiles/cmake.check_cache
[ 21%] Built target WTSUtils
[ 21%] Building CXX object WTSTools/CMakeFiles/WTSTools.dir/WTSLogger.cpp.o
In file included from /home/wubin/tmp/wondertrader/src/WTSTools/../Share/JsonToVariant.hpp:12:0,
from /home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.cpp:15:
/home/wubin/tmp/wondertrader/src/WTSTools/../Share/../Includes/WTSVariant.hpp: In static member function ‘static otp::WTSVariant* otp::WTSVariant::create(int64_t)’:
/home/wubin/tmp/wondertrader/src/WTSTools/../Share/../Includes/WTSVariant.hpp:89:28: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int64_t {aka long int}’ [-Wformat=]
sprintf(s, INT64_FMT, i64);
^
/home/wubin/tmp/wondertrader/src/WTSTools/../Share/../Includes/WTSVariant.hpp: In static member function ‘static otp::WTSVariant* otp::WTSVariant::create(uint64_t)’:
/home/wubin/tmp/wondertrader/src/WTSTools/../Share/../Includes/WTSVariant.hpp:100:29: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
sprintf(s, UINT64_FMT, u64);
^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/string:41,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.cpp:11:
/usr/include/c++/7/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = spdlog::logger; _Args = {const char*&, std::vector<std::shared_ptr<spdlog::sinks::sink>, std::allocator<std::shared_ptr<spdlog::sinks::sink> > >&}; _Tp = spdlog::logger]’:
/usr/include/c++/7/bits/alloc_traits.h:475:4: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = spdlog::logger; _Args = {const char*&, std::vector<std::shared_ptr<spdlog::sinks::sink>, std::allocator<std::shared_ptr<spdlog::sinks::sink> > >&}; _Tp = spdlog::logger; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<spdlog::logger>]’
/usr/include/c++/7/bits/shared_ptr_base.h:526:39: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {const char*&, std::vector<std::shared_ptr<spdlog::sinks::sink>, std::allocator<std::shared_ptr<spdlog::sinks::sink> > >&}; _Tp = spdlog::logger; _Alloc = std::allocator<spdlog::logger>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/usr/include/c++/7/bits/shared_ptr_base.h:637:4: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = spdlog::logger; _Alloc = std::allocator<spdlog::logger>; _Args = {const char*&, std::vector<std::shared_ptr<spdlog::sinks::sink>, std::allocator<std::shared_ptr<spdlog::sinks::sink> > >&}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/usr/include/c++/7/bits/shared_ptr_base.h:1295:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<spdlog::logger>; _Args = {const char*&, std::vector<std::shared_ptr<spdlog::sinks::sink>, std::allocator<std::shared_ptr<spdlog::sinks::sink> > >&}; _Tp = spdlog::logger; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/usr/include/c++/7/bits/shared_ptr.h:344:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<spdlog::logger>; _Args = {const char*&, std::vector<std::shared_ptr<spdlog::sinks::sink>, std::allocator<std::shared_ptr<spdlog::sinks::sink> > >&}; _Tp = spdlog::logger]’
/usr/include/c++/7/bits/shared_ptr.h:690:14: required from ‘std::shared_ptr<_Tp> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = spdlog::logger; _Alloc = std::allocator<spdlog::logger>; _Args = {const char*&, std::vector<std::shared_ptr<spdlog::sinks::sink>, std::allocator<std::shared_ptr<spdlog::sinks::sink> > >&}]’
/usr/include/c++/7/bits/shared_ptr.h:706:39: required from ‘std::shared_ptr<_Tp> std::make_shared(_Args&& ...) [with _Tp = spdlog::logger; _Args = {const char*&, std::vector<std::shared_ptr<spdlog::sinks::sink>, std::allocator<std::shared_ptr<spdlog::sinks::sink> > >&}]’
/home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.cpp:137:64: required from here
/usr/include/c++/7/ext/new_allocator.h:136:4: error: no matching function for call to ‘spdlog::logger::logger(const char*&, std::vector<std::shared_ptr<spdlog::sinks::sink> >&)’
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/spdlog/logger.h:366:0,
from /usr/local/include/spdlog/details/registry-inl.h:12,
from /usr/local/include/spdlog/details/registry.h:114,
from /usr/local/include/spdlog/spdlog.h:13,
from /home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.h:18,
from /home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.cpp:13:
/usr/local/include/spdlog/logger-inl.h:28:15: note: candidate: spdlog::logger::logger(spdlog::logger&&)
SPDLOG_INLINE logger::logger(logger &&other) SPDLOG_NOEXCEPT : name_(std::move(other.name_)),
^~~~~~
/usr/local/include/spdlog/logger-inl.h:28:15: note: candidate expects 1 argument, 2 provided
/usr/local/include/spdlog/logger-inl.h:19:15: note: candidate: spdlog::logger::logger(const spdlog::logger&)
SPDLOG_INLINE logger::logger(const logger &other)
^~~~~~
/usr/local/include/spdlog/logger-inl.h:19:15: note: candidate expects 1 argument, 2 provided
In file included from /usr/local/include/spdlog/details/registry-inl.h:12:0,
from /usr/local/include/spdlog/details/registry.h:114,
from /usr/local/include/spdlog/spdlog.h:13,
from /home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.h:18,
from /home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.cpp:13:
/usr/local/include/spdlog/logger.h:65:5: note: candidate: spdlog::logger::logger(std::__cxx11::string, spdlog::sinks_init_list)
logger(std::string name, sinks_init_list sinks)
^~~~~~
/usr/local/include/spdlog/logger.h:65:5: note: no known conversion for argument 2 from ‘std::vector<std::shared_ptr<spdlog::sinks::sink> >’ to ‘spdlog::sinks_init_list {aka std::initializer_list<std::shared_ptr<spdlog::sinks::sink> >}’
/usr/local/include/spdlog/logger.h:60:5: note: candidate: spdlog::logger::logger(std::__cxx11::string, spdlog::sink_ptr)
logger(std::string name, sink_ptr single_sink)
^~~~~~
/usr/local/include/spdlog/logger.h:60:5: note: no known conversion for argument 2 from ‘std::vector<std::shared_ptr<spdlog::sinks::sink> >’ to ‘spdlog::sink_ptr {aka std::shared_ptr<spdlog::sinks::sink>}’
/usr/local/include/spdlog/logger.h:54:5: note: candidate: template<class It> spdlog::logger::logger(std::__cxx11::string, It, It)
logger(std::string name, It begin, It end)
^~~~~~
/usr/local/include/spdlog/logger.h:54:5: note: template argument deduction/substitution failed:
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/string:41,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/ios:42,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.cpp:11:
/usr/include/c++/7/ext/new_allocator.h:136:4: note: candidate expects 3 arguments, 2 provided
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/spdlog/details/registry-inl.h:12:0,
from /usr/local/include/spdlog/details/registry.h:114,
from /usr/local/include/spdlog/spdlog.h:13,
from /home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.h:18,
from /home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.cpp:13:
/usr/local/include/spdlog/logger.h:47:14: note: candidate: spdlog::logger::logger(std::__cxx11::string)
explicit logger(std::string name)
^~~~~~
/usr/local/include/spdlog/logger.h:47:14: note: candidate expects 1 argument, 2 provided
In file included from /home/wubin/tmp/wondertrader/src/WTSTools/WTSLogger.cpp:16:0:
/home/wubin/tmp/wondertrader/src/WTSTools/../Share/StdUtils.hpp: In static member function ‘static uint64_t StdFile::read_file_content(const char*, std::__cxx11::string&)’:
/home/wubin/tmp/wondertrader/src/WTSTools/../Share/StdUtils.hpp:68:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread((void*)content.data(), sizeof(char), length, f);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WTSTools/CMakeFiles/WTSTools.dir/build.make:158: recipe for target 'WTSTools/CMakeFiles/WTSTools.dir/WTSLogger.cpp.o' failed
make[2]: *** [WTSTools/CMakeFiles/WTSTools.dir/WTSLogger.cpp.o] Error 1
CMakeFiles/Makefile2:140: recipe for target 'WTSTools/CMakeFiles/WTSTools.dir/all' failed
make[1]: *** [WTSTools/CMakeFiles/WTSTools.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2