Paraview super build failed

Hi, I’m using Paraview super build.But my build setup fails with below error

FAILED: VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/proj_json_streaming_writer.cpp.o

My cmake command is cmake -GNinja -DENABLE_osmesa=ON -DENABLE_mpi=ON -DENABLE_paraview=ON -DCMAKE_BUILD_TYPE=Release ../paraview-superbuild/

More info

[7555/19790] Building CXX object VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/proj_json_streaming_writer.cpp.o
FAILED: VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/proj_json_streaming_writer.cpp.o
/usr/bin/c++ -DMUTEX_pthread -DNOMINMAX -DVTK_RELATIVE_DATADIR=\"share/vtk-pv5.11/proj\" -Dlibproj_EXPORTS -I/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src -I/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/include -I/tmp/osmesa/superbuild/paraview/build/VTK/ThirdParty/libproj/vtklibproj/src -I/tmp/osmesa/superbuild/paraview/build/VTK/ThirdParty/nlohmannjson/vtknlohmannjson -I/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/nlohmannjson/vtknlohmannjson -I/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/nlohmannjson/vtknlohmannjson/include -isystem /tmp/osmesa/superbuild/paraview/build/VTK/ThirdParty/libproj -isystem /tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj -isystem /tmp/osmesa/superbuild/paraview/build/VTK/ThirdParty/nlohmannjson -isystem /tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/nlohmannjson -isystem /tmp/osmesa/superbuild/paraview/build/VTK/ThirdParty/sqlite -isystem /tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/sqlite -isystem /tmp/osmesa/install/include -fPIC    -std=c++11  -O3 -DNDEBUG -std=c++11 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/proj_json_streaming_writer.cpp.o -MF VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/proj_json_streaming_writer.cpp.o.d -o VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/proj_json_streaming_writer.cpp.o -c /tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.cpp
In file included from /tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.cpp:34:
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp:42:14: error: ‘int64_t’ in namespace ‘std’ does not name a type
   42 | typedef std::int64_t GIntBig;
      |              ^~~~~~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp:43:14: error: ‘uint64_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   43 | typedef std::uint64_t GUInt64;
      |              ^~~~~~~~
      |              wint_t
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp:93:14: error: ‘GIntBig’ has not been declared
   93 |     void Add(GIntBig nVal);
      |              ^~~~~~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp:93:10: error: ‘void vtklibproj_osgeo::proj::CPLJSonStreamingWriter::Add(int)’ cannot be overloaded with ‘void vtklibproj_osgeo::proj::CPLJSonStreamingWriter::Add(int)’
   93 |     void Add(GIntBig nVal);
      |          ^~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp:91:10: note: previous declaration ‘void vtklibproj_osgeo::proj::CPLJSonStreamingWriter::Add(int)’
   91 |     void Add(int nVal) { Add(static_cast<GIntBig>(nVal)); }
      |          ^~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp:94:14: error: ‘GUInt64’ has not been declared
   94 |     void Add(GUInt64 nVal);
      |              ^~~~~~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp:94:10: error: ‘void vtklibproj_osgeo::proj::CPLJSonStreamingWriter::Add(int)’ cannot be overloaded with ‘void vtklibproj_osgeo::proj::CPLJSonStreamingWriter::Add(int)’
   94 |     void Add(GUInt64 nVal);
      |          ^~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp:91:10: note: previous declaration ‘void vtklibproj_osgeo::proj::CPLJSonStreamingWriter::Add(int)’
   91 |     void Add(int nVal) { Add(static_cast<GIntBig>(nVal)); }
      |          ^~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp: In member function ‘void vtklibproj_osgeo::proj::CPLJSonStreamingWriter::Add(int)’:
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp:91:42: error: ‘GIntBig’ does not name a type
   91 |     void Add(int nVal) { Add(static_cast<GIntBig>(nVal)); }
      |                                          ^~~~~~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp: In member function ‘void vtklibproj_osgeo::proj::CPLJSonStreamingWriter::Add(unsigned int)’:
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.hpp:92:51: error: ‘GIntBig’ does not name a type
   92 |     void Add(unsigned int nVal) { Add(static_cast<GIntBig>(nVal)); }
      |                                                   ^~~~~~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.cpp: At global scope:
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.cpp:45:14: error: ‘uint64_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   45 | typedef std::uint64_t GUIntBig;
      |              ^~~~~~~~
      |              wint_t
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.cpp:238:6: error: variable or field ‘Add’ declared void
  238 | void CPLJSonStreamingWriter::Add(GIntBig nVal)
      |      ^~~~~~~~~~~~~~~~~~~~~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.cpp:238:34: error: ‘GIntBig’ was not declared in this scope
  238 | void CPLJSonStreamingWriter::Add(GIntBig nVal)
      |                                  ^~~~~~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.cpp:244:6: error: variable or field ‘Add’ declared void
  244 | void CPLJSonStreamingWriter::Add(GUInt64 nVal)
      |      ^~~~~~~~~~~~~~~~~~~~~~
/tmp/osmesa/superbuild/paraview/src/VTK/ThirdParty/libproj/vtklibproj/src/proj_json_streaming_writer.cpp:244:34: error: ‘GUInt64’ was not declared in this scope
  244 | void CPLJSonStreamingWriter::Add(GUInt64 nVal)
      |                                  ^~~~~~~
[7556/19790] Building CXX object VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/tsfn.cpp.o
[7557/19790] Building CXX object VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/units.cpp.o
[7558/19790] Building CXX object VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/sqlite3_utils.cpp.o
[7559/19790] Building CXX object VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/zpoly1.cpp.o
[7560/19790] Building CXX object VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/conversions/axisswap.cpp.o
[7561/19790] Building CXX object VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/filemanager.cpp.o
[7562/19790] Building CXX object VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/grids.cpp.o
[7563/19790] Building CXX object VTK/ThirdParty/libproj/vtklibproj/src/CMakeFiles/libproj.dir/networkfilemanager.cpp.o
[7564/19790] Generating proj.db
ninja: build stopped: subcommand failed.
CMake Error at /tmp/osmesa/superbuild/sb-paraview-build.cmake:47 (message):
  Failed with exit code 1


ninja: build stopped: subcommand failed.

What compiler are you using? Looks like we need to add an include to libproj. What version of ParaView and the superbuild are you using?

i’m using
gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0
g++ (Ubuntu 13.2.0-4ubuntu3) 13.2.0

for super build v5.11.2-1

Can you help me with a workaround/fix, i want to setup Paraview in my server ASAP

My actual issue is of I'm using Ubuntu 22 and ParaView osmesa binary crashes on rendering

My server is of AMD, so I cant use EGL. I’m left with superbuild.
Which is too causing issues for me.

I want to build a headless Paraview for pvserver, let me know which super build version is stable to build it and use

5.12.0 or master will be your best bet.

its happening in 5.12.0too

any update on this?

using ParaView-Superbuild master and paraview master works great here.

It was fixed on master in this MR but was not put onto any release branch as updating third party projects on just-release branches runs into this issue.