When building a new version of ENDFtk, compilation errors when trying to build a test. Disabling the tests allows the compilation to complete.
Commands Used:
git clone https://github.com/njoy/ENDFtk
cd ENDFtk
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ../
make -j8
Here is the terminal output:
...
[ 60%] Building CXX object src/ENDFtk/section/5/TabulatedSpectrum/OutgoingEnergyDistribution/test/CMakeFiles/ENDFtk.section.5.TabulatedSpectrum.OutgoingEnergyDistribution.test.dir/OutgoingEnergyDistribution.test.cpp.o
[ 60%] Built target ENDFtk.section.5.MadlandNixSpectrum.test
[ 60%] Building CXX object src/ENDFtk/section/5/TabulatedSpectrum/test/CMakeFiles/ENDFtk.section.5.TabulatedSpectrum.test.dir/TabulatedSpectrum.test.cpp.o
[ 60%] Linking CXX executable ENDFtk.section.5.MaxwellianFissionSpectrum.test
[ 60%] Built target ENDFtk.section.5.MaxwellianFissionSpectrum.test
[ 60%] Building CXX object src/ENDFtk/section/5/WattSpectrum/test/CMakeFiles/ENDFtk.section.5.WattSpectrum.test.dir/WattSpectrum.test.cpp.o
[ 61%] Linking CXX executable ENDFtk.section.5.Parameter.test
[ 61%] Built target ENDFtk.section.5.Parameter.test
[ 61%] Building CXX object src/ENDFtk/section/5/test/CMakeFiles/ENDFtk.section.5.test.dir/5.test.cpp.o
In file included from /usr/include/signal.h:328,
from /home/blakec4/SchoolPrograms/test_ENDFtk/ENDFtk/build/_deps/catch-adapter-src/src/single_include/catch.hpp:6520,
from /home/blakec4/SchoolPrograms/test_ENDFtk/ENDFtk/src/ENDFtk/section/5/WattSpectrum/test/WattSpectrum.test.cpp:3:
/home/blakec4/SchoolPrograms/test_ENDFtk/ENDFtk/build/_deps/catch-adapter-src/src/single_include/catch.hpp:6543:33: error: size of array ‘altStackMem’ is not an integral constant-expression
6543 | static char altStackMem[SIGSTKSZ];
| ^~~~~~~~
/home/blakec4/SchoolPrograms/test_ENDFtk/ENDFtk/build/_deps/catch-adapter-src/src/single_include/catch.hpp:6594:45: error: size of array ‘altStackMem’ is not an integral constant-expression
6594 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
| ^~~~~~~~
make[2]: *** [src/ENDFtk/section/5/WattSpectrum/test/CMakeFiles/ENDFtk.section.5.WattSpectrum.test.dir/build.make:76: src/ENDFtk/section/5/WattSpectrum/test/CMakeFiles/ENDFtk.section.5.WattSpectrum.test.dir/WattSpectrum.test.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:7712: src/ENDFtk/section/5/WattSpectrum/test/CMakeFiles/ENDFtk.section.5.WattSpectrum.test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 61%] Linking CXX executable ENDFtk.section.5.Probability.test
[ 61%] Built target ENDFtk.section.5.Probability.test
[ 61%] Linking CXX executable ENDFtk.section.4.test
[ 61%] Built target ENDFtk.section.4.test
[ 61%] Linking CXX executable ENDFtk.section.5.TabulatedSpectrum.OutgoingEnergyDistribution.test
[ 61%] Built target ENDFtk.section.5.TabulatedSpectrum.OutgoingEnergyDistribution.test
[ 62%] Linking CXX executable ENDFtk.section.5.TabulatedSpectrum.test
[ 62%] Built target ENDFtk.section.5.TabulatedSpectrum.test
[ 62%] Linking CXX executable ENDFtk.section.5.PartialDistribution.test
[ 62%] Built target ENDFtk.section.5.PartialDistribution.test
[ 62%] Linking CXX executable ENDFtk.section.5.test
[ 62%] Built target ENDFtk.section.5.test
lto-wrapper: warning: using serial compilation of 128 LTRANS jobs
^Cmake[2]: *** Deleting file 'ENDFtk.cpython-311-x86_64-linux-gnu.so'
make[2]: *** [CMakeFiles/ENDFtk.python.dir/build.make:3794: ENDFtk.cpython-311-x86_64-linux-gnu.so] Interrupt
make[1]: *** [CMakeFiles/Makefile2:5172: CMakeFiles/ENDFtk.python.dir/all] Interrupt
make: *** [Makefile:146: all] Interrupt
Here is the full terminal output:
ENDFtk_build_error.txt
When building a new version of ENDFtk, compilation errors when trying to build a test. Disabling the tests allows the compilation to complete.
Commands Used:
Here is the terminal output:
Here is the full terminal output:
ENDFtk_build_error.txt