[Paraview-developers] [EXTERNAL] Master build errors probably in vtkSMCoreUtilities.cxx

Scott, W Alan wascott at sandia.gov
Wed Aug 31 21:00:23 EDT 2016


And, client side builds on the LAN:

[ 35%] 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: In function ?bool<unnamed>::AdjustTRange(T*, EquivSizeIntT) [with T = float, EquivSizeIntT = int]?:
/projects/viz/paraview/src/ParaView/5.2.0-junk/ParaView5/ParaViewCore/ServerManager/Core/vtkSMCoreUtilities.cxx:216:   instantiated from here
/projects/viz/paraview/src/ParaView/5.2.0-junk/ParaView5/ParaViewCore/ServerManager/Core/vtkSMCoreUtilities.cxx:181: error: call of overloaded ?abs(int)? is ambiguous
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cmath:94: note: candidates are: double std::abs(double)
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cmath:98: note:                 float std::abs(float)
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cmath:102: note:                 long double std::abs(long double)
/projects/viz/paraview/src/ParaView/5.2.0-junk/ParaView5/ParaViewCore/ServerManager/Core/vtkSMCoreUtilities.cxx: In function ?bool<unnamed>::AdjustTRange(T*, EquivSizeIntT) [with T = double, EquivSizeIntT = long long int]?:
/projects/viz/paraview/src/ParaView/5.2.0-junk/ParaView5/ParaViewCore/ServerManager/Core/vtkSMCoreUtilities.cxx:226:   instantiated from here
/projects/viz/paraview/src/ParaView/5.2.0-junk/ParaView5/ParaViewCore/ServerManager/Core/vtkSMCoreUtilities.cxx:181: error: call of overloaded ?abs(long long int)? is ambiguous
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cmath:94: note: candidates are: double std::abs(double)
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cmath:98: note:                 float std::abs(float)
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cmath:102: note:                 long double std::abs(long double)
gmake[2]: *** [ParaViewCore/ServerManager/Core/CMakeFiles/vtkPVServerManagerCore.dir/vtkSMCoreUtilities.cxx.o] Error 1
gmake[1]: *** [ParaViewCore/ServerManager/Core/CMakeFiles/vtkPVServerManagerCore.dir/all] Error 2


Alan

From: Paraview-developers [mailto:paraview-developers-bounces at paraview.org] On Behalf Of Scott, W Alan
Sent: Wednesday, August 31, 2016 5:34 PM
To: paraview-developers at paraview.org
Subject: [EXTERNAL] [Paraview-developers] Master build errors probably in vtkSMCoreUtilities.cxx

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<mailto: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<mailto: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<mailto: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<mailto: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<mailto: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/20160901/933996b6/attachment-0001.html>


More information about the Paraview-developers mailing list