When onnxruntime wants to register its own schema, and when it is linked to onnx.so, that leads to an attempt to register the schema twice (which fails). Please add a use flag to turn off ONNX_DISABLE_STATIC_REGISTRATION CMake option. Reproducible: Always