Sanitizer in debug mode is on leading to error with linked libraries
The compiled OPALX in debug mode,
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=20 -DIPPL_ENABLE_FFT=ON -DIPPL_ENABLE_SOLVERS=ON -DIPPL_ENABLE_ALPINE=OFF -DIPPL_ENABLE_TESTS=OFF -DIPPL_PLATFORMS=openmp
somehow has the sanitizer turned on. I'm not sure how it happens given it is off by default in IPPL's cmake and opalx's cmake does not enable it explicitly.
Then, sanitizer finds an issue with the linked library when running the executable
$ ./opalx
Warning: REAL(sigaction_symname) == nullptr. This may happen if you link with ubsan statically. Sigaction will not work.
AddressSanitizer: CHECK failed: sanitizer_posix_libcdep.cpp:204 "((0)) == ((internal_sigaction(signum, &sigact, nullptr)))" (0x0, 0xffffffffffffffff) (tid=7702)
<empty stack>
The compiled OPALX in Release mode does not have this problem.
Edited by sadr_m