Support for different libc implementations on Linux?

Some time ago, we received a report[1], that opencascade won't build against the `musl` libc implementation on Gentoo Linux. Because occt already supports various platforms with their respective libc implementations, I was wondering, if there will be support for lesser used libc implementations on linux as well?

[1] https://bugs.gentoo.org/832742

Kirill Gavrilov's picture
/var/tmp/portage/sci-libs/opencascade-7.6.0-r2/work/occt-V7_6_0/src/Standard/Standard_StackTrace.cxx:33:12: fatal error: execinfo.h: No such file or directory

I guess the most straight-forward way would be adding missing `execinfo.h` header to musl library, which is though not yet completely portable, but already available across most platforms.

Joachim Mairböck's picture

In the Haiku port that I am currently doing, I am using libexecinfo as a replacement.

For linking it, I used the CSF_psapi variable, which is "close enough", but maybe a new CSF variable should be introduced for this. There are commented out includes for other platforms in Standard_StackTrace.cxx ...