Compile problem in fypp
Ke Zhou
zhouk... at gmail.com
Sat Feb 24 01:30:19 UTC 2018
Dear Patrick,
Thanks for your reply.
It returns:
Discovering programs ...
/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/makefiles/Makefile:42:
/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/arch/local.sopt: No such file
or directory
make[2]: *** No rule to make target
`/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/arch/local.sopt'. Stop.
make[1]: *** [sopt] Error 2
make: *** [toolversions] Error 2
I type: /usr/bin/env python -V
It returns:
Python 2.4.3
I type: python -V
It returns:
Python 2.7.14
Because I have no permission to change the python on the root. So I use
*alias* to link python to the new one on my users files.
alias python='/home/xuzp/bin/packages/python/Python-2.7.14/python'
I gauss that the python running when making is old version not the new one.
So I thinks If I specify the path for python, it may solve the problem. But
I don't how to do it.
Best,
Ke
在 2018年2月23日星期五 UTC+8下午10:19:15,Patrick Seewald写道:
>
> It is rather strange that you get this syntax error from python since fypp
> should support python 2.7.14. If you type *make toolversions* on the
> cluster (in the same directory as CP2K makefile), what is the output for
> Python?
>
> Patrick
>
> Am Freitag, 23. Februar 2018 13:37:37 UTC+1 schrieb Ke Zhou:
>>
>> Dear all,
>>
>> Now I am compiling the CP2K 2.5.1 on cluster. When I making, it returns:
>>
>>
>> Discovering programs ...
>>
>> Removing stale archives for popt ...
>>
>> Resolving dependencies for popt ...
>>
>> ...
>>
>> ... /cp2k-5.1/tools/build_utils/fypp -n ...
>> /cp2k-5.1/src/dbcsr/mm/dbcsr_mm_types.F dbcsr_mm_types.F90
>>
>> ... /cp2k-5.1/tools/build_utils/fypp", line 705
>>
>> except Exception as exc:
>>
>> ^
>>
>> SyntaxError: invalid syntax
>>
>> make[3]: *** [kinds.o] Error 1
>>
>> make[3]: *** Waiting for unfinished jobs....
>>
>>
>> I thinks it's the problem from python.
>>
>>
>> The version of python is:
>>
>>
>> python -V
>>
>> Python 2.7.14
>>
>>
>> Here are my questions:
>>
>> 1. Can I directly specify the path of python on makefile?
>>
>> 2. Can I give up the build of tools?
>>
>>
>> Can you help me?
>>
>>
>> Justin
>>
>>
>>
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20180223/07d6a373/attachment.htm>
More information about the CP2K-user
mailing list