Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error build libignition-fuel_tools4.so #100

Open
bionut15 opened this issue Mar 31, 2024 · 1 comment
Open

Error build libignition-fuel_tools4.so #100

bionut15 opened this issue Mar 31, 2024 · 1 comment

Comments

@bionut15
Copy link

Error while trying to build gazebo-11.14.0-2 from yay

I tried a clean build and reinstalling the libignition library

/usr/bin/ld: /usr/lib/libignition-fuel_tools4.so.4.9.0: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >* absl::lts_20230802::log_internal::MakeCheckOpString<long, long>(long, long, char const*)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::LogMessageFatal::LogMessageFatal(char const*, int)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::hash_internal::MixingHashState::kSeed'
/usr/bin/ld: /usr/lib/libignition-fuel_tools4.so.4.9.0: undefined reference to `absl::lts_20230802::log_internal::LogMessageFatal::LogMessageFatal(char const*, int, std::basic_string_view<char, std::char_traits<char> >)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::LogMessage::OstreamView::~OstreamView()'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::LogMessage::OstreamView::OstreamView(absl::lts_20230802::log_internal::LogMessage::LogMessageData&)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::hash_internal::MixingHashState::CombineLargeContiguousImpl64(unsigned long, unsigned char const*, unsigned long)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `void absl::lts_20230802::log_internal::LogMessage::CopyToEncodedBuffer<(absl::lts_20230802::log_internal::LogMessage::StringType)0>(std::basic_string_view<char, std::char_traits<char> >)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::LogMessage::OstreamView::stream()'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const* (*)(), absl::lts_20230802::once_flag*, google::protobuf::Metadata const&)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `google::protobuf::internal::UntypedMapBase::FindFromTree(unsigned int, google::protobuf::internal::VariantKey, absl::lts_20230802::container_internal::btree_iterator<absl::lts_20230802::container_internal::btree_node<absl::lts_20230802::container_internal::map_params<google::protobuf::internal::VariantKey, google::protobuf::internal::NodeBase*, std::less<google::protobuf::internal::VariantKey>, google::protobuf::internal::MapAllocator<std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*> >, 256, false> >, std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*>&, std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*>*>*) const'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::hash_internal::MixingHashState::LowLevelHashImpl(unsigned char const*, unsigned long)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `google::protobuf::internal::UntypedMapBase::TransferTree(absl::lts_20230802::btree_map<google::protobuf::internal::VariantKey, google::protobuf::internal::NodeBase*, std::less<google::protobuf::internal::VariantKey>, google::protobuf::internal::MapAllocator<std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*> > >*, google::protobuf::internal::VariantKey (*)(google::protobuf::internal::NodeBase*))'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::kCharNull'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `google::protobuf::internal::UntypedMapBase::EraseFromTree(unsigned int, absl::lts_20230802::container_internal::btree_iterator<absl::lts_20230802::container_internal::btree_node<absl::lts_20230802::container_internal::map_params<google::protobuf::internal::VariantKey, google::protobuf::internal::NodeBase*, std::less<google::protobuf::internal::VariantKey>, google::protobuf::internal::MapAllocator<std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*> >, 256, false> >, std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*>&, std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*>*>)'
/usr/bin/ld: /usr/lib/libignition-fuel_tools4.so.4.9.0: undefined reference to `absl::lts_20230802::log_internal::LogMessageFatal::~LogMessageFatal()'
collect2: error: ld returned 1 exit status
make[2]: *** [gazebo/CMakeFiles/gzserver.dir/build.make:201: gazebo/gzserver-11.14.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:2419: gazebo/CMakeFiles/gzserver.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: gazebo-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
gazebo - exit status 4

@IsaacMak2009
Copy link

I am getting same problem while linking gzserver

[ 50%] Linking CXX shared library libgazebo.so
[ 50%] Built target libgazebo
[ 50%] Building CXX object gazebo/CMakeFiles/gzserver.dir/server_main.cc.o
[ 50%] Linking CXX executable gzserver
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::LogMessage::OstreamView::~OstreamView()'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::LogMessage::OstreamView::OstreamView(absl::lts_20230802::log_internal::LogMessage::LogMessageData&)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::hash_internal::MixingHashState::CombineLargeContiguousImpl64(unsigned long, unsigned char const*, unsigned long)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::LogMessage::OstreamView::stream()'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const* (*)(), absl::lts_20230802::once_flag*, google::protobuf::Metadata const&)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::hash_internal::MixingHashState::LowLevelHashImpl(unsigned char const*, unsigned long)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `google::protobuf::internal::UntypedMapBase::TransferTree(absl::lts_20230802::btree_map<google::protobuf::internal::VariantKey, google::protobuf::internal::NodeBase*, std::less<google::protobuf::internal::VariantKey>, google::protobuf::internal::MapAllocator<std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*> > >*, google::protobuf::internal::VariantKey (*)(google::protobuf::internal::NodeBase*))'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::kCharNull'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::LogMessageFatal::LogMessageFatal(char const*, int)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `void absl::lts_20230802::log_internal::LogMessage::CopyToEncodedBuffer<(absl::lts_20230802::log_internal::LogMessage::StringType)0>(std::basic_string_view<char, std::char_traits<char> >)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `google::protobuf::internal::UntypedMapBase::FindFromTree(unsigned int, google::protobuf::internal::VariantKey, absl::lts_20230802::container_internal::btree_iterator<absl::lts_20230802::container_internal::btree_node<absl::lts_20230802::container_internal::map_params<google::protobuf::internal::VariantKey, google::protobuf::internal::NodeBase*, std::less<google::protobuf::internal::VariantKey>, google::protobuf::internal::MapAllocator<std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*> >, 256, false> >, std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*>&, std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*>*>*) const'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `google::protobuf::internal::UntypedMapBase::EraseFromTree(unsigned int, absl::lts_20230802::container_internal::btree_iterator<absl::lts_20230802::container_internal::btree_node<absl::lts_20230802::container_internal::map_params<google::protobuf::internal::VariantKey, google::protobuf::internal::NodeBase*, std::less<google::protobuf::internal::VariantKey>, google::protobuf::internal::MapAllocator<std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*> >, 256, false> >, std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*>&, std::pair<google::protobuf::internal::VariantKey const, google::protobuf::internal::NodeBase*>*>)'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::log_internal::LogMessageFatal::~LogMessageFatal()'
/usr/bin/ld: /usr/lib/libignition-msgs5.so.5.11.0: undefined reference to `absl::lts_20230802::hash_internal::MixingHashState::kSeed'
collect2: error: ld returned 1 exit status
make[2]: *** [gazebo/CMakeFiles/gzserver.dir/build.make:202: gazebo/gzserver-11.14.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:2836: gazebo/CMakeFiles/gzserver.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: gazebo-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
gazebo - exit status 4
[ble: elapsed 42m59s (CPU 114.1%)] yay -S gazebo

and here is my protobuf version:

local/protobuf 25.3-4
    Protocol Buffers - Google's data interchange format
local/protobuf-c 1.5.0-2
    Protocol Buffers implementation in C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants