configure error on 7.3.3  [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
ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

configure error on 7.3.3

Post by ebousquet » Tue Jun 04, 2013 3:51 pm

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

User avatar
Alain_Jacques
Posts: 279
Joined: Sat Aug 15, 2009 9:34 pm
Location: Université catholique de Louvain - Belgium

Re: configure error on 7.3.3

Post by Alain_Jacques » Tue Jun 04, 2013 7:10 pm

Hi Eric,

Add config.log otherwise we are in the dark.

Kind regards,

Alain

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: configure error on 7.3.3

Post by ebousquet » Wed Jun 05, 2013 10:16 am

Oups, sorry, here is the config.log file,
Eric
Attachments
config.log
(92.36 KiB) Downloaded 934 times

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: configure error on 7.3.3

Post by pouillon » Wed Jun 05, 2013 10:36 am

Can you attach the following file as well?

Code: Select all

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

Thank you in advance.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: configure error on 7.3.3

Post by ebousquet » Wed Jun 05, 2013 11:00 am

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

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: configure error on 7.3.3  [SOLVED]

Post by pouillon » Thu Jun 06, 2013 1:20 pm

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.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

ebousquet
Posts: 469
Joined: Tue Apr 19, 2011 11:13 am
Location: University of Liege, Belgium

Re: configure error on 7.3.3

Post by ebousquet » Thu Jun 13, 2013 2:29 pm

OK, now it works by defining consistently FC, CC and CXX all together in the .ac file.
Thanks a lot,
Eric

marco.digennaro
Posts: 13
Joined: Thu Jun 16, 2016 8:47 am
Location: Bruxelles, Be
Contact:

Re: configure error on 7.3.3

Post by marco.digennaro » Mon Jul 04, 2016 4:29 pm

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
Attachments
config.log
(100.45 KiB) Downloaded 591 times
Marco Di Gennaro
Toyota Motor Europe (Be)

Jordan
Posts: 282
Joined: Tue May 07, 2013 9:47 am

Re: configure error on 7.3.3

Post by Jordan » Tue Jul 05, 2016 10:54 am

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

marco.digennaro
Posts: 13
Joined: Thu Jun 16, 2016 8:47 am
Location: Bruxelles, Be
Contact:

Re: configure error on 7.3.3

Post by marco.digennaro » Fri Aug 05, 2016 6:16 pm

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
Attachments
config.log
(104.74 KiB) Downloaded 553 times
Marco Di Gennaro
Toyota Motor Europe (Be)

dove99
Posts: 2
Joined: Tue Jul 18, 2017 5:03 am

Re: configure error on 7.3.3

Post by dove99 » Tue Jul 18, 2017 5:24 am

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
Attachments
config.log
(87.26 KiB) Downloaded 525 times

dove99
Posts: 2
Joined: Tue Jul 18, 2017 5:03 am

Re: configure error on 7.3.3

Post by dove99 » Tue Jul 18, 2017 5:28 am

Sorry, I fixed the problem. Wenge

Locked