[Paraview] error when compiling Paraview 5.4 macOS 10.13

Sergio Emanuel Galembeck segalemb at usp.br
Fri Jan 12 13:15:11 EST 2018


Cory,

Sorry, I am trying to install Paraview 5.2.0. Even doing 'git submodule update —init’
the error that I noticed continues.

What do you suggest?

Thanks,

Sergio

> On 8 Jan 2018, at 12:38, Cory Quammen <cory.quammen at kitware.com> wrote:
> 
> Sergio,
> 
> This problem was fixed in November 2016, so I am surprised you are
> running into it. Current ParaView master includes VTK that contains
> the commit
> 
> commit 33631146a85dfa64433c3997f166cbaa96bedee9
> Author: gnzlbg <gonzalobg88 at gmail.com>
> Date:   Wed Nov 23 05:29:14 2016 -0500
> 
>    [bugfix] Invalid pointer comparisons.
> 
>    The code was performing a null pointer check
>    using (void*)Data <= 0 instead of Data == NULL
>    (or nullptr). This results in a compilation
>    error with clang trunk (future clang 4.0).
> 
> diff --git a/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
> b/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
> index 1e88f08..e89e153 100644
> --- a/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
> +++ b/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx
> @@ -52,7 +52,7 @@ XdmfDsmComm::Receive(XdmfDsmMsg *Msg){
>         XdmfErrorMessage("Cannot Receive Message of Length = " << Msg->Length);
>         return(XDMF_FAIL);
>     }
> -    if(Msg->Data <= 0 ){
> +    if(Msg->Data == NULL){
>         XdmfErrorMessage("Cannot Receive Message into Data Buffer = "
> << Msg->Length);
>         return(XDMF_FAIL);
>     }
> @@ -66,7 +66,7 @@ XdmfDsmComm::Send(XdmfDsmMsg *Msg){
>         XdmfErrorMessage("Cannot Send Message of Length = " << Msg->Length);
>         return(XDMF_FAIL);
>     }
> -    if(Msg->Data <= 0 ){
> +    if(Msg->Data == NULL) {
>         XdmfErrorMessage("Cannot Send Message from Data Buffer = " <<
> Msg->Length);
>         return(XDMF_FAIL);
>     }
> 
> Make sure you have run `git submodule update` to ensure your VTK is up to date.
> 
> HTH,
> Cory
> 
> On Mon, Jan 8, 2018 at 6:55 AM, Sergio Emanuel Galembeck
> <segalemb at usp.br> wrote:
>> Hello,
>> 
>> I am trying to compile Paraview 5.4 in MacOS 10.13.2 (High Sierra), using
>> software from MacPorts 2.4.2. After a successful configuration,
>> the make -j 4 command give the following error:
>> 
>> /Users/sergiogalembeck/paraview_install/ParaView/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfDsmComm.cxx:55:18:
>> error:
>>      ordered comparison between pointer and zero ('void *' and 'int')
>>    if(Msg->Data <= 0 ){
>> 
>> How can I solve this problem?
>> 
>> Best regards,
>> 
>> Sergio
>> 
>> 
>> 
>> _______________________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>> 
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>> 
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>> 
>> Follow this link to subscribe/unsubscribe:
>> https://paraview.org/mailman/listinfo/paraview
>> 
> 
> 
> 
> -- 
> Cory Quammen
> Staff R&D Engineer
> Kitware, Inc.



More information about the ParaView mailing list