Abinit 6.6.1 problem compiling
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.
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.
Abinit 6.6.1 problem compiling
I'm having an issue compiling abinit 6.6.1 in parallel, and I was able to compile it ,but there are two errors during the step of make . I've been trying to sole it for a while and cannot seem to get anywhere with it.
I have run configure like so :
./configure --prefix="/data/gcy/abinit" --with-mpi-prefix="/export/mpi/" --enable-mpi
And MPI from the configure log :
checking whether MPI is usable... no
configure: WARNING: MPI support is broken!
configure: enabling MPI I/O support
checking whether to build MPI code... yes
checking whether to build MPI I/O code... yes
checking whether to build MPI time tracing code... no
checking which level of MPI is supported by the Fortran compiler... none
checking whether to activate GPU support... no
checking for the requested transferable I/O support... etsf_io
checking netcdf.h usability... no
checking netcdf.h presence... no
checking for netcdf.h... no
checking for library containing nc_open... no
checking for Fortran module includes... unknown
configure: WARNING: falling back to internal netcdf version
configure: WARNING: ETSF_IO requires missing NetCDF support
configure: WARNING: falling back to internal etsf_io version
checking for the actual transferable I/O support... netcdf-fallback+etsf_io-fallback
checking for the requested timer support... abinit
checking for the actual timer support... abinit
checking for the requested linear algebra support... netlib
checking for library containing blas... no
checking for library containing lapack... no
When I run :
make
gfortran -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -ffree-form -J/data/gcy/abinit-6.6.1/src/mods -O2 -mtune=native -march=native -mfpmath=sse -g -ffree-line-length-none -Wstrict-aliasing=2 -c -o m_build_info.o m_build_info.F90
../../config.h:575:2: error: #error "HAVE_MPI1 and HAVE_MPI2 are both undefined"
make[3]: *** [m_build_info.o] Error 1
make[3]: Leaving directory `/data/gcy/abinit-6.6.1/src/16_hideleave'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data/gcy/abinit-6.6.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
It failed because of two errors.
I'm not sure what the problem is ,and I don't know how I do . Has anyone seen this or can offer some advice?
Thanks for taking the time to read.
Paul
I have run configure like so :
./configure --prefix="/data/gcy/abinit" --with-mpi-prefix="/export/mpi/" --enable-mpi
And MPI from the configure log :
checking whether MPI is usable... no
configure: WARNING: MPI support is broken!
configure: enabling MPI I/O support
checking whether to build MPI code... yes
checking whether to build MPI I/O code... yes
checking whether to build MPI time tracing code... no
checking which level of MPI is supported by the Fortran compiler... none
checking whether to activate GPU support... no
checking for the requested transferable I/O support... etsf_io
checking netcdf.h usability... no
checking netcdf.h presence... no
checking for netcdf.h... no
checking for library containing nc_open... no
checking for Fortran module includes... unknown
configure: WARNING: falling back to internal netcdf version
configure: WARNING: ETSF_IO requires missing NetCDF support
configure: WARNING: falling back to internal etsf_io version
checking for the actual transferable I/O support... netcdf-fallback+etsf_io-fallback
checking for the requested timer support... abinit
checking for the actual timer support... abinit
checking for the requested linear algebra support... netlib
checking for library containing blas... no
checking for library containing lapack... no
When I run :
make
gfortran -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -ffree-form -J/data/gcy/abinit-6.6.1/src/mods -O2 -mtune=native -march=native -mfpmath=sse -g -ffree-line-length-none -Wstrict-aliasing=2 -c -o m_build_info.o m_build_info.F90
../../config.h:575:2: error: #error "HAVE_MPI1 and HAVE_MPI2 are both undefined"
make[3]: *** [m_build_info.o] Error 1
make[3]: Leaving directory `/data/gcy/abinit-6.6.1/src/16_hideleave'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/data/gcy/abinit-6.6.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
It failed because of two errors.
I'm not sure what the problem is ,and I don't know how I do . Has anyone seen this or can offer some advice?
Thanks for taking the time to read.
Paul
Re: Abinit 6.6.1 problem compiling
There is something wrong with your MPI implementation, otherwise the build system of Abinit would not report that it is not usable. The configuration step passes because you forced the build system to enable MPI support, and thus it considers that you know what you're doing.
To get more insight into your problem, you have to look at the config.log file. There is obviously a "failed program" that will give you useful hints about why MPI is not working.
In any case, please make sure LD_LIBRARY_PATH is properly set. For details, see e.g.:
http://forum.abinit.org/viewtopic.php?f=3&t=963&p=3105&hilit=ld_library_path#p3105
To get more insight into your problem, you have to look at the config.log file. There is obviously a "failed program" that will give you useful hints about why MPI is not working.
In any case, please make sure LD_LIBRARY_PATH is properly set. For details, see e.g.:
http://forum.abinit.org/viewtopic.php?f=3&t=963&p=3105&hilit=ld_library_path#p3105
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: Abinit 6.6.1 problem compiling
Hi Pouillon:
I have rechecked the problem of LD_LIBRARY_PATH, and make sure that it is ok, but the problem is still the same.
And this is my config.log file.
I have rechecked the problem of LD_LIBRARY_PATH, and make sure that it is ok, but the problem is still the same.
And this is my config.log file.
- Attachments
-
- config.log
- (130.24 KiB) Downloaded 286 times
Re: Abinit 6.6.1 problem compiling
Hello,
First of all, LAM is no longer tested / supported
configure tries to find mpicc and mpif90
What was there in the /export/mpi/lam/bin/ as "programs" ?
regards
jmb
First of all, LAM is no longer tested / supported
configure:8041: parsing command-line options
configure:9115: Initializing MPI support
configure:9119: looking for MPI in /export/mpi/lam/bin/
configure:9152: checking for a MPI C compiler
configure:9159: result: none found
configure:9166: checking for a MPI C++ compiler
configure:9176: result: none found
configure:9183: checking for a MPI Fortran compiler
configure:9190: result: none found
configure:9197: checking for a MPI runner
configure:9210: result: none found
configure:9563: GPU support disabled from command-line
configure tries to find mpicc and mpif90
What was there in the /export/mpi/lam/bin/ as "programs" ?
regards
jmb
------
Jean-Michel Beuken
Computer Scientist
Jean-Michel Beuken
Computer Scientist
Re: Abinit 6.6.1 problem compiling
You should configure with:
but it's not possible to tell whether it will work, as LAM is not supported anymore. You might also have to force --with-mpi-level=1.
I also remind you that Abinit 6.6.3 contains many bugfixes wrt 6.6.1.
Code: Select all
../configure --with-mpi-prefix=/export/mpi/lam
but it's not possible to tell whether it will work, as LAM is not supported anymore. You might also have to force --with-mpi-level=1.
I also remind you that Abinit 6.6.3 contains many bugfixes wrt 6.6.1.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain
Re: Abinit 6.6.1 problem compiling
Pouillon:
Thanks very much. I install openmpi again and choose the abinit-6.8.1 and it does work now. Thanks again!
Thanks very much. I install openmpi again and choose the abinit-6.8.1 and it does work now. Thanks again!