NgSolve installation Suse 42.3


I had to reinstall NgSolve after upgrading to Suse 42.3, but failed. I followed the instructions on the webpage but when I run ‘make’ I get the following error message.

Building CXX object libsrc/general/CMakeFiles/gen.dir/bitarray.cpp.o
/home/mary/ngsuite/ngsolve-src/external_dependencies/netgen/libsrc/general/array.cpp:73:1: error: redeclaration of ‘constexpr const bool std::__is_convertible_helper<__vector(2) double, std::function<double(int)>, false>::value’
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
from /usr/include/c++/4.8/bits/stl_pair.h:59,
from /usr/include/c++/4.8/bits/stl_algobase.h:64,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from /home/mary/ngsuite/ngsolve-src/external_dependencies/netgen/libsrc/include/mystdlib.h:4,
from /home/mary/ngsuite/ngsolve-src/external_dependencies/netgen/libsrc/general/array.cpp:15:
/usr/include/c++/4.8/type_traits:1312:29: note: previous declaration ‘constexpr const bool std::__is_convertible_helper<__vector(4) double, std::function<double(int)>, false>::value’
static constexpr bool value = sizeof(__test<_From, _To>(0)) == 1;
/usr/include/c++/4.8/type_traits:1312:29: note: -fabi-version=6 (or =0) avoids this error with a change in mangling
libsrc/general/CMakeFiles/gen.dir/build.make:62: recipe for target ‘libsrc/general/CMakeFiles/gen.dir/array.cpp.o’ failed
make[8]: *** [libsrc/general/CMakeFiles/gen.dir/array.cpp.o] Error 1
make[8]: *** Waiting for unfinished jobs…

I had no error running cmake - any ideas what is going wrong here ?

Thanks a lot

Hi Mary,

you need a newer compiler, gcc-4.8 (which is the default on your system) does not support the c++ standard we need.

As written in the documentation, we recommend to use gcc version 6 or higher.