计算化学公社

 找回密码 Forget password
 注册 Register
Views: 63|回复 Reply: 0
打印 Print 上一主题 Last thread 下一主题 Next thread

[CP2K] 安装COSMA编译库出现报错,请大家帮帮忙

[复制链接 Copy URL]

1

帖子

0

威望

11

eV
积分
12

Level 1 能力者

==================== Installing COSMA ====================
COSMA-v2.6.2.tar.gz is found
Installing from scratch into /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/COSMA-2.6.2
-- Selected BLAS backend for COSMA: OPENBLAS
-- Selected SCALAPACK backend for COSMA: CUSTOM
-- The BLAS backend that SCALAPACK is linked to: CUSTOM
-- The CXX compiler identification is GNU 9.3.0
-- The C compiler identification is GNU 9.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /public/home/u12314005/soft/gcc/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /public/home/u12314005/soft/gcc/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found MPI_C: /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openmpi-4.1.4/lib/libmpi.so (found version "3.1")
-- Found MPI_CXX: /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openmpi-4.1.4/lib/libmpi.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1")  
-- Found OPENBLAS: /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a  
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for sgemm_
-- Looking for sgemm_ - not found
CMake Error at /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find BLAS (missing: BLAS_LIBRARIES)
Call Stack (most recent call first):
  /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/share/cmake-3.25/Modules/FindBLAS.cmake:1346 (find_package_handle_standard_args)
  CMakeLists.txt:266 (find_package)


-- Configuring incomplete, errors occurred!
See also "/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeOutput.log".
See also "/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/scripts/tool_kit.sh: line 662: /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/COSMA-2.6.2/install_successful: No such file or directory




CMakeError.log
Determining if the function sgemm_ exists failed with the following output:
Change Dir: /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-rGFexf

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_68bb2/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_68bb2.dir/build.make CMakeFiles/cmTC_68bb2.dir/build
gmake[1]: Entering directory `/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-rGFexf'
Building C object CMakeFiles/cmTC_68bb2.dir/CheckFunctionExists.c.o
/public/home/u12314005/soft/gcc/bin/gcc   -DCHECK_FUNCTION_EXISTS=sgemm_ -o CMakeFiles/cmTC_68bb2.dir/CheckFunctionExists.c.o -c /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-rGFexf/CheckFunctionExists.c
Linking C executable cmTC_68bb2
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_68bb2.dir/link.txt --verbose=1
/public/home/u12314005/soft/gcc/bin/gcc  -DCHECK_FUNCTION_EXISTS=sgemm_ CMakeFiles/cmTC_68bb2.dir/CheckFunctionExists.c.o -o cmTC_68bb2
CMakeFiles/cmTC_68bb2.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x10): undefined reference to `sgemm_'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_68bb2] Error 1
gmake[1]: Leaving directory `/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-rGFexf'
gmake: *** [cmTC_68bb2/fast] Error 2



Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-2LkMY0

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_facbc/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_facbc.dir/build.make CMakeFiles/cmTC_facbc.dir/build
gmake[1]: Entering directory `/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-2LkMY0'
Building C object CMakeFiles/cmTC_facbc.dir/src.c.o
/public/home/u12314005/soft/gcc/bin/gcc -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_facbc.dir/src.c.o -c /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-2LkMY0/src.c
Linking C executable cmTC_facbc
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_facbc.dir/link.txt --verbose=1
/public/home/u12314005/soft/gcc/bin/gcc CMakeFiles/cmTC_facbc.dir/src.c.o -o cmTC_facbc
CMakeFiles/cmTC_facbc.dir/src.c.o: In function `main':
src.c:(.text+0x2d): undefined reference to `pthread_create'
src.c:(.text+0x39): undefined reference to `pthread_detach'
src.c:(.text+0x45): undefined reference to `pthread_cancel'
src.c:(.text+0x56): undefined reference to `pthread_join'
src.c:(.text+0x6a): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_facbc] Error 1
gmake[1]: Leaving directory `/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-2LkMY0'
gmake: *** [cmTC_facbc/fast] Error 2


Source file was:
#include <pthread.h>

static void* test_func(void* data)
{
  return data;
}

int main(void)
{
  pthread_t thread;
  pthread_create(&thread, NULL, test_func, NULL);
  pthread_detach(thread);
  pthread_cancel(thread);
  pthread_join(thread, NULL);
  pthread_atfork(NULL, NULL, NULL);
  pthread_exit(NULL);

  return 0;
}


Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-VFojZN

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_f68a5/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_f68a5.dir/build.make CMakeFiles/cmTC_f68a5.dir/build
gmake[1]: Entering directory `/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-VFojZN'
Building C object CMakeFiles/cmTC_f68a5.dir/CheckFunctionExists.c.o
/public/home/u12314005/soft/gcc/bin/gcc   -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_f68a5.dir/CheckFunctionExists.c.o -c /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-VFojZN/CheckFunctionExists.c
Linking C executable cmTC_f68a5
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f68a5.dir/link.txt --verbose=1
/public/home/u12314005/soft/gcc/bin/gcc  -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_f68a5.dir/CheckFunctionExists.c.o -o cmTC_f68a5  -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_f68a5] Error 1
gmake[1]: Leaving directory `/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-VFojZN'
gmake: *** [cmTC_f68a5/fast] Error 2



