You are not logged in.

#1 2024-04-19 19:02:56

loqs
Member
Registered: 2014-03-06
Posts: 17,729

Linking to internal symbols ina shared library

Related upstream issue.  When a static library is built the symbols marked __attribute__((__visibility__("internal"))) are linkable by the test programs.  When the library is shared the internal symbols are not dynamic and the linker can not find them.  Making the symbols public makes them dynamic and they can be linked against but these symbols are not meant to be public so is there an alternate solution?

Offline

#2 2024-04-19 20:37:36

seth
Member
Registered: 2012-09-03
Posts: 54,185

Re: Linking to internal symbols ina shared library

https://stackoverflow.com/questions/555 … references but looking at just teh first one in https://github.com/google/XNNPACK/blob/ … hwc.cc#L24 those are actually used by the test programs.
It would seem that this isn't an intended build constellation and building the unit tests would imply static linking, does it work w/ whatever the "-DXNNPACK_LIBRARY_TYPE=default" option does (hybrid build?)?

Online

Board footer

Powered by FluxBB