[Solved] compilation problem
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.
[Solved] compilation problem
Hello Users
I am new to Abinit Program. I m trying to compile Abinit-6.2.3. on fedora I met with following error when I give command ../configure
make[3]: Entering directory `/root/Desktop/abinit-6.2.3/config/src/66_paw'
gfortran -DHAVE_CONFIG_H -I. -I../../../src/66_paw -I../.. -I../../src/incs -I../../../src/incs -ffree-form -J/root/Desktop/abinit-6.2.3/config/src/mods -I/root/Desktop/abinit-6.2.3/config/src/mods -O2 -march=pentium4 -mmmx -msse -msse2 -g -c -o indgrid.o ../../../src/66_paw/indgrid.F90
In file ../../../src/66_paw/indgrid.F90:120
esh.'
1
Error: Syntax error in argument list at (1)
make[3]: *** [indgrid.o] Error 1
make[3]: Leaving directory `/root/Desktop/abinit-6.2.3/config/src/66_paw'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Desktop/abinit-6.2.3/config/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/abinit-6.2.3/config'
make: *** [all] Error 2
Kindly help me out to solve this problem.
I am new to Abinit Program. I m trying to compile Abinit-6.2.3. on fedora I met with following error when I give command ../configure
make[3]: Entering directory `/root/Desktop/abinit-6.2.3/config/src/66_paw'
gfortran -DHAVE_CONFIG_H -I. -I../../../src/66_paw -I../.. -I../../src/incs -I../../../src/incs -ffree-form -J/root/Desktop/abinit-6.2.3/config/src/mods -I/root/Desktop/abinit-6.2.3/config/src/mods -O2 -march=pentium4 -mmmx -msse -msse2 -g -c -o indgrid.o ../../../src/66_paw/indgrid.F90
In file ../../../src/66_paw/indgrid.F90:120
esh.'
1
Error: Syntax error in argument list at (1)
make[3]: *** [indgrid.o] Error 1
make[3]: Leaving directory `/root/Desktop/abinit-6.2.3/config/src/66_paw'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Desktop/abinit-6.2.3/config/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/abinit-6.2.3/config'
make: *** [all] Error 2
Kindly help me out to solve this problem.
- Alain_Jacques
- Posts: 279
- Joined: Sat Aug 15, 2009 9:34 pm
- Location: Université catholique de Louvain - Belgium
Re: compilation problem
The error message is just in the middle of a call to MSG_ERROR - really a vintage function that shouldn't cause any concern. So the offending part probably comes earlier. You said you compiled on a fedora box. What's your gfortran version? Find it with a
Anything that's earlier than gfortran 4.2 is buggy and unsuitable for Abinit.
Cheers,
Alain
Code: Select all
gfortran -v
Anything that's earlier than gfortran 4.2 is buggy and unsuitable for Abinit.
Cheers,
Alain
Re: compilation problem
After typing gfortran -v its showing
gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)
Kindly suggest a remedy
gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)
Kindly suggest a remedy
Re: compilation problem
What happens if you remove the calls to MSG_ERROR in src/66_paw/indgrid.F90
!Check coatofin to make sure there are no zeros!
do ii=1,ubound(coatofin,1)
if (coatofin(ii)==0) then
MSG_ERROR('A zero was found in coatofin.') <<<< remove this line
MSG_ERROR('Check that the fine FFT mesh is finer in each dimension than the coarse FFT mesh.') <<<< and this one
stop
end if
end do
One should check the CPP preprocessed file but I guess that the macro, once expanded, exceeds the standard Fortran limit.
Cheers,
Matteo
!Check coatofin to make sure there are no zeros!
do ii=1,ubound(coatofin,1)
if (coatofin(ii)==0) then
MSG_ERROR('A zero was found in coatofin.') <<<< remove this line
MSG_ERROR('Check that the fine FFT mesh is finer in each dimension than the coarse FFT mesh.') <<<< and this one
stop
end if
end do
One should check the CPP preprocessed file but I guess that the macro, once expanded, exceeds the standard Fortran limit.
Cheers,
Matteo
Re: compilation problem
Thanks very much I m able to run the program
- Alain_Jacques
- Posts: 279
- Joined: Sat Aug 15, 2009 9:34 pm
- Location: Université catholique de Louvain - Belgium
Re: compilation problem
gfortran 4.1.2 is really outdated and buggy. Abinit is routinely tested against version 4.3, 4.4 and 4.5. Matteo suggestion may hep you compile despite this apparent gfortran 4.1 bug. I would suggest to install a new fortran compiler. There are several options to do that:
x build a new gcc/gfortan compiler after downloading the source code of gcc-4.4.5 from gcc.gnu.org. There are a few dependencies that should be fulfilled (gmp, mpfr, mpc ...). Nothing really very complicated but definitely takes some time.
x if you are eligible for free license Intel CC and Fortran compilers, dowload the latest 11.1.073 from http://www.intel.com website. Quite a huge download but an efficient compiler. When combined with MKL linear algebra libraries, it will probably produce the fastest binaries.
x I should push the latest Abinit production release binaries on http://www.etsf.eu/resources/software/etsf_software_repository But it will take a few days.
Alain
x build a new gcc/gfortan compiler after downloading the source code of gcc-4.4.5 from gcc.gnu.org. There are a few dependencies that should be fulfilled (gmp, mpfr, mpc ...). Nothing really very complicated but definitely takes some time.
x if you are eligible for free license Intel CC and Fortran compilers, dowload the latest 11.1.073 from http://www.intel.com website. Quite a huge download but an efficient compiler. When combined with MKL linear algebra libraries, it will probably produce the fastest binaries.
x I should push the latest Abinit production release binaries on http://www.etsf.eu/resources/software/etsf_software_repository But it will take a few days.
Alain