# building with gcc 10.1.0

**URL:** https://discourse.vtk.org/t/building-with-gcc-10-1-0/3323
**Category:** Support
**Created:** [May 18, 2020, 8:12am UTC](https://discourse.vtk.org/t/building-with-gcc-10-1-0/3323 "2020-05-18T08:12:10Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hubutui](https://discourse.vtk.org/user_avatar/discourse.vtk.org/hubutui/32/1481_2.png) [@hubutui](https://discourse.vtk.org/u/hubutui)
#### Post date: [May 18, 2020, 8:12am UTC](https://discourse.vtk.org/t/building-with-gcc-10-1-0/3323/1 "2020-05-18T08:12:10Z")

</div>

Hey, gcc 10.1.0 is released recently. Does anyone try to build vtk with gcc 10? I got something error like this:

```nohighlight
make[2]: Entering directory '/build/vtk-git/src/build-vtk-git'
[44%] Building CXX object CMakeFiles/vtkImagingColorPython.dir/CMakeFiles/vtkImagingColorPython/vtkImageHSIToRGBPython.cxx.o
In file included from /build/vtk-git/src/vtk/Remote/PoissonReconstruction/MarchingCubes.h:37,
                 from /build/vtk-git/src/vtk/Remote/PoissonReconstruction/MarchingCubes.cpp:34:
/build/vtk-git/src/vtk/Remote/PoissonReconstruction/Geometry.h:245:3: error: ‘FILE’ does not name a type
  245 | FILE *oocPointFile, *triangleFile;
      | ^~~~
/build/vtk-git/src/vtk/Remote/PoissonReconstruction/Geometry.h:39:1: note: ‘FILE’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
   38 | #include "Hash.h"
  +++ |+#include <cstdio>
   39 | 
make[2]: Entering directory '/build/vtk-git/src/build-vtk-git'
make[2]: *** [Remote/PoissonReconstruction/CMakeFiles/PoissonReconstruction.dir/build.make:96: Remote/PoissonReconstruction/CMakeFiles/PoissonReconstruction.dir/MarchingCubes.cpp.o] Error 1
make[2]: Leaving directory '/build/vtk-git/src/build-vtk-git'
make[1]: *** [CMakeFiles/Makefile2:20415: Remote/PoissonReconstruction/CMakeFiles/PoissonReconstruction.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

```

It seems that `vtk/Remote/PoissonReconstruction/Geometry.h` did not include `cstdio`. I didn’t get this error when I use gcc 9, not sure why.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [May 18, 2020, 12:16pm UTC](https://discourse.vtk.org/t/building-with-gcc-10-1-0/3323/2 "2020-05-18T12:16:10Z")

</div>

The remote modules are not VTK code exactly. Upstream for it is at [https://github.com/lorensen/PoissonReconstruction](https://github.com/lorensen/PoissonReconstruction). Though since Bill is no longer with us, I think we may need a new home for this. @amaclean Do you have rights to that repo? If not, we’ll need someone to take up its cause.

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [May 18, 2020, 11:26pm UTC](https://discourse.vtk.org/t/building-with-gcc-10-1-0/3323/3 "2020-05-18T23:26:44Z")

</div>

I probably don’t. There has been very little activity on it since around 2011. It was forked from David Doria’s repository of the same name.

---

<div class="post-metadata">

### Author: ![hubutui](https://discourse.vtk.org/user_avatar/discourse.vtk.org/hubutui/32/1481_2.png) [@hubutui](https://discourse.vtk.org/u/hubutui)
#### Post date: [May 19, 2020, 1:30am UTC](https://discourse.vtk.org/t/building-with-gcc-10-1-0/3323/4 "2020-05-19T01:30:36Z")

</div>

Oh, it’s a remote module. I think I could disable it.

---

<div class="post-metadata">

### Author: ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)
#### Post date: [May 19, 2020, 2:24am UTC](https://discourse.vtk.org/t/building-with-gcc-10-1-0/3323/5 "2020-05-19T02:24:49Z")

</div>

Disabling it would be the best approach.

---

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [May 22, 2020, 12:02pm UTC](https://discourse.vtk.org/t/building-with-gcc-10-1-0/3323/6 "2020-05-22T12:02:13Z")

</div>

Not sure if the maintainer has disabled the module but we have it building in CI on Fedora, but have not done an official build yet.

[https://src.fedoraproject.org/rpms/vtk/pull-request/1](https://src.fedoraproject.org/rpms/vtk/pull-request/1)

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [May 22, 2020, 12:39pm UTC](https://discourse.vtk.org/t/building-with-gcc-10-1-0/3323/7 "2020-05-22T12:39:59Z")

</div>

Koji doesn’t allow network access, so I imagine that’s likely the cause there.
