undefined reference to `std::_Sp_make_shared_tag::_S_eq(std::type_info const&)'

639 views
Skip to first unread message

Stewart Connor

unread,
Aug 10, 2020, 3:03:38 AM8/10/20
to skia-discuss
Hey guys,

Hoping someone could point me in the right direction.

We've been compiling m82 on Debian 10 (buster) up until now. I'm trying to upgrade to m84 (specifically commit 8d2ebfffaf6ece9a7e9839dca2d7907f241c3460), although I'm having trouble trying to compile it.

Error I'm getting is:

note: /usr/bin/ld: /target/debug/deps/libskia_bindings-f301da05dd579fba.rlib(libskparagraph.TextLine.o): in function `std::_Sp_counted_ptr_inplace<skia::textlayout::Run, std::allocator<skia::textlayout::Run>, (__gnu_cxx::_Lock_policy)2>::_M_get_deleter(std::type_info const&)':
          TextLine.cpp:(.text._ZNSt23_Sp_counted_ptr_inplaceIN4skia10textlayout3RunESaIS2_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info[_ZNSt23_Sp_counted_ptr_inplaceIN4skia10textlayout3RunESaIS2_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info]+0x11): undefined reference to `std::_Sp_make_shared_tag::_S_eq(std::type_info const&)'
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is being explicitly built with the SkParagraph module. Thought this was due to using a slightly out of date compiler (gcc 8.3.0). I ended up switching over to clang 7 and then clang 10, but still the same problem. I'm able to compile it no problem on mac with clang 10.

Any help would be greatly appreciated. Thanks!


Stewart Connor

unread,
Aug 24, 2020, 9:33:43 PM8/24/20
to skia-discuss
For anyone else getting something similar. We ended up upgrading libstdc++ to the latest version on the test repository for debian. It ended up compiling after that. 
Reply all
Reply to author
Forward
0 new messages