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

Scott, W Alan wascott at sandia.gov
Tue Sep 6 15:40:54 EDT 2016


Shawn,
That appears to have fixed my issue.  Building as we speak (type), will let you guys know if I have problems.

Alan

From: Shawn Waldon [mailto:shawn.waldon at kitware.com]
Sent: Thursday, September 01, 2016 7:35 AM
To: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Cc: Scott, W Alan <wascott at sandia.gov>; paraview-developers at paraview.org
Subject: Re: [Paraview-developers] [EXTERNAL] Master build errors probably in vtkSMCoreUtilities.cxx

Hi Alan,
Can you try adding '#include <cstdlib>' to that file?  Also, what compiler/compiler version is this?  We should try to make sure we have a dashboard testing it.
Shawn

On Wed, Aug 31, 2016 at 11:30 PM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com<mailto:utkarsh.ayachit at kitware.com>> wrote:
Wow! You're fast! This was merged in just earlier today!

Shawn, can you take a look please? Thanks.

Utkarsh

On Wed, Aug 31, 2016 at 9:00 PM, Scott, W Alan <wascott at sandia.gov<mailto:wascott at sandia.gov>> wrote:
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<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<mailto: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<tel:%28505%29%20284-0932>   FAX (505) 284-5619<tel:%28505%29%20284-5619>
---------------------------------------------------------


_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=Paraview-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview-developers


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20160906/4ea60157/attachment-0001.html>


More information about the Paraview-developers mailing list