Molcas Forum

Support and discussions for Molcas and OpenMolcas users and developers

You are not logged in.

Announcement

Welcome to the Molcas forum.

Please note: The forum's URL has changed. The new URL is: https://molcasforum.univie.ac.at. Please update your bookmarks!

You can choose an avatar and change the default style by going to "Profile" → "Personality" or "Display".

#1 2020-04-26 05:16:45

tikim
Member
Registered: 2020-04-26
Posts: 2

Issue: compile openmolcas with NECI library

To compile openmolcas with NECI, first I get NECI library through git submodule command. Then I use command:

cmake -DNECI=ON -DMPI=ON -DGA=ON -DOPENMP=ON CC=mpiicc FC=mpiifort

Consequently, I encounter that error:

Run Build Command(s):/bin/gmake cmTC_519bd/fast && /bin/gmake  -f CMakeFiles/cmTC_519bd.dir/build.make CMakeFiles/cmTC_519bd.dir/build
gmake[1]: Entering directory `/home/tikim/program/OpenMolcas/build/CMakeFiles/CMakeTmp'
Building Fortran object CMakeFiles/cmTC_519bd.dir/test_mpi.f90.o
/bin/f95  -I/opt/intel/compilers_and_libraries_2020.0.166/linux/mpi/intel64/include/gfortran/4.8.0 -I/opt/intel/compilers_and_libraries_2020.0.166/linux/mpi/intel64/include  -fno-aggressive-loop-optim
izations -cpp -fdefault-integer-8 -fopenmp    -c /home/tikim/program/OpenMolcas/build/CMakeFiles/FindMPI/test_mpi.f90 -o CMakeFiles/cmTC_519bd.dir/test_mpi.f90.o
/home/tikim/program/OpenMolcas/build/CMakeFiles/FindMPI/test_mpi.f90:2.10:

      use mpi_f08
          1
Fatal Error: File 'mpi_f08.mod' opened at (1) is not a GNU Fortran module file
gmake[1]: *** [CMakeFiles/cmTC_519bd.dir/test_mpi.f90.o] Error 1
gmake[1]: Leaving directory `/home/tikim/program/OpenMolcas/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_519bd/fast] Error 2

Offline

#2 2020-04-26 09:27:57

Ignacio
Administrator
From: Uppsala
Registered: 2015-11-03
Posts: 1,012

Re: Issue: compile openmolcas with NECI library

It might be some mismatch in the compilers. Try https://gitlab.com/Molcas/OpenMolcas/-/ … lelization

Offline

#3 2020-04-27 13:01:11

nikolay
Member
From: Stuttgart
Registered: 2016-03-21
Posts: 54

Re: Issue: compile openmolcas with NECI library

Your output looks strange, as you define FC=mpiifort, but get error from gnu compiler /bin/f95 with include directory /opt/intel/compilers_and_libraries_2020.0.166/linux/mpi/intel64/include/gfortran/4.8.0 and -fopenmp option.
Try to run cmake in a clean directory, as it sometimes gets confused when reconfigured in a dirty directory.
I would define CC and FC before cmake and make:

CC=mpiicc FC=mpiifort cmake -DNECI=ON -DMPI=ON -DGA=ON -DOPENMP=ON
CC=mpiicc FC=mpiifort make -j

Offline

Board footer

Powered by FluxBB 1.5.11

Last refresh: Today 00:27:32