Building STARlight fails on Kubuntu 22

Dear all,

I am trying to install STARlight on Kubuntu 22 but the build fails with:

home/kubajurka/alice/sw/SOURCES/STARlight/master/0/src/randomgenerator.cpp: In member function 'virtual double randomGenerator::Rndom(int)':
/home/kubajurka/alice/sw/SOURCES/STARlight/master/0/src/randomgenerator.cpp:126:20: error: ISO C++17 does not allow 'register' storage class specifier [-Werror=register]
  126 |       register int i;
      |                    ^
cc1plus: all warnings being treated as errors

I am building with the commands:

aliBuild init STARlight@master
aliBuild build STARlight --defaults o2 

The full log file is here: CERNBox

When I tested on a different machine with Ubuntu 20 the build was ok.

Thanks for any help.
Cheers,
Tomas

After discussing with the authors of STARlight, the solution is to remove register on line 126 in randomgenerator.cpp

They will take care of updating the source code of the official STARLight version to be compatible with (K)Ubunut 22.