#1246: link time errors about builtin_isinf on bethe ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: Type: defect | Status: new Priority: major | Milestone: Component: Cactus | Version: Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by eschnett):
To my knowledge, the "correct" way to correct this is to install the Intel compiler on a system that has the necessary prerequisites, i.e. a particular version of GCC, or a particular version of Red Hat, etc.
I use work-arounds such as {{{ -D__builtin_isinf=::isinf }}} This seems harmless since the compiler will see this definition, hence will still be able to generate optimised code. Also, autoconf will see this and thus let Cactus provide a working implementation.
The implementation in Cactus puts its known-to-be-good functions into a separate namespace (either with a cctk_ prefix or into a namespace cctk) so that there should be no conflicts.