nmeum / android-tools

Unoffical CMake-based build system for android command line utilities
Apache License 2.0
176 stars 51 forks source link

'opensuse/leap:latest' build fails #143

Closed anatol closed 2 months ago

anatol commented 4 months ago

See https://github.com/nmeum/android-tools/actions/runs/8581817413/job/23638075629

It looks protobuf related:

dynamic_partitions_device_info.pb.cc:(.text+0x1316): undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const* (*)(), absl::lts_20240116::once_flag*, google::protobuf::Metadata const&)'
/usr/bin/ld: vendor/libliblpdump.a(dynamic_partitions_device_info.pb.cc.o): in function `android::DynamicPartitionsDeviceInfoProto::GetMetadata() const':
dynamic_partitions_device_info.pb.cc:(.text+0x1ab6): undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const* (*)(), absl::lts_20240116::once_flag*, google::protobuf::Metadata const&)'
/usr/bin/ld: vendor/liblibjsonpbparse.a(jsonpb.cpp.o): in function `android::jsonpb::MessageToJsonString[abi:cxx11](google::protobuf::Message const&)':
jsonpb.cpp:(.text+0x209): undefined reference to `google::protobuf::util::NewTypeResolverForDescriptorPool(absl::lts_20240116::string_view, google::protobuf::DescriptorPool const*)'
/usr/bin/ld: vendor/liblibjsonpbparse.a(jsonpb.cpp.o): in function `android::jsonpb::internal::JsonStringToMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::Message*)':
jsonpb.cpp:(.text+0x5cc): undefined reference to `google::protobuf::util::NewTypeResolverForDescriptorPool(absl::lts_20240116::string_view, google::protobuf::DescriptorPool const*)'
/usr/bin/ld: jsonpb.cpp:(.text+0x62e): undefined reference to `google::protobuf::json::JsonToBinaryString(google::protobuf::util::TypeResolver*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, absl::lts_20240116::string_view, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, google::protobuf::json::ParseOptions const&)'
/usr/bin/ld: jsonpb.cpp:(.text+0x65f): undefined reference to `google::protobuf::MessageLite::ParseFromString(absl::lts_20240116::string_view)'
clang-15.0: error: linker command failed with exit code 1 (use -v to see invocation)
Biswa96 commented 4 months ago

Was protobuf package in opensuse rebuilt after abseil-cpp update? I am not familiar with opensuse.

munix9 commented 4 months ago

It looks like opensuse/leap:latest has already been upgraded from 15.5 to 15.6.

I'll take a look at it.

munix9 commented 2 months ago

The current status: Leap 15.5 build is still broken, unfortunately there is no feedback. Leap 15.6 build works according to my tests and is now officially released. This means that opensuse/leap:latest will soon be changed to Leap 15.6 and the tests should then run successfully again.

Biswa96 commented 2 months ago

This means that opensuse/leap:latest will soon be changed to Leap 15.6 and the tests should then run successfully again.

I have re-run last two failed builds in CI and they went fine.

https://github.com/nmeum/android-tools/actions/runs/9429938019/job/26296914271 https://github.com/nmeum/android-tools/actions/runs/9208199841/job/26297031761