[Paraview] CMake error from VTKConfig.cmake

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Apr 16 15:43:33 EDT 2018


Wow! cc-ing Rob. Rob, see below for what's ending up in VTMConfig for
ParaView 5.5. Any suggestions?

Mark, Christoph, for now, I'd recommend turning off PARAVIEW_USE_VTKM
cmake option in your build. It should not impact the default ParaView
capabilities by a whole lot.

Utkarsh

On Mon, Apr 16, 2018 at 3:34 PM, Mark Olesen <Mark.Olesen at esi-group.com> wrote:
> May be related:
> https://gitlab.kitware.com/paraview/paraview/issues/18116
>
>
> I can build 5.5.0 on opensuse leap 42.3, but do get *really* weird junk in
> the VTKmConfig.cmake file:
>
> # The VTKm version number
> set(VTKm_VERSION_MAJOR "4")
> set(VTKm_VERSION_MINOR "8")
> set(VTKm_VERSION_PATCH "5")
> set(VTKm_VERSION_FULL "4.8.5
> -- Check for working Fortran compiler: /usr/bin/gfortran
> -- Check for working Fortran compiler: /usr/bin/gfortran  -- works
> -- Detecting Fortran compiler ABI info
> -- Detecting Fortran compiler ABI info - done
> -- Checking whether /usr/bin/gfortran supports Fortran 90
> -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /home/mol/test/build/ParaView-5.5.0/CMakeFiles/CheckFortran
> ")
> set(VTKm_VERSION "4.8")
>
>
> The version "4.8.5" look suspiciously like my gcc version.
> The rest of the information "Check for working Fortran" etc, really looks
> like misdirected output somewhere in the cmake files.
>
> /mark
>
>
>
> On 04/16/18 18:14, Utkarsh Ayachit wrote:
>>
>> Christoph,
>>
>> I am totally unfamiliar with OpenSUSE and my initial attempts to even
>> install a C++ compiler are going no where :). Mind making it easier
>> for me and just post the full error message that you're getting? Maybe
>> attaching the
>> /home/abuild/rpmbuild/BUILD/ParaView-v5.5.0/build/VTK/ThirdParty/vtkm/vtk-m/lib/cmake/paraview-5.5/vtkm/VTKmConfig.cmake
>> file will throw some light. Also is this failing when building the
>> Examples or just ther full ParaView build? I'd suggest disabling
>> examples, if that's the issue. The ParaView RPM should probably not
>> include examples any ways.
>>
>> Utkarsh
>>
>> On Sun, Apr 15, 2018 at 4:00 PM, Christoph Grüninger <foss at grueninger.de>
>> wrote:
>>>
>>> Hi Utkarsh,
>>> I used openSuse build service (OBS) which currently builds it on Leap
>>> 42.2 and Tumblewheed. If you want to give it a shot, try the package
>>> which I branched:
>>> home:mathletic:branches:science/paraview
>>>
>>> Bye
>>> Christoph
>>>
>>>
>>> Am 15.04.2018 um 16:40 schrieb Utkarsh Ayachit:
>>>>
>>>> Christoph,
>>>>
>>>> What openSuse version are you building on? I'll see if I can reproduce
>>>> using the same version Docker image, if available. Will make it easier
>>>> to track down.
>>>>
>>>> Utkarsh
>>>>
>>>> On Sun, Apr 15, 2018 at 7:08 AM, Christoph Grüninger
>>>> <foss at grueninger.de> wrote:
>>>>>
>>>>> Dear ParaView community,
>>>>> I tried to update openSuse's ParaView RPM. Unfortunately I get the
>>>>> following CMake error.
>>>>>
>>>>>> CMake Error at
>>>>>> build/VTK/ThirdParty/vtkm/vtk-m/lib/cmake/paraview-5.5/vtkm/VTKmConfig.cmake:289:
>>>>>>    Parse error.  Function missing ending ")".  Instead found
>>>>>> unterminated
>>>>>>    string with text ")
>>>>>>
>>>>>>      endif()
>>>>>>
>>>>>>    endforeach()
>>>>>>
>>>>>>
>>>>>>
>>>>>>    check_required_components(VTKm)
>>>>>>
>>>>>>    ".
>>>>>> Call Stack (most recent call first):
>>>>>>    build/VTK/VTKConfig.cmake:92 (find_package)
>>>>>>    CMake/ParaViewModuleTop.cmake:89 (include)
>>>>>>    CMakeLists.txt:676 (include)
>>>>>>
>>>>>>
>>>>>> CMake Error at build/VTK/VTKConfig.cmake:92 (find_package):
>>>>>>    find_package Error reading CMake code from
>>>>>>
>>>>>> "/home/abuild/rpmbuild/BUILD/ParaView-v5.5.0/build/VTK/ThirdParty/vtkm/vtk-m/lib/cmake/paraview-5.5/vtkm/VTKmConfig.cmake".
>>>>>> Call Stack (most recent call first):
>>>>>>    CMake/ParaViewModuleTop.cmake:89 (include)
>>>>>>    CMakeLists.txt:676 (include)
>>>>>
>>>>>
>>>>> Can someone please have a look whether it is a bug or a wrong
>>>>> configuration from openSuse? The CMake call is
>>>>>
>>>>> %cmake  -DPV_INSTALL_LIB_DIR:PATH=%{_lib}/%{name} \
>>>>>          -DVTK_INSTALL_INCLUDE_DIR:PATH=include/%{name} \
>>>>>          -DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/%{name} \
>>>>>          -DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/%{name} \
>>>>>          -DVTK_INSTALL_DATA_DIR=share/%{name} \
>>>>>          -DVTK_INSTALL_DOC_DIR=share/doc/packages/%{name} \
>>>>>          -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
>>>>>          -DCMAKE_C_COMPILER:FILEPATH=$CC \
>>>>>          -DCMAKE_SKIP_RPATH:BOOL=OFF \
>>>>>          -DPARAVIEW_BUILD_QT_GUI:BOOL=ON \
>>>>>          -DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=ON \
>>>>>          -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
>>>>>          -DVTK_WRAP_PYTHON:BOOL=ON \
>>>>>          -DVTK_WRAP_PYTHON_SIP:BOOL=ON \
>>>>>          -DVTK_OPENGL_HAS_OSMESA:BOOL=OFF \
>>>>>          -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
>>>>>          -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
>>>>>          -DVTK_USE_SYSTEM_JPEG:BOOL=ON \
>>>>>          -DVTK_USE_SYSTEM_PNG:BOOL=ON \
>>>>>          -DVTK_USE_SYSTEM_TIFF:BOOL=ON \
>>>>>          -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
>>>>>          -DVTK_USE_SYSTEM_ZOPE:BOOL=ON \
>>>>>          -DVTK_USE_SYSTEM_TWISTED:BOOL=ON \
>>>>>          -DVTK_USE_SYSTEM_GL2PS:BOOL=OFF \
>>>>>          -DBUILD_DOCUMENTATION:BOOL=ON \
>>>>>          -DBUILD_EXAMPLES:BOOL=ON \
>>>>>          -DBUILD_TESTING:BOOL=OFF
>>>>>
>>>>> Unrelated, but still irritating are dozens of CMake warnings like:
>>>>>
>>>>>> CMake Warning (dev) at
>>>>>> build/VTK/ThirdParty/vtkm/vtk-m/lib/cmake/paraview-5.5/vtkm/VTKmConfig.cmake:278:
>>>>>>    Syntax Warning in cmake code at column 25
>>>>>>
>>>>>>    Argument not separated from preceding token by whitespace.
>>>>>> Call Stack (most recent call first):
>>>>>>    build/VTK/VTKConfig.cmake:92 (find_package)
>>>>>>    CMake/ParaViewModuleTop.cmake:89 (include)
>>>>>>    CMakeLists.txt:676 (include)
>>>>>> This warning is for project developers.  Use -Wno-dev to suppress it.
>>>>>
>>>>>
>>>>> Bye
>>>>> Christoph
>>
>> _______________________________________________
>> 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://public.kitware.com/mailman/listinfo/paraview
>>
>
> --
> Dr Mark OLESEN
> Principal Engineer, ESI-OpenCFD
> ESI GmbH | Einsteinring 24 | 85609 Munich | GERMANY
> Mob. +49 171 9710 149
> www.openfoam.com | www.esi-group.com | mark.olesen at esi-group.com
>
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/paraview


More information about the ParaView mailing list