[CP2K-user] cp2k 7.1 compilation on Cygwin

Ryan Kingsbury RKing... at lbl.gov
Sun Mar 15 17:13:12 UTC 2020


Hello, I am trying to compile cp2k 7.1 for a Windows 10 system. I've 
followed the instructions here 
<https://www.cp2k.org/howto:compile_on_windows_with_cygwin>, but the build 
fails because it apparently cannot find the file `discover_programs.py`; 
however the file exists in the expected location and I can run it manually.

$ make ARCH=Cygwin-i686-gfortran VERSION=sopt
C:\Users\ryans\Anaconda3\python.exe: can't open file '/cygdrive/c/Users/
ryans/cp2k-7.1/tools/build_utils/discove
r_programs.py': [Errno 2] No such file or directory
C:\Users\ryans\Anaconda3\python.exe: can't open file 
'/cygdrive/c/Users/ryans/cp2k-7.1/tools/build_utils/discove
r_programs.py': [Errno 2] No such file or directory
C:\Users\ryans\Anaconda3\python.exe: can't open file '/cygdrive/c/Users/
ryans/cp2k-7.1/tools/build_utils/discove
r_programs.py': [Errno 2] No such file or directory
Removing stale archives for sopt ...
C:\Users\ryans\Anaconda3\python.exe: can't open file 
'/cygdrive/c/Users/ryans/cp2k-7.1/tools/build_utils/check_a
rchives.py': [Errno 2] No such file or directory
make[2]: *** [/cygdrive/c/Users/ryans/cp2k-7.1/Makefile:410: makedep] Error 
2
make[1]: *** [/cygdrive/c/Users/ryans/cp2k-7.1/Makefile:123: sopt] Error 2
make: *** [Makefile:118: all] Error 2

Also, the instructions say the `make` command should be run from the 
`makefiles` directory, which does not exist in the version of cp2k I 
downloaded. I am running from the root (parent directory of tools/, build/, 
etc./). Is that correct? 

Finally, is it necessary to run the toolchain script within Cygwin first? 

My ultimate goal is to compile a parallel, CUDA-enabled binary for windows, 
but for now I just want to build the standard .sopt version.

I am not very familiar with Cygwin so am having a hard time troubleshooting 
it. Thank you in advance for any assistance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20200315/dbe3b3f8/attachment.htm>


More information about the CP2K-user mailing list