I’m having some problems building 3D Slicer on Gentoo, I’m using GCC 7 and GCC 6, could not try on GCC 4 since it got some libraries problems with the ABI changes.
Can someone orient me about what GCC version and maybe Linux distro is best to build? I would like to use Gentoo, but if another works its a start for me.
The errors on Gentoo I’m stuck now are all like this:
Slicer-SuperBuild-Debug/SimpleITK/Code/Common/include/Ancillary/TypeList.h:328:43: error: expected primary-expression before ‘>’ token
visitor.CLANG_TEMPLATE operator()( );
And on CentOS I got:
[ 1%] Completed ‘BRAINSTools’
[ 1%] Built target BRAINSTools
make[2]: *** No rule to make target zlib-prefix/src/zlib-stamp/zlib-/root/src/Slicer-SuperBuild-Debug/version-zlib.txt', needed byzlib-prefix/src/zlib-stamp/zlib-generate_project_description’. Stop.
make[1]: *** [CMakeFiles/zlib.dir/all] Error 2
Sorry I didn’t read carefully your initial post that you use GCC 7 and 6.
As you can see from https://gcc.gnu.org/gcc-6/changes.html, GCC 6 default mode is C++14. As far as I know, you cannot compile Slicer with C++14, and I am not sure if/how you could configure your build to properly propagate flags to enforce C++98 throughout the superbuild.