You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2019/04/12 06:18:17 UTC
[GitHub] [incubator-brpc] yanglimingcn commented on issue #592: lb
configurable && consistency hash lb refactor
yanglimingcn commented on issue #592: lb configurable && consistency hash lb refactor
URL: https://github.com/apache/incubator-brpc/pull/592#issuecomment-482452012
这个版本在MacOS 10.14.4 (18E226) 版本编译报错
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/libkern/OSAtomicDeprecated.h:645:9: note: 'OSAtomicCompareAndSwap64Barrier' has been explicitly marked
deprecated here
bool OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t __newValue,
^
/Users/yangliming01/brpc/src/brpc/policy/consistent_hashing_load_balancer.cpp:128:28: error: implicit instantiation of undefined template 'std::__1::array<const
brpc::policy::ReplicaPolicy *, 3>'
g_replica_policy = new std::array<const ReplicaPolicy*, CONS_HASH_LB_LAST>({
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/__tuple:223:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
^
/Users/yangliming01/brpc/src/brpc/policy/consistent_hashing_load_balancer.cpp:137:28: error: implicit instantiation of undefined template 'std::__1::array<const
brpc::policy::ReplicaPolicy *, 3>'
return g_replica_policy->at(type);
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/__tuple:223:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
^
11 warnings and 2 errors generated.
make[2]: *** [src/CMakeFiles/OBJ_LIB.dir/brpc/policy/consistent_hashing_load_balancer.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/OBJ_LIB.dir/all] Error 2
make: *** [all] Error 2
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org