I try to compile Elmer software package on the OpenSUSE 13.2 version software.
Start looks good, but after some installation I have got this error:
Code: Select all
Linking Fortran shared library libelmersolver.so
[ 83%] Built target elmersolver
Scanning dependencies of target GebhardtFactors
Scanning dependencies of target Solver_TGT
[ 83%] [ 83%] Building Fortran object fem/src/CMakeFiles/Solver_TGT.dir/Solver.F90.o
Building Fortran object fem/src/CMakeFiles/GebhardtFactors.dir/GebhardtFactors.F90.o
Linking Fortran executable ElmerSolver
libelmersolver.so: undefined reference to `mpi_comm_split_'
collect2: error: ld returned 1 exit status
fem/src/CMakeFiles/Solver_TGT.dir/build.make:89: návod pro cíl „fem/src/ElmerSolver“ selhal
make[2]: *** [fem/src/ElmerSolver] Chyba 1
CMakeFiles/Makefile2:630: návod pro cíl „fem/src/CMakeFiles/Solver_TGT.dir/all“ selhal
make[1]: *** [fem/src/CMakeFiles/Solver_TGT.dir/all] Chyba 2
make[1]: *** Čeká se na nedokončené úlohy…
Linking Fortran executable GebhardtFactors
libelmersolver.so: undefined reference to `mpi_comm_split_'
collect2: error: ld returned 1 exit status
fem/src/CMakeFiles/GebhardtFactors.dir/build.make:99: návod pro cíl „fem/src/GebhardtFactors“ selhal
make[2]: *** [fem/src/GebhardtFactors] Chyba 1
CMakeFiles/Makefile2:587: návod pro cíl „fem/src/CMakeFiles/GebhardtFactors.dir/all“ selhal
make[1]: *** [fem/src/CMakeFiles/GebhardtFactors.dir/all] Chyba 2
Makefile:147: návod pro cíl „all“ selhal
make: *** [all] Chyba 2
Code: Select all
# cmake -DWITH_ELMERGUI:BOOL=FALSE -DWITH_MPI:BOOL=FALSE -DCMAKE_INSTALL_PREFIX=../install ../elmerfem
-- The Fortran compiler identification is GNU
-- The C compiler identification is GNU 4.8.3
-- The CXX compiler identification is GNU 4.8.3
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Checking whether GFortran version >= 4.8 -- yes
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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
-- A library with BLAS API found.
-- A library with BLAS API found.
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
-- Checking whether /usr/bin/gfortran supports PROCEDURE POINTER
-- Checking whether /usr/bin/gfortran supports PROCEDURE POINTER -- yes
-- Checking whether /usr/bin/gfortran supports CONTIGUOUS
-- Checking whether /usr/bin/gfortran supports CONTIGUOUS -- yes
-- Checking whether /usr/bin/gfortran supports EXECUTE_COMMAND_LINE
-- Checking whether /usr/bin/gfortran supports EXECUTE_COMMAND_LINE -- yes
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long
-- Check size of long - done
-- Found 105 modules from /home/dobes/elmer/elmerfem/fem/src/modules
-- Found 429 tests
-- ------------------------------------------------
-- BLAS library: /usr/lib64/libblas.so
-- LAPACK library: /usr/lib64/liblapack.so;/usr/lib64/libblas.so
-- ------------------------------------------------
-- Fortran compiler: /usr/bin/gfortran
-- Fortran flags: -O2 -g -DNDEBUG
-- ------------------------------------------------
-- C compiler: /usr/bin/cc
-- C flags: -O2 -g -DNDEBUG
-- ------------------------------------------------
-- CXX compiler: /usr/bin/c++
-- CXX flags: -O2 -g -DNDEBUG
-- ------------------------------------------------
-- ------------------------------------------------
-- Package filename: elmerfem-8.2-bc737be-20161220_Linux-x86_64
-- Patch version: 8.2-bc737be
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dobes/elmer/build
Many thanks for everyone who helps me with this problem.