Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCC8 breaks LBLRTM/LNFL #9

Open
sidersc opened this issue Jan 15, 2021 · 4 comments
Open

GCC8 breaks LBLRTM/LNFL #9

sidersc opened this issue Jan 15, 2021 · 4 comments

Comments

@sidersc
Copy link

sidersc commented Jan 15, 2021

Couldn't build on a fresh Ubuntu 20.04 install. Make errors about number of arguments not matching. Track this down to a new "feature" on GCC8 which now treats that as an error. Adding the flag -std=legacy to makefile.common on both LBLRTM and LNFL allowed them to build to completion.

Corrected sections in makefile.common should read:

##############################################################

linux using gfortran and double precision

##############################################################

linuxGNUdbl:
${MAKE} -f ${MAKEFILE} all P_TYPE=dbl FC_TYPE=gnu PLTFRM=linux
FC=gfortran
FCFLAG="-fdefault-integer-8 -fdefault-real-8 -frecord-marker=4 -std=legacy"
UTIL_FILE=util_gfortran.f90

##############################################################

linux using gfortran and single precisions

##############################################################

linuxGNUsgl:
${MAKE} -f ${MAKEFILE} all P_TYPE=sgl FC_TYPE=gnu PLTFRM=linux
FC=gfortran
FCFLAG="-frecord-marker=4 -std=legacy"
UTIL_FILE=util_gfortran.f90

@pernak18
Copy link
Member

thanks @sidersc ! we'll work this into our next release of the code

@kslong
Copy link

kslong commented Jan 23, 2021

I have the same problem on OSX running gfortran 9.3.0, but the fix suggested does not work there for reasons which are unclear to me.

On linux the suggestions above worked to eliminate the first problem, but I get compile errors:

The executable will be:
../lblrtm_v12.11_linux_intel_dbl

make in progress ...

../src/lblrtm.f90(5187): error #5082: Syntax error, found '//' when expecting one of: <END-OF-STATEMENT> ;
     &                //'SUM EXCEEDS SUM OF HITRAN RATIOS'
----------------------^
../src/lblrtm.f90(5186): error #6899: First non-blank character in a character type format specifier must be a left parenthesis.   ['ISOTPL_AMNT NOT PROPERLY SPECIFIED IN PATH]
                  STOP 'ISOTPL_AMNT NOT PROPERLY SPECIFIED IN PATH; ' &
------------------------^
compilation aborted for ../src/lblrtm.f90 (code 1)
make[1]: *** [lblrtm_v12.11_linux_intel_dbl.obj/lblrtm.o] Error 1
make: *** [linuxINTELdbl] Error 2

I am not a fortran expert, but the line did look quite odd. There it is compiling with gcc4.4.7

@pernak18
Copy link
Member

@kslong your standard error confuses me. it looks like you're compiling with ifort, no? still a build error, nonetheless. we'll take a look.

@kcadyper @inpolonsky can we address this error before tagging the new release? please and thanks

@aayushgambhir21
Copy link

I have the same problem on OSX running gfortran 9.3.0, but the fix suggested does not work there for reasons which are unclear to me.

On linux the suggestions above worked to eliminate the first problem, but I get compile errors:

The executable will be:
../lblrtm_v12.11_linux_intel_dbl

make in progress ...

../src/lblrtm.f90(5187): error #5082: Syntax error, found '//' when expecting one of: <END-OF-STATEMENT> ;
     &                //'SUM EXCEEDS SUM OF HITRAN RATIOS'
----------------------^
../src/lblrtm.f90(5186): error #6899: First non-blank character in a character type format specifier must be a left parenthesis.   ['ISOTPL_AMNT NOT PROPERLY SPECIFIED IN PATH]
                  STOP 'ISOTPL_AMNT NOT PROPERLY SPECIFIED IN PATH; ' &
------------------------^
compilation aborted for ../src/lblrtm.f90 (code 1)
make[1]: *** [lblrtm_v12.11_linux_intel_dbl.obj/lblrtm.o] Error 1
make: *** [linuxINTELdbl] Error 2

I am not a fortran expert, but the line did look quite odd. There it is compiling with gcc4.4.7

Were you able to find sort of a fix to make it work on Mac laptop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants