-
Notifications
You must be signed in to change notification settings - Fork 654
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
GCC 14 leads to compile errors in WRF/WPS compilation #2047
Comments
@SettRaziel Which version of the WRF code have you tried? |
I did a recompile of 4.5.0. |
I do stand partially corrected. The errors regarding -Wimplicit-function-declaration are gone with the changes provided in #1823.
I now get around 80 errors like this:
The error is an incompatible pointer type, here long int* instead of char*. Sorry had my compiler language changed to german. If you need a complete log i would change the language, restart it and add the log in english. |
@SettRaziel Thanks for testing the latest version of the model. We will take a look at this issue very soon. |
@islas When you get a chance, can you review this report? |
Hej there.
I am maintaining a project to provide wrf/wps binaries for deployment in an ArchLinux environment.
Describe the bug
With the update to gcc 14 several new changes regarding compile flags were done.
These lead to a more restrict error handling since several flags that would only lead to warnings now lead to compile errors:
Looking on the changes with gcc 14 it seems they have change the flag: GCC 14
When compiling the wrf model now these new restriction lead to these compile errors, e.g.
To Reproduce
Steps to reproduce the behavior:
Testing environment is an ArchLinux VM with Linux Kernel 6.8.9.
Compiler is gcc/gfortran with version 14.1.1.
Current compile flags: Env. Variables
Additional parameter for compilation: 35 gfortran dm+sm
Precondition: Successful compilation of netcdf, netcdf-fortran, mpich, hdf5
Running my compile routines lead to a reproducible number of around 140 of these implicit compile errors.
Workaround
Adding to the compile flags: -Wimplicit-function-declaration (issue tracked in: wrf_archlinux)
Expected behavior
No implicit functions declaration throughout the code resolving the workaround to address these issues as warnings and not as errors with the flag which might lead to other side effects during the code compilation.
Additional context
Up to gcc/gfortran 13.2.2 these implicit declarations only lead to warnings, so up to that point the compilation runs successfully.
Are there plans to refactor the code base?
The text was updated successfully, but these errors were encountered: