Page 1 of 1

configure error on 7.3.3

Posted: Tue Jun 04, 2013 3:51 pm
by ebousquet
Dear everybody,

I've just downloaded the last 7.3.3 branch and with respect to the 7.3.2 I have the following error on .configure:

==============================================================================
=== Multicore architecture support ===
==============================================================================

checking whether to enable OpenMP support... no
checking whether to build MPI code... yes
checking whether the C compiler supports MPI... no
checking whether the C++ compiler supports MPI... no
checking whether the Fortran Compiler supports MPI... yes
checking whether MPI is usable... no
configure: error: MPI support is broken - please fix your config parameters and/or MPI installation

Everything looks fine with my openmpi config since the 7.3.2 and 7.2.2 compile without any problem.
What has changed wrt the previous 7.3.2 version such as the configure is now more "nervous"?
I'm running on ubuntu 13.04 and compiling with the gfortran and opempi coming from a lazy apt-get installation...

Thanks,
Eric

Re: configure error on 7.3.3

Posted: Tue Jun 04, 2013 7:10 pm
by Alain_Jacques
Hi Eric,

Add config.log otherwise we are in the dark.

Kind regards,

Alain

Re: configure error on 7.3.3

Posted: Wed Jun 05, 2013 10:16 am
by ebousquet
Oups, sorry, here is the config.log file,
Eric

Re: configure error on 7.3.3

Posted: Wed Jun 05, 2013 10:36 am
by pouillon
Can you attach the following file as well?

Code: Select all

/home/ebousq/.abinit/build/mater20.ac

Thank you in advance.

Re: configure error on 7.3.3

Posted: Wed Jun 05, 2013 11:00 am
by ebousquet
Here is what I have in the .ac file:

enable_64bit_flags="yes"
enable_optim="aggressive"
enable_mpi="yes"
enable_mpi_io="yes"
FC=mpif90


I've noticed that even with mpi_prefix there is the same problem.
I noticed that from the apt-get install the prefix location might sounds hill defined, i.e. executable in /usr/bin and libraries in /usr/lib/openmpi/.
Can it be a problem?
Note that only the 7.3.3 crashes with this .ac file.
Thanks,
Eric

Re: configure error on 7.3.3  [SOLVED]

Posted: Thu Jun 06, 2013 1:20 pm
by pouillon
MPI support in Abinit will work only if both the C and Fortran compilers support it.

Try adding CC=mpicc and CXX=mpic++ (or whatever) in your config file.

Re: configure error on 7.3.3

Posted: Thu Jun 13, 2013 2:29 pm
by ebousquet
OK, now it works by defining consistently FC, CC and CXX all together in the .ac file.
Thanks a lot,
Eric

Re: configure error on 7.3.3

Posted: Mon Jul 04, 2016 4:29 pm
by marco.digennaro
Dear everybody,

I keep having the same problem over and over again, as I try to install abinit on different machines (large clusters mainly).
Generally, is there a command to know which compiler a machine prefers?
Specifically I am installing ver8 on Zenobe with the following characteristic (copy and paste from previous versions/other machines/other posts)

CC=mpicc #"mpiicc -m64"
CXX=mpiicc #mpic++
FC=mpiF90 #mpiifort

are these three all and only the complier needed?

I attach my config.log file
thanks in advance
marco

Re: configure error on 7.3.3

Posted: Tue Jul 05, 2016 10:54 am
by Jordan
Dear Marco,

You should use at least intel15 on zenobe, the lastest version.
Use mpicc mpic++ and mpif90 (without caps). This should work just fine.
If you're still at ULG, ask Alex for my config file or his or even Eric.

BTW there is already several versions we compiled on Zenobe that you could use.

If you still have problems, wait for my visit next week ;)

Cheers

Jordan

Re: configure error on 7.3.3

Posted: Fri Aug 05, 2016 6:16 pm
by marco.digennaro
Dear everybody,

different machine, same problem. This is my file.ac:
====
prefix="/usr/lib/gcc"
enable_mpi="yes"
enable_mpi_io="yes"
with_mpi_prefix="/usr"
with_trio_flavor="netcdf+etsf_io"
with_netcdf_incs="-I/usr/include"
with_netcdf_libs="-L/usr/lib -lnetcdf -lnetcdff"
with_fft_flavor="fftw3"
with_fft_incs="-I/usr/include/"
with_fft_libs="-L/usr/lib/x86-64-linux-gnu/ -lfftw3 -lfftw3f"
with_linalg_flavor="atlas"
with_linalg_libs="-L/usr/lib64 -llapack -lf77blas -lcblas -latlas"
with_dft_flavor="atompaw+libxc"

enable_64bit_flags="yes"
enable_optim="aggressive"

FC=mpif90
CC=mpicc
CXX=mpiicc
===

In order to understand what I do, can you answer the following naive questions regarding the configure.ac file?

1)prefix=what should it be? is /usr/lib/ enough?
2) `module av` returns (for the mpi part):
impi/5.1.3.181-iccifort-2016.2.181-GCC-4.9.3-2.25
OpenMPI/1.8.8-iccifort-2016.2.181-GCC-4.9.3-2.25
I tried FC=mpiF90, FC=impi, FC=OpenMPI (don't know if the last 2 make sense)
3) Generally, is there a command to know which compiler a machine prefers? (same as in a previous post)

as usual, you can find my config.log attached.
It is abinit v8

sincerely yours

Re: configure error on 7.3.3

Posted: Tue Jul 18, 2017 5:24 am
by dove99
I have a similar error when I install abinit 8.2.2
configure: error: MPI support is broken - please fix your config parameters and/or MPI installation

Here is my config.log. However I don't have build/mater20.ac file.
Here is the command I used to configure:

./configure -enable-mpi -with-mpi-prefix=/usr -with-dft-flavor=libxc FC=/opt/rh/devtoolset-2/root/usr/bin/gfortran

Thanks, Wenge

Re: configure error on 7.3.3

Posted: Tue Jul 18, 2017 5:28 am
by dove99
Sorry, I fixed the problem. Wenge