Push notifications in your browser are not yet configured.
You are not logged in, you may not see all content and functionalities. If you have an account, please login .
failed to install INT2LM
After following the instructions to work on Laptop, I have installed all the necessary libraries. The compilation was successful for CCLM as cclm.exe file was created. But failed to compile INT2LM and CFU .
Please find below the failure report of compilation of INTL2M. It would be grateful to get support with this. As a beginner I would like start an initial training of CCLM on my laptop.
ajii@ajii-HP-Laptop-15-bw0xx:/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm$ make
compiling kind_parameters.f90
compiling data_epsctl.f90
compiling data_fields_in.f90
compiling data_fields_lm.f90
compiling data_grid_in.f90
compiling data_grid_lm.f90
compiling data_int2lm_constants.f90
compiling data_int2lm_control.f90
compiling data_int2lm_io.f90
compiling data_int2lm_parallel.f90
compiling data_parameters.f90
compiling data_profiles.f90
compiling mpe_io2.f90
compiling utilities.f90
compiling environment.f90
compiling gme_utilities.f90
compiling icon_math_utilities.f90
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start’:
(.text+0×20): undefined reference to `main‘
collect2: error: ld returned 1 exit status
ObjDependencies:102: recipe for target ‘/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/obj/icon_math_utilities.o’ failed
make: *** [/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/obj/icon_math_utilities.o] Error 1
This is probably an error with your compiler. What compiler and which version of the compiler do you use? Please also attach your Fopts file.
Please find attached the Fopts files. failed to compile for INTL2M but successful for CCLM .
g++-7 7.4.0-1ubuntu1~18.04.1 amd64 GNU C++ compiler
gcc-7 7.4.0-1ubuntu1~18.04.1 amd64 GNU C compiler
gfortran-7 7.4.0-1ubuntu1~18.04.1 amd64 GNU Fortran compiler
Can it be that your ObjDependencies file is corrupted? Can you replace it with the one in the attachment and try again?
after replacing the ObjDependencies file…
I am getting the same error
ajii@ajii-HP-Laptop-15-bw0xx:/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm$ make
compiling icon_math_utilities.f90
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start’:
(.text+0×20): undefined reference to `main‘
collect2: error: ld returned 1 exit status
ObjDependencies:102: recipe for target ‘/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/obj/icon_math_utilities.o’ failed
make: *** [/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/obj/icon_math_utilities.o] Error 1
This may be a GNU compiler problem. As I have no experience with running I hope that other members of the CLM -Community can help.
I suspect that it is the missing COMFLG6 in Fopts_INT. Due to its few dependencies, icon_math_utilities should be the first module during the compilation that uses COMFLG6. Can you try to add the following line to your Fopts_INT:
COMFLG6 = $( COMFLG )
I think Daniel spotted it right. I guess you copied the Fopts from CCLM to INT2LM and overlooked that they are not the same. In the starter package COMFLG6 is included in the INT2LM Fopts.
Dear Daniel and Burkhardt,
I am sorry, it did not work.
ajii@ajii-HP-Laptop-15-bw0xx:/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm$ make
#ifdef CLM _NEW !<— br 2017-08-23 line too longcompiling src_gribtabs.f90
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1126:0:
Warning: extra tokens at end of #ifdef directive
#endif !—> br 2017-08-23/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1130:0:
Warning: extra tokens at end of #endif directive
#ifdef CLM _NEW !<— br 2017-08-23 line too long/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1134:0:
Warning: extra tokens at end of #ifdef directive
#endif !—> br 2017-08-23/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1138:0:
Warning: extra tokens at end of #endif directive
dum4, tracer_in(:,:,1:kedim_in,i), dum2,‘IB ‘,‘QT’//trcr_meta(i)%flag_posdef,.FALSE., ke_in, 0) 1 Error: Line truncated at (1) dum4, tracer_in(:,:,1:kedim_in,i), dum2,‘IB ‘,‘QT’//trcr_meta(i)%flag_posdef,.FALSE., ke_in, 0) 1 Error: Syntax error in argument list at (1) /media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1137:132: dum4, tracer_in(:,:,1:kedim_in+1,i), dum2,‘IB ‘,‘QT’//trcr_meta(i)%flag_posdef,.FALSE., ke1in, 0) 1 Error: Line truncated at (1) dum4, tracer_in(:,:,1:kedim_in+1,i), dum2,‘IB ‘,‘QT’//trcr_meta(i)%flag_posdef,.FALSE., ke1in, 0) 1 Error: Syntax error in argument list at (1) f951: some warnings being treated as errors ObjDependencies:267: recipe for target ‘/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/obj/src_gribtabs.o’ failed make: *** [/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/obj/src_gribtabs.o] Error 1/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1129:132:
The gfortran compiler in its standard configuration does not accept more than 132 signs per line. I have already fixed these long lines in the official int2lm code, but this version has not yet been unified with the clm version of int2lm.
You have two options, either make the lines shorter or tell the compiler to accept longer lines:
Option 1)
Modify the file src_gribtabs and add line breaks in the lines mentioned in your error message. For example to:
Option 2)
Add the flag
-ffree-line-length-none
to COMFLG in your Fopts_INT