onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

__cxa_call_terminate in gcc14

Open luengnat opened this issue 7 months ago • 4 comments

It looks like __cxa_call_terminate is implemented automatically when compiling against GCC 14. This caused an ABI program when linking against another program compiled with GCC 12. Is it possible to fix that? If not, providing a binary with older GCC would be nice.

luengnat avatar Apr 15 '26 15:04 luengnat

Can you clarify the issue? We typically release ORT as a shared library and there's an ABI C API so any exception handling is purely internal to the library as every entry point in that API should have a try/catch with conversion to OrtStatus to prevent exceptions leaking out.

skottmckay avatar Apr 16 '26 00:04 skottmckay

I used ort via fastembed project in a rust project. For some reasons, it seems to download onnxruntime at runtime and it fails to run together with my code that is compiled with gcc-12. I can't remember the exact detail. Let me try to replicate that again.

luengnat avatar Apr 17 '26 04:04 luengnat

Any update to this one?

luengnat avatar May 18 '26 03:05 luengnat

Applying stale label due to no activity in 30 days. Please react to the issue by assigning it or labeling it as 'contributions welcome', 'documentation', 'feature request', 'regression', or 'no stale'.