Fortran compilation  [SOLVED]

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
vdananic
Posts: 3
Joined: Fri Apr 02, 2021 2:27 pm

Fortran compilation  [SOLVED]

Post by vdananic » Fri Apr 02, 2021 2:43 pm

Dear all,
I am struggling with the compilation of abinit.
Architecture: x86_64
gcc version: 10.2.1 20210130 (Mageia 10.2.1-0.20210130.1.mga8)

After successful execution of ./configure, the fallback script ./build-abinit-fallbacks.sh
persistently ends with the messages such as:

mpif90 -I. -g -O2 -I/home/vladimir/abinit-9.4.0/fallbacks/install_fb/gnu/10.2/hdf5/1.10.6/include -I/home/vladimir/abinit-9.4.0/fallbacks/install_fb/gnu/10.2/netcdf4/4.6.3/include -c -o netcdf4.o ../../fortran/netcdf4.f90
netcdf4_func.f90:730:75:

Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/REAL(8)).
netcdf4_func.f90:720:75:
etc.etc.

I suppose I should somewhere somehow pass the option -fallow-argument-mismatch, but after
numerous tries I didn't figure out where and how I should pass this option to mpif90.

Thank you.

User avatar
admin
Site Admin
Posts: 33
Joined: Thu Sep 17, 2009 9:49 am

Re: Fortran compilation

Post by admin » Fri Apr 02, 2021 4:25 pm

Hi,

already solved on forum :

viewtopic.php?f=2&t=5205

use FCFLAGS_EXTRA

Locked