Error in ParaView 5.8.0-RC1 ParallelDIY2 Filter file vtkGenerateGlobalIds.cxx when compiled with gcc 4.8.5 on RHEL 7.7

Hello,

I have found another error in ParaView 5.8.0-RC1 in the ParallelDIY2 Filter file vtkGenerateGlobalIds.cxx when compiled with gcc 4.8.5 on RHEL 7.7.

Here is the error

[ 72%] Generating client_server wrapper sources for vtkPConnectivityFilter
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx: In instantiation of ‘impl::GenerateIds(vtkDataObject*, vtkGenerateGlobalIds*, bool) [with ElementBlockT = {anonymous}::BlockT<{anonymous}::PointTT>]::__lambda7’:
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx:158:19: required from ‘struct impl::GenerateIds(vtkDataObject*, vtkGenerateGlobalIds*, bool) [with ElementBlockT = {anonymous}::BlockT<{anonymous}::PointTT>]::__lambda7’
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx:159:59: required from ‘bool impl::GenerateIds(vtkDataObject*, vtkGenerateGlobalIds*, bool) [with ElementBlockT = {anonymous}::BlockT<{anonymous}::PointTT>]’
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx:710:67: required from here
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx:438:8: error: conversion from ‘std::nullptr_t’ to non-scalar type ‘vtkSmartPointer’ requested
struct BlockT
^
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx:438:8: error: conversion from ‘std::nullptr_t’ to non-scalar type ‘vtkSmartPointer’ requested
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx:158:71: note: synthesized method ‘{anonymous}::BlockT<{anonymous}::PointTT>::BlockT()’ first required here
comm, 1, -1, { return static_cast<void*>(new ElementBlockT); },
^
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx: In instantiation of ‘struct impl::GenerateIds(vtkDataObject*, vtkGenerateGlobalIds*, bool) [with ElementBlockT = {anonymous}::BlockT<{anonymous}::PointTT>]::__lambda8’:
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx:159:59: required from ‘bool impl::GenerateIds(vtkDataObject*, vtkGenerateGlobalIds*, bool) [with ElementBlockT = {anonymous}::BlockT<{anonymous}::PointTT>]’
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx:710:67: required from here
/home/joeh/PV/Build_5.8.0-RC1_mesa/superbuild/paraview/src/VTK/Filters/ParallelDIY2/vtkGenerateGlobalIds.cxx:159:6: error: use of ‘impl::GenerateIds(vtkDataObject*, vtkGenerateGlobalIds*, bool) [with ElementBlockT = {anonymous}::BlockT<{anonymous}::PointTT>]::__lambda8’ before deduction of ‘auto’
[](void* b) { delete static_cast<ElementBlockT*>(b); });
^
The code causing the error was added by this commit

Commit fd2d5f95

authored 2 months ago by Utkarsh Ayachit

1 Browse files

Options

vtkGenerateGlobalIds: make ids geometry independent

Thanks,

Joe Hennessey

Thanks for the report, Joe. Rob has a fix for this issue in development at https://gitlab.kitware.com/vtk/vtk/merge_requests/6393

By the way, the GitLab issue tracker is the preferred place for these kinds of bug reports.

Seems like we should add a ctor for nullptr_t to vtkSmartPointer? @robert.maynard @chuckatkins Thoughts?

Nevermind, Cory beat me to the punch :slight_smile: .

Cory,

I have just submitted three more bugs in 5.8.0-RC1 to the issue tracker as you have requested.

Error when compiling ParaView 5.8.0-RC1 with pqChooseColorPresetReaction.cxx
Error when compiling pqRenderViewSelectionReaction.cxx with ParaView 5.8.0-RC1
Error when compiling pqStandardViewFrameActionsImplementation.cxx with ParaView 5.8.0-RC1

Thanks,

Joe Hennessey

Thanks, Joe!