7:49:25 PM PDT - Sun, Oct 3rd 2010 |
|
Compiling nwchem-6.0 on Mac OS X 10.6.4 (Intel) with Gnu compilers fails on util/macx_trapfpe.c (lines 53 & 57: _FE_DIVBYZERO, _FE_OVERFLOW, and _FE_INVALID are undeclared).
The symptoms have been noted before with nwchem-5.1.1 on the nwchem-support mailing list [1]. I applied an equally trivial fix to my build (removing the offending leading underscores in macx_trapfpe.c).
These symbols were provided by fenv.h with and without leading underscores on earlier versions of Mac OS X (e.g. 10.5.8). On Snow Leopard, only symbols without the leading underscore are defined (e.g. 10.6.4).
Unless I'm missing some non-invasive solution, this seems like a (minor) bug.
Cheers.
|