espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ESPResSo-users] 回复: 回复: Problem with installation of espresso-4.1


From: Jean-Noël Grad
Subject: Re: [ESPResSo-users] 回复: 回复: Problem with installation of espresso-4.1.0
Date: Thu, 3 Oct 2019 19:04:17 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Hi Shawn,

I just tried compiling espresso 4.1 on CentOS 7 with CMake 3.14.6 with a C++ standard not recognized by my gcc v6.3.1 and CMake did throw a long list of errors messages: "Target ... requires the language dialect CXX.. but CMake does not know the compile flags to use to enable it". The return code is 1. I can't figure out why your version of CMake doesn't show that error nor display the compiler name and version.

In any case, you'll need to install a newer version of gcc, version 4.9.0 or later, to compile espresso 4.1.

Best,
JN

On 10/3/19 6:18 PM, Shawn wrote:
Hi JN,

My gcc version is 4.8.5, and my cmake version is 3.14.5. So I should update my gcc to newer version?

Regards,

Shawn

*发件人: *Jean-Noël Grad <mailto:address@hidden>
*发送时间: *2019年10月3日11:11
*收件人: *address@hidden <mailto:address@hidden>
*主题: *Re: [ESPResSo-users] 回复: Problem with installation of espresso-4.1.0

Hi Shawn,

It looks like your compiler doesn't know the C++14 standard. For example:

 > /home/zhsh/sourcecode/espresso/src/utils/include/utils/Vector.hpp:

 >   error: parameter declared ‘auto’

 >                   [](auto ai, auto bi) { return ai * bi; });

 >                           ^

 >   error: parameter declared ‘auto’

 >                   [](auto ai, auto bi) { return ai * bi; });

 >                                    ^

 >   error: ‘ai’ was not declared in this scope

 >                   [](auto ai, auto bi) { return ai * bi; });

 >                                                 ^

 >   error: ‘bi’ was not declared in this scope

 >                   [](auto ai, auto bi) { return ai * bi; });

 >                                                      ^

can be reproduced with gcc v4.8.5. Many of the other error messages can

be reproduced by more recent gcc versions with the C++11 flag. The

minimal gcc version needed for espresso 4.1 is v4.9.0. Our build system

does not check for compiler version numbers, instead it checks the

compiler is C++14-capable. I'm not sure why CMake did not fail. Also,

the CMake output should have shown a line with the compiler version, or

the string "The CXX compiler identification is unknown".

Could you please share with us your CMake version and gcc version? The

command lines are "gcc --version" and "cmake --version". If this is an

issue in CMake, we will have to add a few lines in our build system.

Best,

JN

On 10/3/19 5:22 PM, Shawn wrote:

Hi JN,



As you mentioned in your reply, I deleted the old folder of 4.0.2,

unpacked the files of  4.1.0 and tried to reinstall the newest package,

but the errors still existed during the compilation. Attached please

find the output.



Mainly two problems:



1 fatal: Not a git repository (or any of the parent directories): .git



2 At global scope:



cc1plus: warning: unrecognized command line option

"-Wno-cast-function-type" [enabled by default]



make[2]: *** [src/core/CMakeFiles/EspressoCore.dir/cells.cpp.o] Error 1



make[1]: *** [src/core/CMakeFiles/EspressoCore.dir/all] Error 2



make: *** [all] Error 2



Could you help me to figure out what’s the reason why I failed ?



Thank  you very much.



Best,



Shawn



*发件人: *Jean-Noël Grad <mailto:address@hidden>

*发送时间: *2019年10月2日17:19

*收件人: *address@hidden <mailto:address@hidden>

*主题: *Re: [ESPResSo-users] Problem with installation of espresso-4.1.0



Hi Shawn,



The g++ error message is hard to interpret. The include paths are wrong,



there is an extra folder /home/zhsh/sourcecode/espresso/src/core/utils



that shouldn't exist, and the compiler options do not match what we have



in 4.1.0. Could it be that you accidentally unpacked the files of the



4.1.0 release into the same folder where you unpacked the files of the



4.0.2 release back in July?



Best,



JN



On 10/2/19 8:47 PM, Shawn wrote:



Hello guys,



As the newest version of espresso released, I am trying to install it on



my computer. But I got an fatal error when I tried to compile the



package. And I also failed after I ran the "make" command.



Attached please find the detailed output of the compilation. I have used



the same script to install espresso-4.0.2 successfully, but I've no idea



where these errors come from when I try to install espresso-4.1.0. Can



someone help me out? Thank you.







Best,



Shawn










reply via email to

[Prev in Thread] Current Thread [Next in Thread]