Undefined symbols for architecture x86_64: "_feenableexcept" on MacOS
I am trying to build the corsika master on MacOS/clang. As soon as it tries to link the
testModules, I receive the following linker error:
[100%] Linking CXX executable ../../bin/testModules Undefined symbols for architecture x86_64: "_feenableexcept", referenced from: ____C_A_T_C_H____T_E_S_T____0() in testUrQMD.cpp.o ____C_A_T_C_H____T_E_S_T____0() in testCONEX.cpp.o ____C_A_T_C_H____T_E_S_T____0() in testOnShellCheck.cpp.o ____C_A_T_C_H____T_E_S_T____0() in testParticleCut.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
The same happens when I try to link an own example to corsika. I believe this has to do with !343 (merged).
If I go to
corsika/framework/utility/CorsikaFenv.hpp and replace line 24 with
everything works fine again, so I guess the comment
Nothing to do, OS privides the functions is not true?