[Paraview-developers] Master build errors probably in vtkSMCoreUtilities.cxx
Scott, W Alan
wascott at sandia.gov
Wed Aug 31 19:34:06 EDT 2016
Utkarsh,
Here are some build errors. Help? This is on a cluster build
Alan
[ 11%] Building CXX object ParaViewCore/ServerManager/Core/CMakeFiles/vtkPVServerManagerCore.dir/vtkSMCoreUtilities.cxx.o
/projects/viz/paraview/src/ParaView/5.2.0-junk/ParaView5/ParaViewCore/ServerManager/Core/vtkSMCoreUtilities.cxx(181): error: more than one instance of overloaded function "std::abs" matches the argument list:
function "std::abs(double)"
function "std::abs(float)"
function "std::abs(long double)"
argument types are: (int)
EquivSizeIntT delta = std::abs(irange[1] - irange[0]);
^
detected during instantiation of "bool <unnamed>::AdjustTRange(T *, EquivSizeIntT) [with T=float, EquivSizeIntT=int]" at line 216
/projects/viz/paraview/src/ParaView/5.2.0-junk/ParaView5/ParaViewCore/ServerManager/Core/vtkSMCoreUtilities.cxx(181): error: more than one instance of overloaded function "std::abs" matches the argument list:
function "std::abs(double)"
function "std::abs(float)"
function "std::abs(long double)"
argument types are: (long long)
EquivSizeIntT delta = std::abs(irange[1] - irange[0]);
^
detected during instantiation of "bool <unnamed>::AdjustTRange(T *, EquivSizeIntT) [with T=double, EquivSizeIntT=signed long long]" at line 226
compilation aborted for /projects/viz/paraview/src/ParaView/5.2.0-junk/ParaView5/ParaViewCore/ServerManager/Core/vtkSMCoreUtilities.cxx (code 2)
gmake[2]: *** [ParaViewCore/ServerManager/Core/CMakeFiles/vtkPVServerManagerCore.dir/vtkSMCoreUtilities.cxx.o] Error 2
Here's a git log of the file:
commit fe2cf0b0c89f79076219df7c7ea211e38ad89ae0
Author: Shawn Waldon <shawn.waldon at kitware.com>
Date: Fri Aug 26 11:57:42 2016 -0400
Update the tiny range delta to work when passing in doubles
The delta worked well for floats, but when passing in doubles we needed a
larger delta so that the difference would be noticable when the numbers
were later downcase to float for display.
commit 450a1545e2a777e83568e7a975df1212306a7133
Author: Robert Maynard <robert.maynard at kitware.com>
Date: Fri Apr 15 14:06:35 2016 -0400
Fix strict aliasing warnings in vtkSMCoreUtilities AdjustRange
commit 604cbe44c15ce547a631508a30ad744b6984c402
Author: Robert Maynard <robert.maynard at kitware.com>
Date: Wed Apr 13 17:35:35 2016 -0400
vtkSMCoreUtilities now adjusts ranges properly when min~=max.
Previously when min and max where very close to being equal but also very
small numbers they would not offset from each other sufficiently.
commit 3154b783090e58ee277d96a8d893d01ff9b796b1
Author: Brad King <brad.king at kitware.com>
Date: Thu Aug 20 13:25:43 2015 -0400
Remove use of include <vtksys/ios/sstream> and vtksys_ios::*stringstream
Use the following commands to switch to standard header and namespace:
git grep -l vtksys/ios | xargs sed -i 's|vtksys/ios/sstream|sstream|'
git grep -l vtksys_ios:: | xargs sed -i 's|vtksys_ios::|std::|g'
commit a9cb582ed5647f4b34cefc907013a14677924b5c
Author: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Date: Tue Jun 30 22:44:10 2015 -0400
Consolidate code to adjust empty range.
When resetting lut ranges, we need to avoid setting null range. This
consolidates that code in vtkSMCoreUtilities. vtkSMPVRepresentationProxy
and vtkSMTransferFunctionManager now use this new static method in
vtkSMCoreUtilities, called AdjustRange().
--------------------------------------------------------
W. Alan Scott
ParaView Support Manager
SAIC
Sandia National Laboratories, MS 0822
Org 9326 - Building 880 A1-K
(505) 284-0932 FAX (505) 284-5619
---------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160831/00b9e594/attachment.html>
More information about the Paraview-developers
mailing list