# Issues building Slicer on Arch Linux

**URL:** https://discourse.slicer.org/t/issues-building-slicer-on-arch-linux/23470
**Category:** Development
**Tags:** build, vtk
**Created:** [May 18, 2022, 1:47pm UTC](https://discourse.slicer.org/t/issues-building-slicer-on-arch-linux/23470 "2022-05-18T13:47:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tsims](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tsims/32/11853_2.png) [@tsims](https://discourse.slicer.org/u/tsims)
#### Post date: [May 18, 2022, 1:47pm UTC](https://discourse.slicer.org/t/issues-building-slicer-on-arch-linux/23470/1 "2022-05-18T13:47:07Z")

</div>

Hi everyone, I am having some issues installing slicer and was hoping to get some help…

When I go to build the latest version of Slicer, I get the following error:

```auto
In file included from /home/tsims/Documents/Slicer-git/Slicer-SuperBuild-Debug/VTK/Common/DataModel/vtkSphericalPointIterator.cxx:15:
/home/tsims/Documents/Slicer-git/Slicer-SuperBuild-Debug/VTK/Common/DataModel/vtkSphericalPointIterator.h:272:8: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
  272 | std::unique_ptr<SphericalPointIterator> Iterator;
      | ^ ~~~~~~~~~
/home/tsims/Documents/Slicer-git/Slicer-SuperBuild-Debug/VTK/Common/DataModel/vtkSphericalPointIterator.h:82:1: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
   81 | #include "vtkSmartPointer.h" // auto destruct
  +++ |+#include <memory>
   82 | 

```

Adding the `#include <memory>` statement as the compiler suggests will allow the code to compile, but when running the binary at the end of the process it exits with a address boundary error.

I was wondering if there is a compiler setting or something I’m missing to get this to work?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![tsims](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tsims/32/11853_2.png) [@tsims](https://discourse.slicer.org/u/tsims)
#### Post date: [May 18, 2022, 3:23pm UTC](https://discourse.slicer.org/t/issues-building-slicer-on-arch-linux/23470/2 "2022-05-18T15:23:14Z")

</div>

To add some more specifics to the errors I am getting:

running `./Slicer` returns

```auto
error: [/home/tsims/Documents/Slicer-git/Slicer-SuperBuild-Debug/Slicer-build/bin/./SlicerApp-real] exit abnormally - Report the problem.

```

And trying to manually run `./bin/SlicerApp-real` returns

```auto
fish: Job 1, './bin/SlicerApp-real' terminated by signal SIGSEGV (Address boundary error)

```

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [May 18, 2022, 4:24pm UTC](https://discourse.slicer.org/t/issues-building-slicer-on-arch-linux/23470/3 "2022-05-18T16:24:30Z")

</div>

I had to add the \<memory\> include in

```auto
Modules/Loadable/Markups/MRML/vtkMRMLMarkupsJsonStorageNode_Private.h

Common/DataModel/vtkSphericalPointIterator.h

```

for a successful build. It’s working flawlessly however, from a clean build. You may trash everything and restart.

---

<div class="post-metadata">

### Author: ![tsims](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tsims/32/11853_2.png) [@tsims](https://discourse.slicer.org/u/tsims)
#### Post date: [May 18, 2022, 7:49pm UTC](https://discourse.slicer.org/t/issues-building-slicer-on-arch-linux/23470/4 "2022-05-18T19:49:37Z")

</div>

Thank you so much for your advice! Resetting my local version to the latest changes and running the build again fixed the compilation issue, but it still won’t launch for some reason, giving the same errors as above but that must be something funky on my system.
