[gmx-users] compilation error in multidimarray.h

Herbert Fruchtl herbert.fruchtl at st-andrews.ac.uk
Thu Mar 26 14:48:50 CET 2020


Thanks,

I had devtoolset-7 first, but then cmake already stops in the 
dependencies, and says the gcc included there is not supported by Intel 
17. Will have to compile the complete toolchain with gcc...

   Herbert

On 26/03/2020 13:12, Mark Abraham wrote:
> Hi,
> 
> Intel doesn't supply a standard library, it always gets one from either a
> gcc or msvc installed on the system. Which versions of gcc libstdc++ are
> supported varies with the intel version, so you could follow the advice at
> http://manual.gromacs.org/documentation/2020/install-guide/index.html#compiler
> to try a different one, perhaps in a newer devtoolset.
> 
> Mark
> 
> On Thu, 26 Mar 2020 at 13:15, Herbert Fruchtl <
> herbert.fruchtl at st-andrews.ac.uk> wrote:
> 
>> 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
>> --
>> Gromacs Users mailing list
>>
>> * Please search the archive at
>> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
>> posting!
>>
>> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>>
>> * For (un)subscribe requests visit
>> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
>> send a mail to gmx-users-request at gromacs.org.
>>

-- 
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