-
Notifications
You must be signed in to change notification settings - Fork 28
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
Comments
thanks @sidersc ! we'll work this into our next release of the code |
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:
I am not a fortran expert, but the line did look quite odd. There it is compiling with gcc4.4.7 |
@kslong your standard error confuses me. it looks like you're compiling with @kcadyper @inpolonsky can we address this error before tagging the new release? please and thanks |
Were you able to find sort of a fix to make it work on Mac laptop? |
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
The text was updated successfully, but these errors were encountered: