# Run make after building STARlight

**URL:** <https://root-forum.cern.ch/t/run-make-after-building-starlight/52336>\
**Category:** Newbie\
**Tags:** root\
**Created:** [November 12, 2022, 11:33am UTC](https://root-forum.cern.ch/t/run-make-after-building-starlight/52336 "2022-11-12T11:33:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anas\_Alaali](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/anas_alaali/32/31266_2.png) [@Anas\_Alaali](https://root-forum.cern.ch/u/Anas_Alaali)\
**Post date:** [November 12, 2022, 11:33am UTC](https://root-forum.cern.ch/t/run-make-after-building-starlight/52336/1 "2022-11-12T11:33:29Z")

</div>

[https://starlight.hepforge.org/](https://starlight.hepforge.org/)

I found the error which run make but I can’t fix that.  
[![Screenshot 2022-11-12 141541](https://user-images.githubusercontent.com/116489914/201471628-4dc9d225-537d-40da-a2da-e8d6d4922a79.png)](https://user-images.githubusercontent.com/116489914/201471628-4dc9d225-537d-40da-a2da-e8d6d4922a79.png)  
[![Screenshot 2022-11-12 141807](https://user-images.githubusercontent.com/116489914/201471631-aca47583-d887-475b-a267-5f21d44ee3d9.png)](https://user-images.githubusercontent.com/116489914/201471631-aca47583-d887-475b-a267-5f21d44ee3d9.png)  
[![Screenshot 2022-11-12 141825](https://user-images.githubusercontent.com/116489914/201471634-b3fc3b8d-aa65-4afa-983c-5d1ad9fc7909.png)](https://user-images.githubusercontent.com/116489914/201471634-b3fc3b8d-aa65-4afa-983c-5d1ad9fc7909.png)

Please, I need help.

---

<div class="post-metadata">

**Author:** ![RENATO\_QUAGLIANI](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/renato_quagliani/32/19496_2.png) [@RENATO\_QUAGLIANI](https://root-forum.cern.ch/u/RENATO_QUAGLIANI)\
**Post date:** [November 12, 2022, 11:50am UTC](https://root-forum.cern.ch/t/run-make-after-building-starlight/52336/2 "2022-11-12T11:50:08Z")

</div>

Hello, i think you should use [https://starlight.hepforge.org/trac/wiki/TracGuide](https://starlight.hepforge.org/trac/wiki/TracGuide)  
To understand how to use/compile get help on the Starlight package.

---

<div class="post-metadata">

**Author:** ![RENATO\_QUAGLIANI](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/renato_quagliani/32/19496_2.png) [@RENATO\_QUAGLIANI](https://root-forum.cern.ch/u/RENATO_QUAGLIANI)\
**Post date:** [November 12, 2022, 7:59pm UTC](https://root-forum.cern.ch/t/run-make-after-building-starlight/52336/3 "2022-11-12T19:59:53Z")

</div>

Just in case , apparently the web documentazione Is not so good  
Probably navigating source code you get the manual of the application.  
This the link i found

> **[Readme.pdf](https://phab.hepforge.org/source/starlightsvn/browse/tags/starlight_2.2.0/Readme.pdf)**

Seems to contains useful information to use this application

---

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [November 13, 2022, 3:36am UTC](https://root-forum.cern.ch/t/run-make-after-building-starlight/52336/4 "2022-11-13T03:36:22Z")

</div>

Hi @Anas_Alaali,

This is not a ROOT problem, just for your information.

But I think in this case the solution is straight forward: the starlight code doesn’t compile anymore with modern compilers because implicitly-declared copy-constructors are deprecated.

You just need to change the starlight source code to declare these copy constructors for `lorentzVector` and `upcEvent` explicitly.

That means, to `include/vector3.h` you need to add this to the `public` scope:

```c++
      vector3(const vector3& vec)
      {
        for (unsigned int i = 0; i < 3; ++i) {
          _vec[i] = vec._vec[i];
        }
      }

```

And to `include/upcevent.h`, you should add this in the `public` scope:

```c++
      upcEvent(const upcEvent& rhs) = default;

```

If I do these changes to the starlight source code, it compiles for me!

I hope this helps, and please don’t open any more spam GitHub issues in the ROOT repository.

Cheers,  
Jonas

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [November 13, 2022, 10:16am UTC](https://root-forum.cern.ch/t/run-make-after-building-starlight/52336/5 "2022-11-13T10:16:51Z")

</div>

Another very easy way to “fix” the source code:  
`sed -i -e '{s/-Werror/-Werror -Wno-error=deprecated-copy/}' CMakeLists.txt`  
`sed -i -e '{s/register //}' src/randomgenerator.cpp`
