You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to compile IVAN on musl libc (Linux) and it didn't work since execinfo is glibc-specific (not POSIX). For people that don't need to do debugging, it would be nice if the backtrace could be turned off as a cmake option.
The same way we use the -DWIZARD seen at INSTALL info, we could have -DBACKTRACE (I think -DDEBUG may conflict with something more generic but I may be wrong).
Then, instead of ex. #ifndef WIN32 wherever backtrace() is called, we could instead #ifdef BACKTRACE.
Do you think you could propose (code/test) such a patch (PR)?
Basically condition everywhere that is coded #include <execinfo.h> to such define too, then catch everywhere it is required :)
It would also be good to be sure about other possible specific requirements by musl libc, I mean, not only about backtrace() would such PR be.
I tried to compile IVAN on musl libc (Linux) and it didn't work since execinfo is glibc-specific (not POSIX). For people that don't need to do debugging, it would be nice if the backtrace could be turned off as a cmake option.
Alternatively, maybe something like libunwind can supplement/replace execinfo. https://www.nongnu.org/libunwind/
The text was updated successfully, but these errors were encountered: