@m2-farzan thank you for the quick reply, it does fix the warning, but it sadly doesn't fix the error of some vtables not being found by the linker:
/usr/bin/ld: /tmp/ccx0RadK.ltrans12.ltrans.o: in function `foonathan::memory::out_of_memory::~out_of_memory() [clone .lto_priv.0]':
/opt/ros/humble/include/foonathan_memory/foonathan/memory/error.hpp:65:(.text+0x427): undefined reference to `vtable for foonathan::memory::out_of_memory'
/usr/bin/ld: /tmp/ccx0RadK.ltrans12.ltrans.o: in function `foonathan::memory::bad_alignment::~bad_alignment() [clone .lto_priv.0]':
/opt/ros/humble/include/foonathan_memory/foonathan/memory/error.hpp:147:(.text+0x447): undefined reference to `vtable for foonathan::memory::bad_allocation_size'
/usr/bin/ld: /tmp/ccx0RadK.ltrans12.ltrans.o: in function `foonathan::memory::bad_node_size::~bad_node_size() [clone .lto_priv.0]':
/opt/ros/humble/include/foonathan_memory/foonathan/memory/error.hpp:147:(.text+0x467): undefined reference to `vtable for foonathan::memory::bad_allocation_size'
/usr/bin/ld: /tmp/ccx0RadK.ltrans12.ltrans.o: in function `std::_Rb_tree<eprosima::fastrtps::rtps::SequenceNumber_t, eprosima::fastrtps::rtps::SequenceNumber_t, std::_Identity<eprosima::fastrtps::rtps::SequenceNumber_t>, std::less<eprosima::fastrtps::rtps::SequenceNumber_t>, foonathan::memory::std_allocator<eprosima::fastrtps::rtps::SequenceNumber_t, foonathan::memory::memory_pool<foonathan::memory::node_pool, foonathan::memory::detail::lowlevel_allocator<foonathan::memory::detail::heap_allocator_impl> > > >::_M_erase(std::_Rb_tree_node<eprosima::fastrtps::rtps::SequenceNumber_t>*)':
/opt/ros/humble/include/foonathan_memory/foonathan/memory/memory_pool.hpp:161:(.text+0x5ad): undefined reference to `foonathan::memory::detail::free_memory_list::deallocate(void*)'
/usr/bin/ld: /opt/ros/humble/include/foonathan_memory/foonathan/memory/memory_pool.hpp:161:(.text+0x5c7): undefined reference to `foonathan::memory::detail::free_memory_list::deallocate(void*)'
/usr/bin/ld: /opt/ros/humble/include/foonathan_memory/foonathan/memory/memory_pool.hpp:161:(.text+0x5e8): undefined reference to `foonathan::memory::detail::free_memory_list::deallocate(void*)'
/usr/bin/ld: /opt/ros/humble/include/foonathan_memory/foonathan/memory/memory_pool.hpp:161:(.text+0x610): undefined reference to `foonathan::memory::detail::free_memory_list::deallocate(void*)'
/usr/bin/ld: /opt/ros/humble/include/foonathan_memory/foonathan/memory/memory_pool.hpp:161:(.text+0x632): undefined reference to `foonathan::memory::detail::free_memory_list::deallocate(void*)'
/usr/bin/ld: /tmp/ccx0RadK.ltrans12.ltrans.o:/opt/ros/humble/include/foonathan_memory/foonathan/memory/memory_pool.hpp:161: more undefined references to `foonathan::memory::detail::free_memory_list::deallocate(void*)' follow
/usr/bin/ld: /tmp/ccx0RadK.ltrans12.ltrans.o: in function `eprosima::fastrtps::rtps::WriterProxy::received_change_set(eprosima::fastrtps::rtps::SequenceNumber_t const&, bool)':
/opt/ros/humble/include/foonathan_memory/foonathan/memory/allocator_storage.hpp:179:(.text+0x1d34): undefined reference to `foonathan::memory::allocator_traits<foonathan::memory::memory_pool<foonathan::memory::node_pool, foonathan::memory::detail::lowlevel_allocator<foonathan::memory::detail::heap_allocator_impl> > >::allocate_node(foonathan::memory::memory_pool<foonathan::memory::node_pool, foonathan::memory::detail::lowlevel_allocator<foonathan::memory::detail::heap_allocator_impl> >&, unsigned long, unsigned long)'
/usr/bin/ld: /tmp/ccx0RadK.ltrans12.ltrans.o: in function `eprosima::fastrtps::rtps::WriterProxy::received_change_set(eprosima::fastrtps::rtps::SequenceNumber_t const&, bool)':
/opt/ros/humble/include/foonathan_memory/foonathan/memory/memory_pool.hpp:357:(.text+0x1ea0): undefined reference to `foonathan::memory::detail::free_memory_list::alignment() const'
/usr/bin/ld: /opt/ros/humble/include/foonathan_memory/foonathan/memory/memory_pool.hpp:121:(.text+0x1eca): undefined reference to `foonathan::memory::detail::free_memory_list::allocate()'
/usr/bin/ld: /tmp/ccx0RadK.ltrans12.ltrans.o: in function `eprosima::fastrtps::rtps::WriterProxy::received_change_set(eprosima::fastrtps::rtps::SequenceNumber_t const&, bool)':
/opt/ros/humble/include/foonathan_memory/foonathan/memory/heap_allocator.hpp:54:(.text+0x1f8c): undefined reference to `foonathan::memory::heap_alloc(unsigned long)'
...
Full error is on the github PR
Pinned Comments
m2-farzan commented on 2022-06-28 06:37 (UTC)
For feedback or contribution, either comment here or head to this GitHub page: https://github.com/m2-farzan/ros2-humble-PKGBUILD