-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
arm环境,v1.16版本ut测试编译不适配gtest 1.14
gtest、gmock切换到1.8.1版本后,可正常编译
环境:
brpc v1.16.0
gtest 1.14.0
gmock 1.14.0
protobuf 25.1
步骤:
sh config_brpc.sh --with-rdma --headers="/usr/include" --libs="/usr/lib64 /usr/bin"
make -j
cd test
make -j
编译结果如下:
/usr/include/absl/container/internal/hash_function_defaults.h:81:36: required from here
/usr/include/absl/strings/cord.h:1020:18: error: cannot convert ‘absl::lts_20230802::Cord::HashFragmentedabsl::lts_20230802::hash_internal::MixingHashState(absl::lts_20230802::hash_internal::MixingHashState) const::<lambda(int)>’ to ‘int’
1020 | ForEachChunk([&combiner, &hash_state](absl::string_view chunk) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| absl::lts_20230802::Cord::HashFragmentedabsl::lts_20230802::hash_internal::MixingHashState(absl::lts_20230802::hash_internal::MixingHashState) const::<lambda(int)>
1021 | hash_state = combiner.add_buffer(std::move(hash_state), chunk.data(),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1022 | chunk.size());
| ~~~~~~~~~~~~~~
1023 | });
| ~
/usr/include/absl/strings/cord.h:1591:48: note: initializing argument 1 of ‘void absl::lts_20230802::Cord::ForEachChunk(int) const’
1591 | absl::FunctionRef<void(absl::string_view)> callback) const {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
make: *** [Makefile:259: brpc_load_balancer_unittest.o] Error 1
make: *** [Makefile:259: brpc_builtin_service_unittest.o] Error 1