[Solved] Compilation error for abinit 6.12.3 on m_xmpi.F90

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
lumbrius
Posts: 6
Joined: Tue Jan 10, 2012 3:11 pm

[Solved] Compilation error for abinit 6.12.3 on m_xmpi.F90

Post by lumbrius » Thu May 24, 2012 3:40 pm

Hello!
I get following error message as result of compilation:

Code: Select all

Making all in 12_hide_mpi
make[3]: Entering directory `/home2/fian1/tikhonov/abinit-6.12.3/src/12_hide_mpi'
mpif90 -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -I/home2/fian1/tikhonov/abinit-6.12.3/fallbacks/exports/include   -free -module /home2/fian1/tikhonov/abinit-6.12.3/src/mods -O2 -xHost -g -extend-source -vec-report0 -noaltparam -nofpscomp  -c -o m_xmpi.o m_xmpi.F90
m_xmpi.F90(1674): error #6633: The type of the actual argument differs from the type of the dummy argument.   [BLOCK_DISPL]
 call MPI_TYPE_STRUCT(ncount,block_length,block_displ,block_type,new_type,mpi_err)
------------------------------------------^
compilation aborted for m_xmpi.F90 (code 1)
make[3]: *** [m_xmpi.o] Error 1
make[3]: Leaving directory `/home2/fian1/tikhonov/abinit-6.12.3/src/12_hide_mpi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home2/fian1/tikhonov/abinit-6.12.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home2/fian1/tikhonov/abinit-6.12.3'
make: *** [all] Error 2


MPI version is

MPICH Version: 1.2.7
MPICH Release date: $Date: 2005/06/22 16:33:49$
MPICH Patches applied: none
MPICH configure: --with-device=ch_gen2 --with-arch=LINUX -prefix=/opt/mvapich-1.2rc1 --with-romio --enable-sharedlib --without-mpe -lib=-L/usr/lib64 -Wl,-rpath=/usr/lib64 -libverbs -libumad -lpthread
MPICH Device: ch_gen2


configure parameters are

CXX=mpicxx CC=mpicc FC=mpif90 ./configure --enable-mpi --with-mpi-libs="-L/usr/lib64 -libverbs -libumad -lpthread"


I guess that problem is that configure tells me

checking whether the MPI library supports MPI_CREATE_TYPE_STRUCT... no


But I have no idea how to solve it... please help :)

lumbrius
Posts: 6
Joined: Tue Jan 10, 2012 3:11 pm

Re: [Solved] Compilation error for abinit 6.12.3 on m_xmpi.F

Post by lumbrius » Thu May 24, 2012 8:49 pm

Solved by adding --disable-mpi-io to configure options

Locked