-
Notifications
You must be signed in to change notification settings - Fork 27
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
GCHP 14.1.1 Compilation Error #326
Comments
Hi @helpyuan, welcome to the GEOS-Chem community. The error you are getting is happening immediately after you start building.
Could you write out exactly what you are typing at the command line and where (which directory you are in) when configuring and building? |
Hi @lizziel, here are my steps:
These are all the operations I can currently run. When configuring and building, I am in the build directory. |
Hi @helpyuan, I have not been able to reproduce this and do not see anything obviously wrong in your CMakeCache.txt. In your reported steps Step 5 should be right after Step 1, but I assume that is what you did since otherwise checking out the tag would not work. To check if this is an environment issue or an issue in GCHP-specific libraries, could you download GEOS-Chem Classic 14.1.1 and try to build that using your same environment?
|
Hi @lizziel, I have followed your suggestions and carried out the relevant operations.
The environment for compilingGEOS-Chem Classic 14.1.1 is the same as when compiling GCHP 14.1.1, but compiling GEOS-Chem Classic 14.1.1 seems to have succeeded. How should I check the problem next? |
Hi @helpyuan, this is puzzling since the error in GCHP is happening when compiling the very first file, as if the basic usage of gfortran is broken, such as a space where there should not be one.
Here are a few thoughts:
|
Heads up I will be away until July 11th. |
Hi @lizziel, thank you for your suggestions. The results of my attempt are as follows:
In addition, I attempted to build GCHP-13.3.4 using gfortran-12.3.0 and encountered similar issues. |
Okay. First thing, GCC 13 does not like our model. We haven't figure it out yet, but it seemed like a compiler issue. Hopefully soon we can find a workaround. So, sticking with GCC 12 is a good idea. That said, your issue is more basic than that. Something...weird is going on with the options: [ 0%] Building Fortran object src/MAPL/shared/Constants/CMakeFiles/MAPL.constants.dir/InternalConstants.F90.o For some reason you are getting a semicolon in your build options, so Linux is seeing that as two different commands. Do you know what is setting that |
Thanks @helpyuan for the update! We can now close out this issue. Let us know if you encounter other problems. |
Name and Institution (Required)
Name: liumy
Institution: Chinese Academy of Meteorological Sciences
Confirm you have reviewed the following documentation
Description of your issue or question
Hi, I am a newcomer to GCHP and I am trying to install GCHP according to the tutorial (https://gchp.readthedocs.io/en/latest/user-guide/compiling.html#modify -Build settings). Now, I have created a new directory and run "CMake..", and the results are similar to the case in the tutorial, so I started running "make -j", but it gave me an error.
I have no clue about this error because every step I take is based on the tutorial. I hope to receive your help.
Please provide as much detail as possible. Always include the GCHP version number and any relevant configuration and log files.
Software:
GCHP v14.1.1
gcc 13.1.0
openmpi 4.1.5
esmf 8.3.0
netcdf 4.8.1
The relevant log files are as follows:
compiler_make.log.txt
compiler_make-j.log.txt
CMakeCache.txt
ecbuild.log
cmake.log.txt
The text was updated successfully, but these errors were encountered: