MantisBT - VTK
View Issue Details
0013372VTK(No Category)public2012-08-20 02:402015-01-09 13:50
Andreas Fetzer 
Sean McBride 
normalminorhave not tried
closedfixed 
 
5.10.1 
Kitware
incorrect functionality
0013372: VTK 5.10 Builderror on Mac OS X 10.7
Building VTK 5.10 using both GCC and CLANG delivers one build error. Here is the stack trace:

 21%] Building C object Utilities/vtkpng/CMakeFiles/vtkpng.dir/pngrutil.c.o
Scanning dependencies of target vtktiff
/Volumes/Macintosh_HD_2/projects/mitk/Bugsquashing/bin/VTK-src/GUISupport/Qt/Chart/vtkQtBarChart.cxx:428:11: error: use of undeclared identifier 'isnan'; did you mean 'std::isnan'?
    if (isnan(py))
        ^~~~~
        std::isnan
/usr/include/c++/4.2.1/cmath:550:5: note: 'std::isnan' declared here
  isnan(_Tp __f) { return ::__gnu_cxx::__capture_isnan(__f); }
  ^
[ 21%] Building C object Utilities/vtkhdf5/src/CMakeFiles/vtkhdf5.dir/H5Abtree2.c.o
[ 21%] 1 error generated.
Building C object Utilities/vtkpng/CMakeFiles/vtkpng.dir/pngvcrd.c.o
make[5]: *** [GUISupport/Qt/Chart/CMakeFiles/vtkQtChart.dir/vtkQtBarChart.cxx.o] Error 1
make[4]: *** [GUISupport/Qt/Chart/CMakeFiles/vtkQtChart.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....

Putting std:: in front of the isnan() call solves this issue and the build completes without any more errors.
No tags attached.
Issue History
2012-08-20 02:40Andreas FetzerNew Issue
2012-08-21 19:41Ho CheungNote Added: 0029046
2012-08-21 19:42Ho CheungNote Edited: 0029046bug_revision_view_page.php?bugnote_id=29046#r467
2012-08-22 17:30Sean McBrideAssigned To => Sean McBride
2012-08-22 17:30Sean McBrideStatusbacklog => tabled
2012-08-22 17:31Sean McBrideNote Added: 0029047
2012-08-24 19:36Sean McBrideNote Added: 0029065
2013-02-24 19:49David GobbiNote Added: 0030379
2013-02-24 19:49David GobbiStatustabled => closed
2013-02-24 19:49David GobbiResolutionopen => fixed
2013-02-24 19:49David GobbiFixed in Version => 5.10.1
2015-01-09 13:50Sean McBrideSource_changeset_attached => VTK master 644fe65c

Notes
(0029046)
Ho Cheung   
2012-08-21 19:41   
(edited on: 2012-08-21 19:42)
Just wanted to note this requires CMake options VTK_USE_QTCHARTS (and thus VTK_USE_QT) to surface.

(0029047)
Sean McBride   
2012-08-22 17:31   
I guess no dashboard has VTK_USE_QTCHARTS and VTK_USE_QT. :( Would you be able to provide one? I'll make a patch to fix this compile error...
(0029065)
Sean McBride   
2012-08-24 19:36   
proposed fix:

http://review.source.kitware.com/7177 [^]
(0030379)
David Gobbi   
2013-02-24 19:49   
Fixed by commit 644fe65cd in Aug, 2012.
Fixed in VTK 5.10.1 and in vtk master.