[gmx-users] compilation error in multidimarray.h

Herbert Fruchtl herbert.fruchtl at st-andrews.ac.uk
Thu Mar 26 13:15:21 CET 2020


Folks,

I am trying to compile gromacs 2020.1 with the Intel compilers (version 
17.0.2). It fails with:

/home/herbert/gromacs-2020.1/src/gromacs/math/multidimarray.h(153): 
error: expression must have a constant value
       template<typename T = TContainer, typename = typename 
std::enable_if_t<!detail::is_resizable_v<T>>>

In file included from 
/home/herbert/gromacs-2020.1/src/gromacs/math/densityfit.cpp(49):
/opt/rh/devtoolset-6/root/usr/include/c++/6.3.1/type_traits(2523): 
error: class "std::enable_if<<error-constant>, void>" has no member "type"
       using enable_if_t = typename enable_if<_Cond, _Tp>::type;

That last part seems to indicate that the problem is in the g++ 
libraries. Why does it use them at all? I have set CXX to icpc and 
sourced compilervars.sh. How do I get around this?

Thanks,

   Herbert
-- 
Herbert Fruchtl
Senior Scientific Computing Officer
School of Chemistry, School of Mathematics and Statistics University of 
St Andrews
--
The University of St Andrews is a charity registered in Scotland:
No SC013532


More information about the gromacs.org_gmx-users mailing list