# Compiling Paraview 5.10.1 with gcc 13

**URL:** https://discourse.paraview.org/t/compiling-paraview-5-10-1-with-gcc-13/12228
**Category:** Development
**Tags:** vtk
**Created:** [June 4, 2023, 11:39am UTC](https://discourse.paraview.org/t/compiling-paraview-5-10-1-with-gcc-13/12228 "2023-06-04T11:39:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gskillas](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/dfb087/32.png) [@gskillas](https://discourse.paraview.org/u/gskillas)
#### Post date: [June 4, 2023, 11:39am UTC](https://discourse.paraview.org/t/compiling-paraview-5-10-1-with-gcc-13/12228/1 "2023-06-04T11:39:53Z")

</div>

Hello,

I came across the following bug in

```auto
ParaView-5.10.1/VTK/IO/Image/vtkSEPReader.h
ParaView-5.10.1/VTK/IO/PIO/PIOData.h
ParaView-5.10.1/VTK/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.h

```

`ParaView-5.10.1/VTK/IO/Image/vtkSEPReader.h:34:12: error: use of enum 'EndiannessType' without previous declaration`

in all cases adding a line of the form:  
`#include <cstdint>`  
in the above header files solved the problem. It comes about because in gcc13 the standard library does not include some headers, which therefore  
need to be included by the code usind the standard library functionality, see [Header dependency changes](https://gcc.gnu.org/gcc-13/porting_to.html)

George

---

<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: [June 5, 2023, 8:00am UTC](https://discourse.paraview.org/t/compiling-paraview-5-10-1-with-gcc-13/12228/2 "2023-06-05T08:00:55Z")

</div>

Hi @gskillas

Looks like this is needed indeed, could you open a MR to fix it ?

Best,

---

<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: [June 6, 2023, 12:07pm UTC](https://discourse.paraview.org/t/compiling-paraview-5-10-1-with-gcc-13/12228/3 "2023-06-06T12:07:28Z")

</div>

5.10 has no branch to target with such an MR. Any problems with 5.11 or `master` would be accepted at this point though. Even 5.11 will “disappear” with the 5.12 branching, but it’d be nice to have it ready for anyone wanting to backport fixes (e.g., Spack, vcpkg, etc.).
