On a new fresh ubuntu 22.04 install with only g++ 11 installed.
I installed debian packages following the current documentation instructions (23/03/2023)
the top cmakelist file ask for C++ 17
it is not installed on this fresh system (only v11)
launching the compilation does not produce any warning or error and it still attempts to compile
compilation ends with following error (library std::runtime-error not included in C++ 11, I suppose ?) :
[ 5%] Building CXX object lib/xpas/xpas/CMakeFiles/xpas_aa_pos.dir/src/xpas/phylo_tree.cpp.o
In file included from /home/belinard/SOURCES/CLionProjects/clapas_core/lib/xpas/xpas/src/xpas/phylo_tree.cpp:2:
/home/belinard/SOURCES/CLionProjects/clapas_core/lib/xpas/xpas/include/xpas/phylo_tree.h: In constructor ‘xpas::visit_subtree<Iterator, Const>::visit_subtree(xpas::visit_subtree<Iterator, Const>::pointer)’:
/home/belinard/SOURCES/CLionProjects/clapas_core/lib/xpas/xpas/include/xpas/phylo_tree.h:293:28: error: ‘runtime_error’ is not a member of ‘std’
293 | throw std::runtime_error("xpas::visit_subtree: root can not be null");
| ^~~~~~~~~~~~~
This should be rapidly improved (for the review and later people not used to c++ that will not get stuck at compilation time) :
quick fix : make sure c++ 17 is installed via the list of debian packages pre-requirements (documentation)
in all cases, the cmake command should exit with error specifying that the required C++ version is not found on the system, and not attempt to compile with older versions
On a new fresh ubuntu 22.04 install with only g++ 11 installed.
This should be rapidly improved (for the review and later people not used to c++ that will not get stuck at compilation time) :