conda-forge / manif-feedstock

A conda-smithy repository for manif.
BSD 3-Clause "New" or "Revised" License
1 stars 4 forks source link

Problem in downstream library if built with a gcc major version different from the one used to build manifpy #19

Open traversaro opened 2 years ago

traversaro commented 2 years ago

In https://github.com/ami-iit/bipedal-locomotion-framework/issues/514 a downstream library (blf) had runtime failures due to being compiled by a gcc major version different. We should handle this somehow, even if at the C++ level as far as I know gcc 9 and 10 should produce ABI compatible code.

traversaro commented 2 years ago

Related issue: https://github.com/ami-iit/bipedal-locomotion-framework/issues/386 .

traversaro commented 2 years ago

Yesterday night I checked a bit pybind11 code, and it seems the issue here is not related to ABI layout of pybind11 objects, but rather the stability of the type information used in pybind11 (see https://github.com/pybind/pybind11/blob/522c59ceb27e83750c121d5da3d8b67ac446b754/include/pybind11/pybind11.h#L1026 and the related code). At the beginning I tought it was related to the info returned by std::typeid operator, but actually I could not find any use of such operator in pybind11.