[CP2K-user] cp2k 7.1 compilation on Cygwin

Ryan Kingsbury RKing... at lbl.gov
Mon Mar 16 16:26:09 UTC 2020


Thank you! My PATH was set correctly, but the binary was named python3 and 
not python. I fixed the issue with a symlink and was able to get ~1hr into 
the compile. Then this:

/cygdrive/c/Users/ryans/cp2k-7.1/src/environment.F:223:2:

  223 | #error -ffast-math (GCC) or -hfpN (N>0, Cray) can lead to wrong 
results and numerical instabilities and are therefore no longer supported
      |  1~~~~
Error: #error -ffast-math (GCC) or -hfpN (N>0, Cray) can lead to wrong 
results and numerical instabilities and are therefore no longer supported
make[3]: *** [/cygdrive/c/Users/ryans/cp2k-7.1/Makefile:466: environment.o] 
Error 1
make[2]: *** [/cygdrive/c/Users/ryans/cp2k-7.1/Makefile:134: all] Error 2
make[1]: *** [/cygdrive/c/Users/ryans/cp2k-7.1/Makefile:123: sopt] Error 2
make: *** [Makefile:118: all] Error 2


should I be passing a different flag than --ffast-math?


On Monday, March 16, 2020 at 5:07:02 AM UTC-7, brhr wrote:
>
> Hello,
>>
>  
>
>> I think this error is caused because not python in cygwin is called but 
>> python in anaconda is when you execute make.
>> It is necessary to install python on cygwin. If installation is done, 
>> python2.x.exe and python3.x.exe should be in the
>> cygwin/bin directory.
>> If these executables exist properly, it may improve by editing the PATH 
>> specification of .bash_profile in ${HOME}(maybe cygwin/home/user) as adding 
>> 'bin' on anywhere of the left of '$PATH' such as follows:
>> export 
>> PATH=~/bin:/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/usr/bin:$PATH
>>
> Hopes this helps,
>>
>    Aoyama Iwao 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20200316/663810a0/attachment.htm>


More information about the CP2K-user mailing list