# VTK 9.2.2 build aborts

**URL:** https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025
**Category:** Support
**Created:** [November 30, 2022, 8:38pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025 "2022-11-30T20:38:00Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [November 30, 2022, 8:38pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/1 "2022-11-30T20:38:00Z")

</div>

I’m trying to build 9.2.2 with GCC 4.8.5 where I’m taking all of the defaults except that I select a RELASE build and I set VTK\_GUISupportQtQuick to NO. All selections are made with ccmake.

This is what I see:

In file included from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsAPI.h:26:0,  
from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsAPI.cxx:16:  
/home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsImpl.h: In constructor \u2018constexpr vtk::detail::smp::vtkSMPToolsImpl\<(vtk::detail::smp::BackendType)0\>::vtkSMPToolsImpl()\u2019:  
/home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsImpl.h:58:28: error: use of deleted function \u2018std::atomic::atomic(const std::atomic&)\u2019  
class VTKCOMMONCORE\_EXPORT vtkSMPToolsImpl  
^  
In file included from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/vtkObjectBase.h:57:0,  
from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/vtkObject.h:45,  
from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsAPI.h:21,  
from /home/user1/Downloads/Vtk/VTK-9.2.2/Common/Core/SMP/Common/vtkSMPToolsAPI.cxx:16:  
/usr/include/c++/4.8.2/atomic:487:7: error: declared here  
atomic(const atomic&) = delete;  
^

Any ideas what caused this?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [December 1, 2022, 3:10am UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/2 "2022-12-01T03:10:22Z")

</div>

> [@BlueKnight7](#):
>
> /usr/include/c++/4.8.2/

I wonder why it is finding it in this 4.8.2 directory.

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [December 2, 2022, 12:17pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/3 "2022-12-02T12:17:31Z")

</div>

Because /usr/include/c++/4.8.5 points (links) to it.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [December 2, 2022, 2:58pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/4 "2022-12-02T14:58:13Z")

</div>

Understood. We’re taking a look at the gcc 4.8.5 build failure.

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [December 3, 2022, 7:44pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/5 "2022-12-03T19:44:24Z")

</div>

Okay. Will be happy to try again if there is a solution.

---

<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: [December 7, 2022, 12:28am UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/6 "2022-12-07T00:28:13Z")

</div>

There were two MRs recently to fix 4.8.5 compilation:

- [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/9728](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9728)
- [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/9730](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9730)

I’ll look at getting them into 9.2.3.

Cc: @spyridon97

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [January 28, 2023, 2:45pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/7 "2023-01-28T14:45:07Z")

</div>

Has this been fixed in version 9.2.5?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [January 30, 2023, 7:01am UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/8 "2023-01-30T07:01:50Z")

</div>

I think so yes.

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [February 11, 2023, 9:24pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/9 "2023-02-11T21:24:37Z")

</div>

I tried building version 9.2.5 in release mode with gcc 4.8.5 and once again ran into problems. The following is just a small sample of the messages that appear:

```auto

[96%] Building CXX object IO/Cesium3DTiles/CMakeFiles/IOCesium3DTiles.dir/TreeInformation.cxx.o
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx: In member function ‘void TreeInformation::Compute()’:
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:406:50: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
   if (this->InputType == vtkCesium3DTilesWriter::Mesh)
.
.
.
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:593:49: note: no known conversion for argument 2 from ‘const RegionCellId’ to ‘RegionCellId&’
In file included from /usr/include/c++/4.8.2/algorithm:62:0,
                 from /home/Downloads/Vtk/VTK-9.2.5/ThirdParty/nlohmannjson/vtknlohmannjson/include/vtknlohmann/json.hpp:37,
                 from /home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.h:29,
                 from /home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:15:
/usr/include/c++/4.8.2/bits/stl_algo.h:2266:34: error: no match for call to ‘(TreeInformation::ComputeTileMeshTexture(vtkPolyData*, vtkImageData*)::__lambda20) (const RegionCellId&, RegionCellId&)’
    while (__comp(__pivot, *__last))
                                  ^
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:593:6: note: candidates are:
     [](RegionCellId& first, RegionCellId& second) {
      ^
In file included from /usr/include/c++/4.8.2/algorithm:62:0,
                 from /home/Downloads/Vtk/VTK-9.2.5/ThirdParty/nlohmannjson/vtknlohmannjson/include/vtknlohmann/json.hpp:37,
                 from /home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.h:29,
                 from /home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:15:
/usr/include/c++/4.8.2/bits/stl_algo.h:2266:34: note: bool (*)(RegionCellId&, RegionCellId&) <conversion>
    while (__comp(__pivot, *__last))
                                  ^
/usr/include/c++/4.8.2/bits/stl_algo.h:2266:34: note: candidate expects 3 arguments, 3 provided
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:593:49: note: TreeInformation::ComputeTileMeshTexture(vtkPolyData*, vtkImageData*)::__lambda20
     [](RegionCellId& first, RegionCellId& second) {
                                                 ^
/home/Downloads/Vtk/VTK-9.2.5/IO/Cesium3DTiles/TreeInformation.cxx:593:49: note: no known conversion for argument 1 from ‘const RegionCellId’ to ‘RegionCellId&’
gmake[2]: *** [IO/Cesium3DTiles/CMakeFiles/IOCesium3DTiles.dir/TreeInformation.cxx.o] Error 1
gmake[1]: *** [IO/Cesium3DTiles/CMakeFiles/IOCesium3DTiles.dir/all] Error 2
gmake: *** [all] Error 2

```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [February 13, 2023, 9:23am UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/10 "2023-02-13T09:23:37Z")

</div>

Please try release branch

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [February 13, 2023, 3:03pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/11 "2023-02-13T15:03:47Z")

</div>

And where would that be? I do to [vtk.org](http://vtk.org), click on downloads, and download what is there. I don’t see anything else except for past releases.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [February 13, 2023, 3:05pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/12 "2023-02-13T15:05:49Z")

</div>

Use git to clone [https://gitlab.kitware.com/vtk/vtk/](https://gitlab.kitware.com/vtk/vtk/) and checkout the release branch.

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [February 14, 2023, 2:34pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/13 "2023-02-14T14:34:17Z")

</div>

I did this. Cloned and checked out the repo. Switched to the release branch. Same result. Does not build as a showed before.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [February 14, 2023, 3:00pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/14 "2023-02-14T15:00:48Z")

</div>

Can you try master branch for completness ?

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [February 14, 2023, 3:02pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/15 "2023-02-14T15:02:36Z")

</div>

I’ll give it a go later today.

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [February 14, 2023, 10:43pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/16 "2023-02-14T22:43:05Z")

</div>

Okay. Checked out the master branch. It was worse. Didn’t even complete 1% of the build!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [February 15, 2023, 7:14am UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/17 "2023-02-15T07:14:27Z")

</div>

master and release should be compatible with GCC 4.8.5

Please open appropriate issues: [https://gitlab.kitware.com/vtk/vtk/-/issues](https://gitlab.kitware.com/vtk/vtk/-/issues)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [February 15, 2023, 7:14am UTC](https://discourse.vtk.org/t/vtk-9-2-2-build-aborts/10025/18 "2023-02-15T07:14:37Z")

</div>

@Yohann_Bearzi @spyridon97
