failed to install INT2LM – in #12: CCLM Starter Package Support
in #12: CCLM Starter Package Support
Cookies disclaimer
Our site saves small pieces of text information (cookies) on your
device in order to verify your login. These cookies are essential
to provide access to resources on this website and it will not
work properly without.
Learn more
<p>
After following the instructions to work on Laptop, I have installed all the necessary libraries. The compilation was successful for
<span class="caps">
CCLM
</span>
as cclm.exe file was created. But failed to compile INT2LM and
<span class="caps">
CFU
</span>
.
</p>
<p>
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
<span class="caps">
CCLM
</span>
on my laptop.
</p>
<p>
ajii@ajii-HP-Laptop-15-bw0xx:/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm$ make
<br/>
compiling kind_parameters.f90
<br/>
compiling data_epsctl.f90
<br/>
compiling data_fields_in.f90
<br/>
compiling data_fields_lm.f90
<br/>
compiling data_grid_in.f90
<br/>
compiling data_grid_lm.f90
<br/>
compiling data_int2lm_constants.f90
<br/>
compiling data_int2lm_control.f90
<br/>
compiling data_int2lm_io.f90
<br/>
compiling data_int2lm_parallel.f90
<br/>
compiling data_parameters.f90
<br/>
compiling data_profiles.f90
<br/>
compiling mpe_io2.f90
<br/>
compiling utilities.f90
<br/>
compiling environment.f90
<br/>
compiling gme_utilities.f90
<br/>
compiling icon_math_utilities.f90
<br/>
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start’:
<br/>
(.text+0×20): undefined reference to `main‘
<br/>
collect2: error: ld returned 1 exit status
<br/>
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
<br/>
make: *** [/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/obj/icon_math_utilities.o] Error 1
</p>
<p>
After following the instructions to work on Laptop, I have installed all the necessary libraries. The compilation was successful for
<span class="caps">
CCLM
</span>
as cclm.exe file was created. But failed to compile INT2LM and
<span class="caps">
CFU
</span>
.
</p>
<p>
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
<span class="caps">
CCLM
</span>
on my laptop.
</p>
<p>
ajii@ajii-HP-Laptop-15-bw0xx:/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm$ make
<br/>
compiling kind_parameters.f90
<br/>
compiling data_epsctl.f90
<br/>
compiling data_fields_in.f90
<br/>
compiling data_fields_lm.f90
<br/>
compiling data_grid_in.f90
<br/>
compiling data_grid_lm.f90
<br/>
compiling data_int2lm_constants.f90
<br/>
compiling data_int2lm_control.f90
<br/>
compiling data_int2lm_io.f90
<br/>
compiling data_int2lm_parallel.f90
<br/>
compiling data_parameters.f90
<br/>
compiling data_profiles.f90
<br/>
compiling mpe_io2.f90
<br/>
compiling utilities.f90
<br/>
compiling environment.f90
<br/>
compiling gme_utilities.f90
<br/>
compiling icon_math_utilities.f90
<br/>
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start’:
<br/>
(.text+0×20): undefined reference to `main‘
<br/>
collect2: error: ld returned 1 exit status
<br/>
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
<br/>
make: *** [/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/obj/icon_math_utilities.o] Error 1
</p>
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
<p>
after replacing the ObjDependencies file…
</p>
<p>
I am getting the same error
</p>
<p>
ajii@ajii-HP-Laptop-15-bw0xx:/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm$ make
<br/>
compiling icon_math_utilities.f90
<br/>
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start’:
<br/>
(.text+0×20): undefined reference to `main‘
<br/>
collect2: error: ld returned 1 exit status
<br/>
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
<br/>
make: *** [/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/obj/icon_math_utilities.o] Error 1
</p>
<p>
after replacing the ObjDependencies file…
</p>
<p>
I am getting the same error
</p>
<p>
ajii@ajii-HP-Laptop-15-bw0xx:/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm$ make
<br/>
compiling icon_math_utilities.f90
<br/>
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start’:
<br/>
(.text+0×20): undefined reference to `main‘
<br/>
collect2: error: ld returned 1 exit status
<br/>
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
<br/>
make: *** [/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/obj/icon_math_utilities.o] Error 1
</p>
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
<p>
This may be a
<span class="caps">
GNU
</span>
compiler problem. As I have no experience with running I hope that other members of the
<span class="caps">
CLM
</span>
-Community can help.
</p>
<p>
This may be a
<span class="caps">
GNU
</span>
compiler problem. As I have no experience with running I hope that other members of the
<span class="caps">
CLM
</span>
-Community can help.
</p>
<p>
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:
</p>
<p>
COMFLG6 = $(
<span class="caps">
COMFLG
</span>
)
</p>
<p>
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:
</p>
<p>
COMFLG6 = $(
<span class="caps">
COMFLG
</span>
)
</p>
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:
<p>
I think Daniel spotted it right. I guess you copied the Fopts from
<span class="caps">
CCLM
</span>
to INT2LM and overlooked that they are not the same. In the starter package COMFLG6 is included in the INT2LM Fopts.
</p>
<p>
I think Daniel spotted it right. I guess you copied the Fopts from
<span class="caps">
CCLM
</span>
to INT2LM and overlooked that they are not the same. In the starter package COMFLG6 is included in the INT2LM Fopts.
</p>
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.
<p>
Dear Daniel and Burkhardt,
</p>
<p>
I am sorry, it did not work.
</p>
<p>
ajii@ajii-HP-Laptop-15-bw0xx:/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm$ make
<br/>
compiling src_gribtabs.f90
<br/>
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1126:0:
</p>
#ifdef
<span class="caps">
CLM
</span>
_NEW !<— br 2017-08-23 line too long
<p>
Warning: extra tokens at end of #ifdef directive
<br/>
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1130:0:
</p>
#endif !—> br 2017-08-23
<p>
Warning: extra tokens at end of #endif directive
<br/>
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1134:0:
</p>
#ifdef
<span class="caps">
CLM
</span>
_NEW !<— br 2017-08-23 line too long
<p>
Warning: extra tokens at end of #ifdef directive
<br/>
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1138:0:
</p>
#endif !—> br 2017-08-23
<p>
Warning: extra tokens at end of #endif directive
<br/>
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1129:132:
</p>
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
<p>
Dear Daniel and Burkhardt,
</p>
<p>
I am sorry, it did not work.
</p>
<p>
ajii@ajii-HP-Laptop-15-bw0xx:/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm$ make
<br/>
compiling src_gribtabs.f90
<br/>
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1126:0:
</p>
#ifdef
<span class="caps">
CLM
</span>
_NEW !<— br 2017-08-23 line too long
<p>
Warning: extra tokens at end of #ifdef directive
<br/>
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1130:0:
</p>
#endif !—> br 2017-08-23
<p>
Warning: extra tokens at end of #endif directive
<br/>
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1134:0:
</p>
#ifdef
<span class="caps">
CLM
</span>
_NEW !<— br 2017-08-23 line too long
<p>
Warning: extra tokens at end of #ifdef directive
<br/>
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1138:0:
</p>
#endif !—> br 2017-08-23
<p>
Warning: extra tokens at end of #endif directive
<br/>
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1129:132:
</p>
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
ajii@ajii-HP-Laptop-15-bw0xx:/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm$ make
compiling 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:
#ifdef
CLM
_NEW !<— br 2017-08-23 line too long
Warning: extra tokens at end of #ifdef directive
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1130:0:
#endif !—> br 2017-08-23
Warning: extra tokens at end of #endif directive
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1134:0:
#ifdef
CLM
_NEW !<— br 2017-08-23 line too long
Warning: extra tokens at end of #ifdef directive
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1138:0:
#endif !—> br 2017-08-23
Warning: extra tokens at end of #endif directive
/media/ajii/a4a86f79-9c78-469c-8f08-23de87aebc1a/ajj/cclm/cclm-sp-v3.1.1/src/int2lm/src/src_gribtabs.f90:1129:132:
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
<p>
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.
</p>
<p>
You have two options, either make the lines shorter or tell the compiler to accept longer lines:
</p>
<p>
Option 1)
</p>
<p>
Modify the file src_gribtabs and add line breaks in the lines mentioned in your error message. For example to:
<br/>
<pre>
IF (trcr_meta(i)%ilevtyp 110) THEN
var_in(70+i) = ar_des_input(TRIM(trcr_meta(i)%shortname), TRIM(trcr_meta(i)%clevtyp) , trcr_meta(i)%grbtab, &
trcr_meta(i)%ilevtyp, trcr_meta(i)%grbnr, 0, 0, 1.0, 0.0, 3, &
dum4, tracer_in(:,:,1:kedim_in,i), dum2,'IB ', &
'QT'//trcr_meta(i)%flag_posdef,.FALSE., ke_in, 0)
ELSE IF (trcr_meta(i)%ilevtyp 109) THEN
var_in(70+i) = ar_des_input(TRIM(trcr_meta(i)%shortname), TRIM(trcr_meta(i)%clevtyp) , trcr_meta(i)%grbtab, &
trcr_meta(i)%ilevtyp, trcr_meta(i)%grbnr, 0, 0, 1.0, 0.0, 3, &
dum4, tracer_in(:,:,1:kedim_in+1,i), dum2,'IB ', &
'QT'//trcr_meta(i)%flag_posdef,.FALSE., ke1in, 0)
ENDIF
</pre>
</p>
<p>
Option 2)
</p>
<p>
Add the flag
<code>
-ffree-line-length-none
</code>
to
<span class="caps">
COMFLG
</span>
in your Fopts_INT
</p>
<p>
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.
</p>
<p>
You have two options, either make the lines shorter or tell the compiler to accept longer lines:
</p>
<p>
Option 1)
</p>
<p>
Modify the file src_gribtabs and add line breaks in the lines mentioned in your error message. For example to:
<br/>
<pre>
IF (trcr_meta(i)%ilevtyp 110) THEN
var_in(70+i) = ar_des_input(TRIM(trcr_meta(i)%shortname), TRIM(trcr_meta(i)%clevtyp) , trcr_meta(i)%grbtab, &
trcr_meta(i)%ilevtyp, trcr_meta(i)%grbnr, 0, 0, 1.0, 0.0, 3, &
dum4, tracer_in(:,:,1:kedim_in,i), dum2,'IB ', &
'QT'//trcr_meta(i)%flag_posdef,.FALSE., ke_in, 0)
ELSE IF (trcr_meta(i)%ilevtyp 109) THEN
var_in(70+i) = ar_des_input(TRIM(trcr_meta(i)%shortname), TRIM(trcr_meta(i)%clevtyp) , trcr_meta(i)%grbtab, &
trcr_meta(i)%ilevtyp, trcr_meta(i)%grbnr, 0, 0, 1.0, 0.0, 3, &
dum4, tracer_in(:,:,1:kedim_in+1,i), dum2,'IB ', &
'QT'//trcr_meta(i)%flag_posdef,.FALSE., ke1in, 0)
ENDIF
</pre>
</p>
<p>
Option 2)
</p>
<p>
Add the flag
<code>
-ffree-line-length-none
</code>
to
<span class="caps">
COMFLG
</span>
in your Fopts_INT
</p>
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:
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