Using the following configure.ac file:
Code: Select all
enable_mpi="yes"
enable_mpi_io="yes"
enable_64bit_flags="yes"
with_mpi_prefix="/usr/lib/openmpi/"
AR=ar
FC="mpif90"
CC="mpicc"
CXX="mpicxx"
enable_optim="safe"
enable_debug="yes"
enable_clib="yes"
with_fft_flavor="fftw3"
with_dft_flavor="atompaw+libxc"
with-trio-flavor="netcdf+etsf_io"
with-libxc-incs="-I/home/sponce/local/libxc-rev10384/include/"
with-libxc-libs="-L/home/sponce/local/libxc-rev10384/lib"
with_netcdf_incs="-I/home/sponce/local/include/"
with_netcdf_libs="-L/home/sponce/local/lib -lnetcdf -lnetcdff"
enable_test_timeout="yes"
enable_gw_dpc="yes"
enable_gui="no"
CFLAGS="-g -O1"
CXXFLAGS="-g -O1"
FCFLAGS="-g -O1 -ffree-line-length-none"
I got no problem during the configure:
==============================================================================
=== Final remarks ===
==============================================================================
Summary of important options:
* C compiler : gnu version 4.7
* Fortran compiler: gnu version 4.7
* architecture : unknown unknown (64 bits)
* debugging : yes
* optimizations : safe
* OpenMP enabled : no (collapse: ignored)
* MPI enabled : yes
* MPI-IO enabled : yes
* GPU enabled : no (none)
* TRIO flavor = netcdf+etsf_io-fallback
* TIMER flavor = abinit (libs: ignored)
* LINALG flavor = netlib (libs: auto-detected)
* ALGO flavor = none (libs: ignored)
* FFT flavor = fftw3 (libs: auto-detected)
* MATH flavor = none (libs: ignored)
* DFT flavor = libxc-fallback+atompaw-fallback
but while making I got:
Code: Select all
mpif90 -m64 -DHAVE_CONFIG_H -I. -I../../../src/01_interfaces_ext -I../.. -I../../src/incs -I../../../src/incs -I/home/sponce/program/7.3.2-private/build/fallbacks/exports/include -ffree-form -J/home/sponce/program/7.3.2-private/build/src/mods -g -O1 -ffree-line-length-none -c -o m_iso_c_bindings.o ../../../src/01_interfaces_ext/m_iso_c_bindings.F90
In file included from ../../../src/01_interfaces_ext/m_iso_c_bindings.F90:28:0:
../../config.h:669:2: error: #error "HAVE_MPI1 and HAVE_MPI2 are both undefined"
make[3]: *** [m_iso_c_bindings.o] Error 1
make[3]: Leaving directory `/home/sponce/program/7.3.2-private/build/src/01_interfaces_ext'
Any ideas?
Cheers !
Samuel