[restored issue] - error: template with C linkage
Try to build maphyspp v1.1.5 on my ubuntu 20.04 with common system packages :
git cmake build-essential emacs gfortran perl python bison flex wget tar curl pkg-config libopenblas-dev liblapacke-dev libhwloc-dev libopenmpi-dev libstarpu-dev libscotch-dev libmetis-dev libsuitesparse-dev libmumps-dev libeigen3-dev
With the following configuration:
cmake .. -DMAPHYSPP_COMPILE_EXAMPLES=ON -DMAPHYSPP_COMPILE_TESTS=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_PREFIX_PATH="/home/florent/git/blaspp/build/install;/home/florent/git/lapackpp/build/install;/home/florent/git/arpack-ng/build/install;/home/florent/git/pastix/pastix/build/install;/home/florent/git/fabulous/build/install"
Get the following error :
[ 5%] Building CXX object src/test/integration/CMakeFiles/test_no_interior.dir/test_no_interior.cpp.o
In file included from /usr/include/c++/9/map:60,
from /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:42,
from /usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:2868,
from /home/florent/git/pastix/pastix/build/install/include/spm/mpi.h:22,
from /home/florent/git/pastix/pastix/build/install/include/spm.h:27,
from /home/florent/git/pastix/pastix/build/install/include/pastix.h:27,
from /home/florent/git/maphyspp/include/maphys/solver/Pastix.hpp:26,
from /home/florent/git/maphyspp/include/maphys/loc_data/SparseMatrixBase.hpp:26,
from /home/florent/git/maphyspp/include/maphys/loc_data/SparseMatrixCOO.hpp:17,
from /home/florent/git/maphyspp/include/maphys/loc_data/SparseMatrixCSC.hpp:17,
from /home/florent/git/maphyspp/include/maphys/loc_data/DiagonalMatrix.hpp:9,
from /home/florent/git/maphyspp/include/maphys/loc_data/DenseMatrix.hpp:24,
from /home/florent/git/maphyspp/include/maphys.hpp:3,
from /home/florent/git/maphyspp/build/src/test/integration/test_no_interior.cpp:3:
/usr/include/c++/9/bits/stl_tree.h:141:3: error: template with C linkage
Notice that it builds well in the exact same environment with the same dependencies with the version 1.1.4 of maphyspp.
Warning: this issue has been restored from backup and can have been changed. For example, all comments have been lost.