View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014164VTK(No Category)public2013-07-10 11:202013-07-26 08:06
ReporterKevin Funk 
Assigned ToDavid Gobbi 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version6.0.1 
Summary0014164: Errors when compiling VTK v6.0.0 in C++11 mode
Description[ 26%] Building CXX object Common/Core/CMakeFiles/vtkCommonCore.dir/vtkAbstractArray.cxx.o
In file included from /home/krf/devel/src/VTK-master/Common/Core/vtkAbstractArray.cxx:26:0:
/home/krf/devel/src/VTK-master/Common/Core/vtkMath.h: In static member function 'static int vtkMath::IsInf(double)':
/home/krf/devel/src/VTK-master/Common/Core/vtkMath.h:1249:18: error: call of overloaded 'isinf(double&)' is ambiguous
/home/krf/devel/src/VTK-master/Common/Core/vtkMath.h:1249:18: note: candidates are:
In file included from /usr/include/math.h:70:0,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkSetGet.h:30,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkObject.h:43,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkAbstractArray.h:45,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkAbstractArray.cxx:15:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:202:12: note: int isinf(double)
In file included from /home/krf/devel/build/VTK-master/Common/Core/vtkMathConfigure.h:24:0,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkMath.h:42,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkAbstractArray.cxx:26:
/usr/include/c++/4.7/cmath:611:3: note: constexpr bool std::isinf(long double)
/usr/include/c++/4.7/cmath:607:3: note: constexpr bool std::isinf(double)
/usr/include/c++/4.7/cmath:603:3: note: constexpr bool std::isinf(float)
In file included from /home/krf/devel/src/VTK-master/Common/Core/vtkAbstractArray.cxx:26:0:
/home/krf/devel/src/VTK-master/Common/Core/vtkMath.h: In static member function 'static int vtkMath::IsNan(double)':
/home/krf/devel/src/VTK-master/Common/Core/vtkMath.h:1259:18: error: call of overloaded 'isnan(double&)' is ambiguous
/home/krf/devel/src/VTK-master/Common/Core/vtkMath.h:1259:18: note: candidates are:
In file included from /usr/include/math.h:70:0,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkSetGet.h:30,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkObject.h:43,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkAbstractArray.h:45,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkAbstractArray.cxx:15:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:235:12: note: int isnan(double)
In file included from /home/krf/devel/build/VTK-master/Common/Core/vtkMathConfigure.h:24:0,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkMath.h:42,
                 from /home/krf/devel/src/VTK-master/Common/Core/vtkAbstractArray.cxx:26:
/usr/include/c++/4.7/cmath:629:3: note: constexpr bool std::isnan(long double)
/usr/include/c++/4.7/cmath:625:3: note: constexpr bool std::isnan(double)
/usr/include/c++/4.7/cmath:621:3: note: constexpr bool std::isnan(float)
make[2]: *** [Common/Core/CMakeFiles/vtkCommonCore.dir/vtkAbstractArray.cxx.o] Error 1
make[1]: *** [Common/Core/CMakeFiles/vtkCommonCore.dir/all] Error 2
make: *** [all] Error 2
makeobj[0]: Leaving directory `/home/krf/devel/build/VTK-master'
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0031124)
Kevin Funk (reporter)
2013-07-11 03:00

Review-request at http://review.source.kitware.com/#/c/11923/2 [^]
(0031139)
David Gobbi (developer)
2013-07-13 18:19

Hi Kevin, it looks like CMake wasn't even properly detecting the std::isnan and the other cmath functions. I've put together a new gerrit patch, please try it out if you have a chance:

http://review.source.kitware.com/#/t/3001/ [^]

Also, for future reference, please say what system and compiler you are using in your bug reports. The name for the bug report should be more specific, too, e.g. "Compile error with isnan on gcc in C++11 mode".
(0031147)
Sean McBride (developer)
2013-07-19 14:03

Kevin, I'm very curious to know which environment you reproduced this in... compiler? OS? etc...
(0031231)
Dave DeMarle (administrator)
2013-07-22 20:02

moving all "tabled" bugs into "backlog" category since "tabled" is no longer used.
(0031321)
Kevin Funk (reporter)
2013-07-23 12:13

@Sean: This is a standard (K)Ubuntu 13.04 setup.

$ gcc --version
gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
(0031322)
Sean McBride (developer)
2013-07-23 12:31

Kevin, thanks. And can you confirm this is now fixed in VTK master?
(0031334)
Kevin Funk (reporter)
2013-07-26 02:37

I can confirm that building VTK in C++11-mode works now.

Revision at 5582d50565685c92c0ebc0afb68173370ed5508d.
(0031335)
David Gobbi (developer)
2013-07-26 08:06

Fixed by commit f1760ede, merged on July 22, 2013.

 Issue History
Date Modified Username Field Change
2013-07-10 11:20 Kevin Funk New Issue
2013-07-11 03:00 Kevin Funk Note Added: 0031124
2013-07-13 18:08 David Gobbi Assigned To => David Gobbi
2013-07-13 18:08 David Gobbi Status backlog => tabled
2013-07-13 18:19 David Gobbi Note Added: 0031139
2013-07-19 14:03 Sean McBride Note Added: 0031147
2013-07-22 20:02 Dave DeMarle Status tabled => backlog
2013-07-22 20:02 Dave DeMarle Note Added: 0031231
2013-07-23 12:13 Kevin Funk Note Added: 0031321
2013-07-23 12:31 Sean McBride Note Added: 0031322
2013-07-26 02:37 Kevin Funk Note Added: 0031334
2013-07-26 08:06 David Gobbi Note Added: 0031335
2013-07-26 08:06 David Gobbi Status backlog => closed
2013-07-26 08:06 David Gobbi Resolution open => fixed
2013-07-26 08:06 David Gobbi Fixed in Version => 6.0.1


Copyright © 2000 - 2018 MantisBT Team