MantisBT - ParaView
View Issue Details
0010390ParaViewBugpublic2010-03-08 19:012011-01-13 17:00
Burlen 
Marcus D. Hanwell 
normalminoralways
closedfixed 
Development 
3.8 
0010390: feenableexcept and PGI 9.0.4 compiler
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
No tags attached.
Issue History
2010-03-08 19:01BurlenNew Issue
2010-03-09 16:46Marcus D. HanwellStatusbacklog => tabled
2010-03-09 16:46Marcus D. HanwellAssigned To => Marcus D. Hanwell
2010-03-10 11:03Marcus D. HanwellNote Added: 0019806
2010-03-10 11:03Marcus D. HanwellStatustabled => @80@
2010-03-10 11:03Marcus D. HanwellFixed in Version => 3.8
2010-03-10 11:03Marcus D. HanwellResolutionopen => fixed
2010-03-10 22:16Alan ScottNote Added: 0019829
2010-03-10 22:16Alan ScottStatus@80@ => closed
2011-01-13 17:00Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00Source_changeset_attached => VTK master 020ef709

Notes
(0019806)
Marcus D. Hanwell   
2010-03-10 11:03   
This should be fixed in CVS, VTK/Common/CMakeLists.txt 1.235 contains the fix. Pat Marion verified it compiled correctly on the Cray with the PGI compiler. Please reopen if this is not the case.
(0019829)
Alan Scott   
2010-03-10 22:16   
Tested by Pat. See notes above. Closed.