user/protobuf: (x86_64) FTBFS: map_test_util_impl.h:408: undefined reference to `protobuf_unittest::ForeignMessageLite::ByteSizeLong() const'
Found on x86_64 (specifically not ppc64):
...
/usr/src/packages/user/protobuf/src/protobuf-3.20.3/src/google/protobuf/arena.h:486: undefined reference to `protobuf_unittest::ForeignMessageLite::ForeignMessageLite(google::protobuf::Arena*, bool)'
/usr/lib/gcc/x86_64-foxkit-linux-musl/8.5.0/../../../../x86_64-foxkit-linux-musl/bin/ld: CMakeFiles/lite-test.dir/src/google/protobuf/map_lite_test_util.cc.o: in function `void google::protobuf::MapTestUtilImpl::ExpectMapFieldsSetInitialized<protobuf_unittest::MapEnumLit>
/usr/src/packages/user/protobuf/src/protobuf-3.20.3/src/google/protobuf/map_test_util_impl.h:408: undefined reference to `protobuf_unittest::ForeignMessageLite::ByteSizeLong() const'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/lite-test.dir/build.make:232: lite-test] Error 1
make[1]: *** [CMakeFiles/Makefile2:320: CMakeFiles/lite-test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /usr/src/packages/user/protobuf/src/protobuf-3.20.3/src/google/protobuf/descriptor_unittest.cc:8353:
/usr/src/packages/user/protobuf/src/protobuf-3.20.3/src/google/protobuf/port_undef.inc: In function ‘void __static_initialization_and_destruction_0(int, int)’:
/usr/src/packages/user/protobuf/src/protobuf-3.20.3/src/google/protobuf/port_undef.inc:146:27: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
#pragma GCC diagnostic pop
^
[100%] Linking CXX executable tests
[100%] Built target tests
make: *** [Makefile:146: all] Error 2
>>> ERROR: protobuf: build failed