|
本帖最后由 chlorophyll 于 2024-1-23 14:51 编辑
实验室linux版本为RHEL6.3,无root,完全小白,根据“给老爷机离线安装CP2K-2022.2的笔记”这条帖子进行安装编译,已成功装gcc9.3(期间还得弄了python3),但编译本体(2022.2)时不太顺利,排查发现是编译linbint时出了问题(最开始想装2023.1,但是发现不成功就换成2022.2,还是不行,才去找问题的)。
我在github上查了相关的信息,其中开发者提到:
Check if the Fortran module name has been generated in lower-case letters (libint_f.mod) and has been installed e.g. in the libint-v2.6.0-cp2k-lmax-5/include/ folder for CP2K.
You can also run make fortran in the build folder libint-v2.6.0-cp2k-lmax-5 or just make in its subfolder fortran. That's quick and does not interfere with the library build. If needed fix the make file in the fortran folder by hand and run make until no error occurs and the Fortran module has been built successfully, then run make install again in libint-v2.6.0-cp2k-lmax-5.
我看了下对应的文件夹,确实没有 libint_f.mod 这玩意,就觉得应该是Fortran出了问题,也有可能系统版本太老。现在不知道下一步该怎么解决,想请教下老师们有何对策
下面是log文件里最后报错的几行信息
/usr/bin/install -c -d -m 0755 /home/wangyt/softwares/cp2k-2022.2/tools/toolchain/install/libint-v2.6.0-cp2k-lmax-5/share/libint/2.6.0/basis
/usr/bin/install -c -m 0644 /home/wangyt/softwares/cp2k-2022.2/tools/toolchain/build/libint-v2.6.0-cp2k-lmax-5/./lib/basis/* /home/wangyt/softwares/cp2k-2022.2/tools/toolchain/install/libint-v2.6.0-cp2k-lmax-5/share/libint/2.6.0/basis
(cd fortran && make) || exit 1
make[1]: Entering directory `/home/wangyt/softwares/cp2k-2022.2/tools/toolchain/build/libint-v2.6.0-cp2k-lmax-5/fortran'
/home/wangyt/softwares/gcc9//gcc-9.3.0//bin/g++ -O2 -fPIC -fno-omit-frame-pointer -fopenmp -g -march=native -mtune=native -g1 -E -DHAVE_CONFIG_H -D__COMPILING_LIBINT2=1 -D__COMPILING_LIBINT2=1 -I../include -I..//include -O2 -fPIC -fno-omit-frame-pointer -fopenmp -g -march=native -mtune=native -O2 -fPIC -fno-omit-frame-pointer -fopenmp -g -march=native -mtune=native -g1 ../include/libint2.h > ../include/libint2.h.i
python c_to_f.py ../include/libint2.h.i libint2_types_f.h Libint_t
Traceback (most recent call last):
File "c_to_f.py", line 71, in <module>
f_out.write("type, bind(c) :: {}\n".format(name))
ValueError: zero length field name in format
make[1]: *** [libint2_types_f.h] Error 1
make[1]: Leaving directory `/home/wangyt/softwares/cp2k-2022.2/tools/toolchain/build/libint-v2.6.0-cp2k-lmax-5/fortran'
make: *** [fortran] Error 1
|
|