xbRex opened a new issue, #3236:
URL: https://github.com/apache/brpc/issues/3236
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::HashFragmented<absl::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::HashFragmented<absl::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
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]