Determining if the function sgemm_ exists failed with the following output:
Change Dir: /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-fX6z7v

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_2c30f/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_2c30f.dir/build.make CMakeFiles/cmTC_2c30f.dir/build
gmake[1]: Entering directory `/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-fX6z7v'
Building C object CMakeFiles/cmTC_2c30f.dir/CheckFunctionExists.c.o
/public/home/u12314005/soft/gcc/bin/gcc   -DCHECK_FUNCTION_EXISTS=sgemm_ -o CMakeFiles/cmTC_2c30f.dir/CheckFunctionExists.c.o -c /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-fX6z7v/CheckFunctionExists.c
Linking C executable cmTC_2c30f
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2c30f.dir/link.txt --verbose=1
/public/home/u12314005/soft/gcc/bin/gcc  -DCHECK_FUNCTION_EXISTS=sgemm_ CMakeFiles/cmTC_2c30f.dir/CheckFunctionExists.c.o -o cmTC_2c30f  /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(memory.o): In function `get_num_procs':
memory.c:(.text+0x1ef): undefined reference to `omp_get_num_places'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(memory.o): In function `openblas_fork_handler':
memory.c:(.text+0x260): undefined reference to `pthread_atfork'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(sgemm.o): In function `sgemm_':
gemm.c:(.text+0x3a1): undefined reference to `omp_get_max_threads'
gemm.c:(.text+0x3b2): undefined reference to `omp_in_parallel'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(blas_server.o): In function `exec_threads':
blas_server_omp.c:(.text+0x1fd): undefined reference to `omp_get_thread_num'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(blas_server.o): In function `exec_blas._omp_fn.0':
blas_server_omp.c:(.text+0x35c): undefined reference to `omp_get_num_threads'
blas_server_omp.c:(.text+0x363): undefined reference to `omp_get_thread_num'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(blas_server.o): In function `exec_blas._omp_fn.1':
blas_server_omp.c:(.text+0x3ec): undefined reference to `omp_get_num_threads'
blas_server_omp.c:(.text+0x3f3): undefined reference to `omp_get_thread_num'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(blas_server.o): In function `goto_set_num_threads':
blas_server_omp.c:(.text+0x49d): undefined reference to `omp_set_num_threads'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(blas_server.o): In function `exec_blas':
blas_server_omp.c:(.text+0x5b4): undefined reference to `GOMP_parallel'
blas_server_omp.c:(.text+0x5dd): undefined reference to `GOMP_parallel'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_2c30f] Error 1
gmake[1]: Leaving directory `/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-fX6z7v'
gmake: *** [cmTC_2c30f/fast] Error 2



Determining if the function sgemm_ exists failed with the following output:
Change Dir: /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-KKjKor

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_88056/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_88056.dir/build.make CMakeFiles/cmTC_88056.dir/build
gmake[1]: Entering directory `/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-KKjKor'
Building C object CMakeFiles/cmTC_88056.dir/CheckFunctionExists.c.o
/public/home/u12314005/soft/gcc/bin/gcc   -DCHECK_FUNCTION_EXISTS=sgemm_ -o CMakeFiles/cmTC_88056.dir/CheckFunctionExists.c.o -c /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-KKjKor/CheckFunctionExists.c
Linking C executable cmTC_88056
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/cmake-3.25.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_88056.dir/link.txt --verbose=1
/public/home/u12314005/soft/gcc/bin/gcc  -DCHECK_FUNCTION_EXISTS=sgemm_ CMakeFiles/cmTC_88056.dir/CheckFunctionExists.c.o -o cmTC_88056  /public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a -lpthread
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(memory.o): In function `get_num_procs':
memory.c:(.text+0x1ef): undefined reference to `omp_get_num_places'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(sgemm.o): In function `sgemm_':
gemm.c:(.text+0x3a1): undefined reference to `omp_get_max_threads'
gemm.c:(.text+0x3b2): undefined reference to `omp_in_parallel'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(blas_server.o): In function `exec_threads':
blas_server_omp.c:(.text+0x1fd): undefined reference to `omp_get_thread_num'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(blas_server.o): In function `exec_blas._omp_fn.0':
blas_server_omp.c:(.text+0x35c): undefined reference to `omp_get_num_threads'
blas_server_omp.c:(.text+0x363): undefined reference to `omp_get_thread_num'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(blas_server.o): In function `exec_blas._omp_fn.1':
blas_server_omp.c:(.text+0x3ec): undefined reference to `omp_get_num_threads'
blas_server_omp.c:(.text+0x3f3): undefined reference to `omp_get_thread_num'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(blas_server.o): In function `goto_set_num_threads':
blas_server_omp.c:(.text+0x49d): undefined reference to `omp_set_num_threads'
/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/install/openblas-0.3.21/lib/libopenblas.a(blas_server.o): In function `exec_blas':
blas_server_omp.c:(.text+0x5b4): undefined reference to `GOMP_parallel'
blas_server_omp.c:(.text+0x5dd): undefined reference to `GOMP_parallel'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_88056] Error 1
gmake[1]: Leaving directory `/public/home/u12314005/cp2k-2023.1/cp2k-2023.1/tools/toolchain/build/cosma/build-cpu/CMakeFiles/CMakeScratch/TryCompile-KKjKor'
gmake: *** [cmTC_88056/fast] Error 2




本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2024-11-23 10:46 , Processed in 0.158647 second(s), 21 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list