Error in compiling 8.10.3 (m_polynomial_coeff)  [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
OlegBoev
Posts: 2
Joined: Mon Dec 09, 2019 9:23 am

Error in compiling 8.10.3 (m_polynomial_coeff)

Post by OlegBoev » Tue Dec 10, 2019 2:04 pm

Hello,

As a newbie I was ready to meet troubles while starting usage of the ABINIT, but not like that...

I run UBUNTU 18.04, ABINIT 8.10.3 (downloaded from abinit.org), compiler - GNU Fortran (Ubuntu 9.2.1-17ubuntu1~18.04.1) 9.2.1 20191102. Below you see part of output (with the command line and the error messages) for /src/78_effpot/m_polynomial_coeff.F90.

===============================================================
gfortran -m64 -DHAVE_CONFIG_H -I. -I../../../src/78_effpot -I../.. -I../../src/77_ddb -I../../../src/77_ddb -I../../src/32_util -I../../../src/32_util -I../../src/44_abitools -I../../../src/44_abitools -I../../src/27_toolbox_oop -I../../../src/27_toolbox_oop -I../../src/44_abitypes_defs -I../../../src/44_abitypes_defs -I../../src/72_response -I../../../src/72_response -I../../src/16_hideleave -I../../../src/16_hideleave -I../../src/42_parser -I../../../src/42_parser -I../../src/55_abiutil -I../../../src/55_abiutil -I../../src/41_geometry -I../../../src/41_geometry -I../../src/45_geomoptim -I../../../src/45_geomoptim -I../../src/12_hide_mpi -I../../../src/12_hide_mpi -I../../src/10_defs -I../../../src/10_defs -I../../src/14_hidewrite -I../../../src/14_hidewrite -I../../src/57_iovars -I../../../src/57_iovars -I../../src/28_numeric_noabirule -I../../../src/28_numeric_noabirule -I../../src/incs -I../../../src/incs -I/home/ovb/abinit-8.10.3/LAMBDA/fallbacks/exports/include -ffree-form -J/home/ovb/abinit-8.10.3/LAMBDA/src/mods -O2 -mtune=native -march=native -m64 -g -ffree-line-length-none -fopenmp -c -o m_polynomial_coeff.o ../../../src/78_effpot/m_polynomial_coeff.F90
../../../src/78_effpot/m_polynomial_coeff.F90:2883:67:

2800 | do icoeff1=icoeff,ncoeff+nstr
| 2
......
2883 | & index_coeff,list_combination,icoeff1,max_power_strain,&
| 1
Error: Variable ‘icoeff1’ at (1) not definable inside loop beginning at (2) as INTENT(INOUT) argument to subroutine ‘computecombinationfromlist’
../../../src/78_effpot/m_polynomial_coeff.F90:2643:26:

2553 | do icoeff1=icoeff,ncoeff+nstr
| 2
......
2643 | & icoeff1,icoeff_tot,natom,ncoeff,nstr,ncoeff_out,nrpt,nsym,power_disp+1,&
| 1
Error: Variable ‘icoeff1’ at (1) not definable inside loop beginning at (2) as INTENT(INOUT) argument to subroutine ‘computenorder’
Makefile:1021: recipe for target 'm_polynomial_coeff.o' failed
make[3]: *** [m_polynomial_coeff.o] Error 1
==========================================================================

It is very strange as far as so many people work with this code but looking through the source I have to "agree with compiler": in both cases the variable ‘icoeff1’ is a "do-variable" but supposed to be changed by subroutine. If so the loop statement can be easily modified to avoid this error, let say like
----------------------
icoeff1 = icoeff; do while ( icoeff1 <= ncoeff+nstr )
....
icoeff1 = icoeff1+1; end do
----------------------

Anyway, is anything wrong with 'my compiler'?

Thank you in advance,
Oleg Boev

User avatar
jbeuken
Posts: 365
Joined: Tue Aug 18, 2009 9:24 pm
Contact:

Re: Error in compiling 8.10.3 (m_polynomial_coeff)  [SOLVED]

Post by jbeuken » Sat Dec 14, 2019 11:07 pm

Hi Oleg,
Version 8.10.3 has not been tested with gnu gfortran 9.2.0 on our testfarm.
I just tested it: it's OK....
But, on a ubuntu 18.04 with the gfortran version 9.2.1 of ubuntu, the compilation fails as you observed...
With the same configuration, a development version 8.11.13 of ABINIT passes the compilation under ubuntu with a 9.2.1....
So, I guess the problem with icoeff1 has been fixed....

I don't know the difference between the official version of GNU 9.2 and version 9.2.1 in ubuntu 18.04
------
Jean-Michel Beuken
Computer Scientist

OlegBoev
Posts: 2
Joined: Mon Dec 09, 2019 9:23 am

Re: Error in compiling 8.10.3 (m_polynomial_coeff)

Post by OlegBoev » Mon Dec 16, 2019 2:51 pm

Hi Jean-Michel,
Thank you for your reply. Well, I think, it has been fixed.
Regards,
Oleg

AD8DF
Posts: 1
Joined: Thu Mar 05, 2020 1:26 am

Re: Error in compiling 8.10.3 (m_polynomial_coeff)

Post by AD8DF » Thu Mar 05, 2020 1:38 am

I have this issue as well. Could someone please explain the fix, and/or what the problem actually was? I'd be happy to work off a different version, or apply any workarounds that might be necessary.

TheIdealis
Posts: 3
Joined: Mon Aug 12, 2019 1:00 pm

Re: Error in compiling 8.10.3 (m_polynomial_coeff)

Post by TheIdealis » Tue Mar 10, 2020 3:07 pm

Hi AD8DF,

I have the same issue under arch linux. I was able to compile abinit-8.10.2 after downgrading gcc, gcc-fortran and gcc-libs to version 8.3.0-1.

Hopefully the new version will be released soon.

Regards,
Thomas

danielt
Posts: 1
Joined: Tue Mar 24, 2020 7:37 am

Re: Error in compiling 8.10.3 (m_polynomial_coeff)

Post by danielt » Tue Mar 24, 2020 7:40 am

I'm having the same problem. I running Clear linux with gcc 9.3. Is there any hope for me to get it working any soon?

Thanks for the help.

Rashid Khan
Posts: 1
Joined: Sun Mar 29, 2020 7:35 am

Re: Error in compiling 8.10.3 (m_polynomial_coeff)

Post by Rashid Khan » Sun Mar 29, 2020 2:01 pm

Dear Sir,
I am a new user of ABINIT. I am using ubuntu 18.04.3. I need a recipe to compile ABINIT 8.10.3 on ubuntu -8.10.3. I followed instructions given in this video "http://www.youtube.com/watch?v=DppLQ-KQA68".but it is not working in my system.
Thanks in advance.
==============================================================================
From:
Mr. Rashid Khan

PHZ
Posts: 1
Joined: Tue Feb 12, 2019 11:49 am

Re: Error in compiling 8.10.3 (m_polynomial_coeff)

Post by PHZ » Wed Apr 22, 2020 5:48 pm

Hello,
I have the same problem when trying to compile abinit-8.10.3 with gcc-9.3.0 within cygwin. What would you recommend to do ?
How can I get abinit version 8.11.13 ?
Or should I rather go for version 9.0.3 ?
Or should I replace the abinit-8.10.3/src/78_effpot/m_polynomial_coeff.F90 file in my computer by
https://raw.githubusercontent.com/abini ... _coeff.F90 ?

Many thanks for your help - and to the developers for this great package which enables us to work even during 'covid19 confinement'.
Kind regards
Philippe

Locked