-
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
COMPILATION ERROR [make -j] #209
Comments
I removed -j from Make and made a try. The result is (for make): [ 8%] Built target generate-type-incs |
CMAKE OUTPUT -- ecbuild 3.0.0 /home/21cl91p01/GCHP/ESMA_cmake/ecbuild/cmake -- Tests have been disabled CMake Warning at ESMA_cmake/ecbuild/cmake/ecbuild_log.cmake:158 (message): Some code contains calls to external procedures which CMake Warning at ESMA_cmake/ecbuild/cmake/ecbuild_log.cmake:158 (message): The handling of a BOZ literal constant has been reworked -- Performing Test FORTRAN_COMPILER_SUPPORTS_ASSUMED_TYPE -- [gchp_ctm] (13.0.0) [a82afe3] Some code contains calls to external procedures which CMake Warning at ESMA_cmake/ecbuild/cmake/ecbuild_log.cmake:158 (message): The handling of a BOZ literal constant has been reworked -- Performing Test SUPPORT_FOR_ASSUMED_TYPE -- [MAPL] (2.2.7)HEMCO 3.0.0
|
Hi @gopikrishnangs44, Could you in share I have a feeling the issue is a misconfigured environment (e.g., incompatible compiler or a mismatch of compiler + libraries). The CMakeCache.txt has the details we need to take a closer look. Could you also tell me your compiler version and MPI version? |
Attaching my build log and Cmakecache.txt Libraries used: |
Thanks @gopikrishnangs44. For the build log, I actually meant the console output from when you run make > build_log.txt and upload the resulting One thing that jumps out right away is the version number. It looks like the code you're using is 13.0.0. At the top of this thread you mention 13.3.4 though. Did you do
to checkout GEOS-Chem 13.3.4? |
@LiamBindle I have done this. updated to the latest version. Still there is a make error. I am uploading the log file here. |
@gopikrishnangs44 Sorry I had a typo in my snippet, could you do make &> build_log.txt that way the errors will show up in the build log. |
I am attaching the build log |
It looks like there is a problem with your NetCDF-Fortran installation. Specifically, the netcdf Fortran module at Can you try the following command?
This should tell you what Fortran module version the file is. If it doesn't say something like
then it seems like there is something wrong with your netcdf installation. |
Thanks @LiamBindle. It was netcdf error. So I have built netcdf from source and tried re-compiling the model. Libraries used: netcdf-c-4.7.3 Now the CMake command in build directory gives the following error. -- The Fortran compiler identification is GNU 4.8.5 -- Found Git: /usr/bin/git (found version "1.8.3.1") CMake Error at ESMA_cmake/GNU.cmake:2 (message): I have loaded gcc/8.3.0 but still GNU recognises as 4.3. netcdf's were built using gcc 8.3.0. Regards, |
The compilers are selected according to the You can find your compiler version with $ gfortran --version and the path to your compiler with $ which gfortran First, check that You can do $ export CC=gcc
$ export CXX=g++
$ export FC=gfortran to set the |
Thank you @LiamBindle CMake is built successfully now. But make still have some error. I am attaching the make log and cmake file for your reference. ESMF |
I had used gcc 10 to build ESMF before. But now I rebuild it using 8.3.0. And I repeated the cmake and make commands and the executables were build successfully. But now the error is: [21cl91p01@login02 build]$ ./gchpWARNING: There was an error initializing an OpenFabrics device. Local host: login02
|
@gopikrishnangs44 Could you clarify what commands you're running and what error message you're getting? If you use GitHub's code formatting, and upload all the necessary log files, it makes it easier for me to understand where you have gotten to. If I understand correct, you tried $ ./gchp which gave the error
Is that right? If so, you need to run the GCHP executable in a run directory. A run directory has the necessary configuration files, including logging.yml. Please see Creating a Run Directory and Running GCHP. |
Dear @LiamBindle Our HPC is down for maintenance at the moment. Will make sure to follow up in 2 days. I have done exactly what you wrote in the previous comment. But I ran the executable in the build directory. I will copy the executable to a run directory and will let you know asap. It will be of great help if you let me know what all log files should I upload if there is any more error. Thanks for the timely response |
Dear @LiamBindle I have made the run directory. I have done cmake . -DRUNDIR=/home/21cl91p01/gchp_merra2_fullchem Please find the run log. There is some MPI issues. Thanks. |
@gopikrishnangs44 It looks like this is a configuration error. Did you run |
Dear @LiamBindle, Thank you for the suggestion. Attaching the run log. |
Hi @gopikrishnangs44, the error in the run log is The top of your log file has this:
This indicates you are using 1 core. You need to use at least 6 cores to run GCHP. Did you remember |
Dear @lizziel , This is the SBATCH script Output log |
This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days it will be closed. You can add the "never stale" tag to prevent the Stale bot from closing this issue. |
Closing due to inactivity |
I am trying to compile GCHP. Successfully done until 'Configure your build (Cmake)'.
Compilation (make -j) gives the following error:
[ 0%] Built target registry
[ 2%] Built target generate-template-incs
[ 6%] Built target link_target
[ 10%] Built target generate-type-incs
[ 10%] Building Fortran object src/fms_r8/CMakeFiles/fms_r8.dir/mpp/mpp_parameter.F90.o
/home/21cl91p01/Code.GCHP/src/FMS/mpp/mpp_parameter.F90:100:42:
100 | integer(LONG_KIND), parameter :: DOMAIN_ID_BASE=Z'0000000100000000' ! Workaround for 64bit init problem
| 1
Error: BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function [see ‘-fno-allow-invalid-boz’]
/home/21cl91p01/Code.GCHP/src/FMS/mpp/mpp_parameter.F90:34:49:
34 | public :: AGRID, GLOBAL, CYCLIC, DOMAIN_ID_BASE, CENTER, CORNER
| 1
Error: Symbol ‘domain_id_base’ at (1) has no IMPLICIT type
make[2]: *** [src/fms_r8/CMakeFiles/fms_r8.dir/mpp/mpp_parameter.F90.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 10%] Building Fortran object src/fms_r8/CMakeFiles/fms_r8.dir/constants/constants.F90.o
make[1]: *** [src/fms_r8/CMakeFiles/fms_r8.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 18%] Built target gftl-shared
make: *** [all] Error 2
Please help in the regard.
Thanks
The text was updated successfully, but these errors were encountered: