https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629
--- Comment #5 from Mathieu Malaterre <mathieu.malaterre at gmail dot com> --- (In reply to Andrew Pinski from comment #4) > (In reply to Mathieu Malaterre from comment #3) > > $ export CXXFLAGS=-fvisibility=hidden > > Yes you can't just use -fvisibility=hidden without the source being ready > for it. Andrew, could you please be a bit more specific. I do not see any changes related to duplicate `typeinfo` or `visibility=hidden` in the changelog: * https://gcc.gnu.org/gcc-11/changes.html `-fvisibility=hidden` was added in 2015 in the Debian/OpenVDB package and has worked quite well for all users so far. It would be nice if gcc/ld would help track any `type_info` issue, in large portable c++ codebase. * https://salsa.debian.org/multimedia-team/openvdb/-/blob/debian/3.0.0-1/debian/rules#L14-15