Unclear on the abseil dependency for protnbuf c++

76 views
Skip to first unread message

Sundar Swamy

unread,
Aug 9, 2024, 4:14:00 AMAug 9
to Protocol Buffers

Building protobuf c++ from source v27.3 on Windows using visual studio 2022, platform toolset v143, with std c++14
Apologies for my ignorance here in understanding the abseil dependency to protobuf .
Referring to this link, i have to install abseil to compile from source. but the git submodule already pulls in the third party/abseil and i am able to build without setting any of these configuration params as indicated here
-Dprotobuf_ABSL_PROVIDER=package
-DCMAKE_PREFIX_PATH=/tmp/absl # Path to where I installed Abseil

#13483 (comment)
i guess the commit version that refers in submodule from 2023 branch of abseil
Please advise


I am also building v27.3 on Mac OS 10.15.7 as universal binary. ran the unit tests and failing

<$?> cmake -Dprotobuf_WITH_ZLIB=OFF -CMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_CXX_STANDARD=14 -DABSL_PROPAGATE_CXX_STD=ON ..


The output says failed, not able to see any failed test per se. how do I find this?

3/3 Test #3: upb-test ......................... Passed 8.10 sec
67% tests passed, 1 tests failed out of 3
2 - full-test (Subprocess aborted)

Errors while running CTest

There are lines like this



E0000 00:00:1723170023.629549 363437 text_format.cc:417] Error parsing text-format protobuf_unittest.TestAllTypes: 1:14: Message type "protobuf_unittest.TestAllTypes" has no field named "unknown_field".

E0000 00:00:1723170023.629554 363437 text_format.cc:417]

Error parsing text-format protobuf_unittest.TestAllTypes: 1:1: Expected identifier, got: 12345678 


W0000 00:00:1723170023.629563 363437 text_format.cc:432] Warning parsing text-format protobuf_unittest.TestAllTypes: 1:14 (N = 16): Message type "protobuf_unittest.TestAllTypes" has no field named "unknown_field".

E0000 00:00:1723170023.629569 363437 text_format.cc:417] Error parsing text-format protobuf_unittest.TestAllTypes: 1:17: Invalid float number: type_string

E0000 00:00:1723170023.629577 363437 text_format.cc:417] Error parsing text-format protobuf_unittest.TestAllTypes: 1:19: Expected "}", found ">".

W0000 00:00:1723170023.629590 363437 text_format.cc:432] Warning parsing text-format protobuf_unittest.TestAllTypes: 1:19 (N = 32): Ignoring extension "test.extension1" which is not defined or is not an extension of "protobuf_unittest.TestAllTypes".

Reply all
Reply to author
Forward
0 new messages