# Paraview super build failed

**URL:** https://discourse.paraview.org/t/paraview-super-build-failed/14073
**Category:** ParaView Support
**Created:** [March 1, 2024, 10:51pm UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073 "2024-03-01T22:51:51Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![gpuligundla](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@gpuligundla](https://discourse.paraview.org/u/gpuligundla)
#### Post date: [March 1, 2024, 10:51pm UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073/1 "2024-03-01T22:51:51Z")

</div>

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/`

---

<div class="post-metadata">

### Author: ![gpuligundla](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@gpuligundla](https://discourse.paraview.org/u/gpuligundla)
#### Post date: [March 2, 2024, 12:02am UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073/2 "2024-03-02T00:02:58Z")

</div>

More info

```auto
[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.

```

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [March 2, 2024, 9:58pm UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073/3 "2024-03-02T21:58:56Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![gpuligundla](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@gpuligundla](https://discourse.paraview.org/u/gpuligundla)
#### Post date: [March 2, 2024, 10:02pm UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073/4 "2024-03-02T22:02:22Z")

</div>

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

---

<div class="post-metadata">

### Author: ![gpuligundla](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@gpuligundla](https://discourse.paraview.org/u/gpuligundla)
#### Post date: [March 2, 2024, 10:06pm UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073/5 "2024-03-02T22:06:00Z")

</div>

My actual issue is of [I'm using Ubuntu 22 and ParaView osmesa binary crashes on rendering](https://discourse.paraview.org/t/im-using-ubuntu-22-and-paraview-osmesa-binary-crashes-on-rendering/14046)

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

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 4, 2024, 8:30am UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073/6 "2024-03-04T08:30:28Z")

</div>

5.12.0 or `master` will be your best bet.

---

<div class="post-metadata">

### Author: ![gpuligundla](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@gpuligundla](https://discourse.paraview.org/u/gpuligundla)
#### Post date: [March 4, 2024, 7:11pm UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073/7 "2024-03-04T19:11:56Z")

</div>

its happening in 5.12.0too

---

<div class="post-metadata">

### Author: ![gpuligundla](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@gpuligundla](https://discourse.paraview.org/u/gpuligundla)
#### Post date: [March 6, 2024, 2:07pm UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073/8 "2024-03-06T14:07:44Z")

</div>

any update on this?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 8, 2024, 9:16am UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073/9 "2024-03-08T09:16:20Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [April 1, 2024, 8:51pm UTC](https://discourse.paraview.org/t/paraview-super-build-failed/14073/10 "2024-04-01T20:51:14Z")

</div>

It was fixed on `master` in [this MR](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/10179) but was not put onto any `release` branch as updating third party projects on just-release branches runs into [this issue](https://gitlab.kitware.com/utils/git-import-third-party/-/issues/1).
