DUNE-DAQ / daq-release

Scripts and configuration files for the DUNE DAQ release
https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-release/
2 stars 0 forks source link

Felix-software needs its package.py updated to support Alma9 #263

Closed dingp closed 1 year ago

dingp commented 1 year ago

https://github.com/DUNE-DAQ/daq-release/blob/83351c728520c0a66961f45144f3f4df1e67100b/spack-repos/externals/packages/felix-software/package.py#L112

The native build of felix-software on Alma9 failed with errors like:

/nfs/sw/spack/externals/ext-v2.0/spack-0.18.1/opt/spack/linux-almalinux9-zen3/gcc-12.1.0/felix-software-dunedaq-v2.10.0-jdyyw6f2zhj7impi2qvf76i4yu4pqgtk/software/external/catch/2.13.4/include/catch.hpp:10822:58: error: call to non-'constexpr' function 'long int sysconf(int)'
10822 |     static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
      |                                                          ^~~~~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24:
/usr/include/unistd.h:640:17: note: 'long int sysconf(int)' declared here
  640 | extern long int sysconf (int __name) __THROW;
      |                 ^~~~~~~
/nfs/sw/spack/externals/ext-v2.0/spack-0.18.1/opt/spack/linux-almalinux9-zen3/gcc-12.1.0/felix-software-dunedaq-v2.10.0-jdyyw6f2zhj7impi2qvf76i4yu4pqgtk/software/external/catch/2.13.4/include/catch.hpp:10881:45: error: size of array 'altStackMem' is not an integral constant-expression
10881 |     char FatalConditionHandler::altStackMem[sigStackSize] = {};
      |                                             ^~~~~~~~~~~~
alessandrothea commented 1 year ago

Done