feenableexcept and PGI 9.0.4 compiler
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Compiling PV with pgi 9.0.4 on Cray Xt5 the build dies as follows.
"/nics/c/home/bloring/ParaView/ParaView3/VTK/Common/vtkFloatingPointExceptions.cxx", line 54: error: identifier "feenableexcept" is undefined feenableexcept(FE_DIVBYZERO | FE_INVALID); ^
"/nics/c/home/bloring/ParaView/ParaView3/VTK/Common/vtkFloatingPointExceptions.cxx", line 74: error: identifier "fedisableexcept" is undefined fedisableexcept(FE_DIVBYZERO | FE_INVALID); ^
2 errors detected in the compilation of "/nics/c/home/bloring/ParaView/ParaView3/VTK/Common/vtkFloatingPointExceptions.cxx". make[2]: *** [VTK/Common/CMakeFiles/vtkCommon.dir/vtkFloatingPointExceptions.cxx.o] Error 2
"fenv.h" says:
117 118 #ifdef __USE_GNU 119 120 /* Enable individual exceptions. Will not enable more exceptions than 121 EXCEPTS specifies. Returns the previous enabled exceptions if all 122 exceptions are successfully set, otherwise returns -1. / 123 extern int feenableexcept (int __excepts) __THROW; 124 125 / Disable individual exceptions. Will not disable more exceptions than 126 EXCEPTS specifies. Returns the previous enabled exceptions if all 127 exceptions are successfully disabled, otherwise returns -1. / 128 extern int fedisableexcept (int __excepts) __THROW; 129 130 / Return enabled exceptions. */ 131 extern int fegetexcept (void) __THROW; 132 #endif 133