noitul7
December 16, 2019, 6:39am
1
Hello everyone,
I’m trying to compile SMOKEv4.7 with gfortran 9.2.1
I had the same error below and I solved it.
Hello everyone
I am trying to compile smokev4.7 on linux platform (ubuntu 16.04 x64) following the instructions at https://www.cmascenter.org/smoke/documentation/4.7/html/ch12.html .
When I execute make command, I get an error message like below (I’m not good at programming) and I don’t understand what happened.
Help me solve this problem.
I appreciate everyone’s help.
cd /home/hdong/SMOKEv4.7/subsys/smoke/src/../Linux2_x86_64gfort; gfortran -I/home/hdong/SMOKEv4.7/subsys/ioapi/ioapi/fixed_…
But after that, I have another error from gentpro.f
cd /media/data/SMOKEv4.7/subsys/smoke/src/…/Linux2_x86_64; gfortran -I/media/data/SMOKEv4.7/subsys/ioapi/ioapi/fixed_src -I/media/data/SMOKEv4.7/subsys/smoke/src/inc -I/media/data/SMOKEv4.7/subsys/ioapi/Linux2_x86_64 -ffixed-line-length-132 -fno-backslash -O3 -ffast-math -funroll-loops -m64 -DAUTO_ARRAYS=1 -DF90=1 -DFLDMN=1 -DFSTR_L=int -DIOAPI_NO_STDOUT=1 -DNEED_ARGS=1 -c /media/data/SMOKEv4.7/subsys/smoke/src/emutil/gentpro.f
/media/data/SMOKEv4.7/subsys/smoke/src/emutil/gentpro.f:1663:25:
1663 | & ((‘,’, PROF_MON( S,NP )), NP = 1,12 )
| 1
Error: Expected a right parenthesis in expression at (1)
/media/data/SMOKEv4.7/subsys/smoke/src/emutil/gentpro.f:1695:34:
1695 | & ( (‘,’, PROF_DAY( S,NP ) ), NP = 1,31 )
| 1
Error: Expected a right parenthesis in expression at (1)
make: *** [Makefile:348: gentpro.o] Error 1
I think it might be related to 132 limitation, but I’m not sure.
Could you give any advice for solving this?
Thank you,
Sojin
bbaek
December 16, 2019, 12:31pm
2
It is a gfortran issue. I am planning to update the SMOKE to avoid this issue as well as GETPID gfortran issue. Here is the fix for the error you are having.
opened 09:46PM - 13 Dec 19 UTC
closed 08:44PM - 06 Jan 20 UTC
well, another gfortran specific issue...
/home/milias/work/air-pollution-modelling/SMOKE/installed/subsys/smoke/src/../Linux2_x86_64gfort; gfortran -I/home/milias/work/air-pollution-modelling/SMOKE/installed/subsys/ioapi/ioapi/fixed_src -I/home/milias/work/air-pollution-modelling/SMOKE/installed/subsys/smoke/src/inc -I/home/milias/work/air-pollution-modelling/SMOKE/installed/subsys/ioapi/Linux2_x86_64gfort -ffixed-line-length-132 -fno-backslash -O3 -ffast-math -funroll-loops -m64 -DAUTO_ARRAYS=1 -DF90=1 -DFLDMN=1 -DFSTR_L=int -DIOAPI_NO_STDOUT=1 -DNEED_ARGS=1...
committed 09:53PM - 13 Dec 19 UTC
Satisfy gfortran compilation - closes https://github.com/CEMPD/SMOKE/issues/31