|
|
本帖最后由 naxiangzi 于 2026-3-24 17:37 编辑
Py-ChemShell 25.03 无法编译 cp2k-2026.1,无法登录 gitlab.com 提示 我们的账户已被封禁。如果您认为这是错误,请联系您的 GitLab 管理员。无法提交兼容问题。
所以来这里请教大佬。
cp2k-2026.1 已经编译好。不知是什么原因。编译 chemsh编译是无法使用 源目录或安装目录 cp2k-2026.1 都会出错,想要使用新版本,不知要怎么解决
环境: ubuntu server 24.04.04 + openmpi-5.0.10 + cpu 8488C,
源代码目录: /data/software,
安装目录: /data/usr
/data/usr/hdf5-2.1.0 和 /data/usr/cp2k-2026.1 都是单独编译的安装目录
- ../setup \
- --platform ubuntu \
- --mpi openmpi \
- --mpi_lib_path /data/usr/openmpi-5.0.10/lib \
- --mpi_include_path /data/usr/openmpi-5.0.10/include \
- --fc /data/usr/openmpi-5.0.10/bin/mpifort \
- --cc /data/usr/openmpi-5.0.10/bin/mpicc \
- --cpc /data/usr/openmpi-5.0.10/bin/mpic++ \
- --fflags "-march=sapphirerapids -O3 -ffast-math -cpp" \
- --cflags "-march=sapphirerapids -O3 -ffast-math" \
- --ldflags "-L/data/usr/openblas-0.3.31/lib -lopenblas -lpthread -L/data/usr/spglib-2.7.0/lib -lsymspg -L/data/usr/hdf5-2.1.0/lib -lhdf5 -L/data/usr/ga-5.9.2/lib -lga" \
- --fftw /data/usr/fftw-3.3.10 \
- --fftw_include_dir /data/usr/fftw-3.3.10/include \
- --fftw_link_flags "-L/data/usr/fftw-3.3.10/lib -lfftw3_mpi -lfftw3" \
- --cp2k /data/<font color="#ff0000">software</font>/cp2k-2026.1 \ # 或使用 /data/<font color="#ff00ff">usr</font>/cp2k-2026.1
- --nwchem /data/software/nwchem-7.3.1 \
- --gulp /data/software/gulp-6.4 \
- --ga-armci-network MPI-TS \
- --scalapack /data/usr/scalapack-2.2.2/lib \
- --scalapack_flags "-L/data/usr/scalapack-2.2.2/lib -lscalapack -L/data/usr/openblas-0.3.31/lib -lopenblas" \
- -j $(nproc)
复制代码
- f951: Warning: Nonexistent include directory ‘/data/usr/hdf5/lib/../include’ [-Wmissing-include-dirs]
- [ 63%] Building C object app/CMakeFiles/chemsh.x.dir/data/software/chemsh-py-25.03/build/gnu/modules/chemsh_consts.c.o
- [ 64%] Linking Fortran executable /data/software/chemsh-py-25.03/bin/gnu/chemsh.x
- /usr/bin/ld: warning: libhdf5.so.310, needed by /data/software/cp2k-2026.1/lib/chemsh-gnu-mpi/psmp/libcp2k.a, not found (try using -rpath or -rpath-link)
- /usr/bin/ld: warning: libimf.so, needed by /data/usr/hdf5-2.1.0/lib/libhdf5.so, not found (try using -rpath or -rpath-link)
- /usr/bin/ld: warning: libsvml.so, needed by /data/usr/hdf5-2.1.0/lib/libhdf5.so, not found (try using -rpath or -rpath-link)
- /usr/bin/ld: warning: libirng.so, needed by /data/usr/hdf5-2.1.0/lib/libhdf5.so, not found (try using -rpath or -rpath-link)
- /usr/bin/ld: warning: libintlc.so.5, needed by /data/usr/hdf5-2.1.0/lib/libhdf5.so, not found (try using -rpath or -rpath-link)
- /usr/bin/ld: /data/usr/hdf5-2.1.0/lib/libhdf5.so: undefined reference to `_intel_fast_memset'
- /usr/bin/ld: /data/usr/hdf5-2.1.0/lib/libhdf5.so: undefined reference to `_intel_fast_memcpy'
- collect2: error: ld returned 1 exit status
- make[2]: *** [app/CMakeFiles/chemsh.x.dir/build.make:193: /data/software/chemsh-py-25.03/bin/gnu/chemsh.x] Error 1
- make[1]: *** [CMakeFiles/Makefile2:614: app/CMakeFiles/chemsh.x.dir/all] Error 2
- make: *** [Makefile:91: all] Error 2
- Traceback (most recent call last):
- File "/data/software/chemsh-py-25.03/build/../setup", line 1344, in <module>
- main()
- File "/data/software/chemsh-py-25.03/build/../setup", line 1332, in main
- subprocess.run('make',
- File "/usr/lib/python3.12/subprocess.py", line 571, in run
- raise CalledProcessError(retcode, process.args,
- subprocess.CalledProcessError: Command 'make' returned non-zero exit status 2.
- lsfadmin@cn05:/data/software/chemsh-py-25.03/build$
- lsfadmin@cn05:/data/software/chemsh-py-25.03/build$
复制代码
使用自动安装,却无法下载低版本,当然最好能用高版本的
- [ 19%] Performing download step (git clone) for 'cp2k-2024.2'
- Cloning into 'cp2k-2024.2'...
- error: RPC failed; curl 56 Recv failure: Connection reset by peer
- error: 2725 bytes of body are still expected
- fetch-pack: unexpected disconnect while reading sideband packet
- fatal: early EOF
- fatal: fetch-pack: invalid index-pack output
- Cloning into 'cp2k-2024.2'...
- error: RPC failed; curl 56 Recv failure: Connection reset by peer
- error: 7678 bytes of body are still expected
- fetch-pack: unexpected disconnect while reading sideband packet
- fatal: early EOF
- fatal: fetch-pack: invalid index-pack output
- Cloning into 'cp2k-2024.2'...
- fatal: unable to access 'https://github.com/cp2k/cp2k.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
- -- Had to git clone more than once: 3 times.
- CMake Error at /data/software/chemsh-py-25.03/chemsh/interfaces/cp2k/gnu/tmp/cp2k-2024.2-gitclone.cmake:39 (message):
- Failed to clone repository: 'https://github.com/cp2k/cp2k.git'
- make[2]: *** [interfaces/cp2k/CMakeFiles/cp2k-2024.2.dir/build.make:98: interfaces/cp2k/gnu/stamp/cp2k-2024.2-download] Error 1
- make[1]: *** [CMakeFiles/Makefile2:775: interfaces/cp2k/CMakeFiles/cp2k-2024.2.dir/all] Error 2
- make: *** [Makefile:91: all] Error 2
- Traceback (most recent call last):
- File "/data/software/chemsh-py-25.03/build/../setup", line 1344, in <module>
- main()
- File "/data/software/chemsh-py-25.03/build/../setup", line 1332, in main
- subprocess.run('make',
- File "/usr/lib/python3.12/subprocess.py", line 571, in run
- raise CalledProcessError(retcode, process.args,
- subprocess.CalledProcessError: Command 'make' returned non-zero exit status 2.
- lsfadmin@cn05:/data/software/chemsh-py-25.03/build$
- lsfadmin@cn05:/data/software/chemsh-py-25.03/build$ ping github.com
- PING github.com (20.205.243.166) 56(84) bytes of data.
- 64 bytes from 20.205.243.166: icmp_seq=1 ttl=102 time=104 ms
复制代码
|
评分 Rate
-
查看全部评分 View all ratings
|