Project

General

Profile

failed to install INT2LM

Added by Sourabh Bal 4 months ago

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+0x20): 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


Replies (10)

RE: failed to install INT2LM - Added by Burkhardt Rockel 4 months ago

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.

RE: failed to install INT2LM - Added by Sourabh Bal 4 months ago

Please find attached the Fopts files. failed to compile for INTL2M but successful for CCLM.

RE: failed to install INT2LM - Added by Sourabh Bal 4 months ago

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

RE: failed to install INT2LM - Added by Burkhardt Rockel 4 months ago

Can it be that your ObjDependencies file is corrupted? Can you replace it with the one in the attachment and try again?

RE: failed to install INT2LM - Added by Sourabh Bal 4 months ago

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+0x20): 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

RE: failed to install INT2LM - Added by Burkhardt Rockel 4 months ago

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.

RE: failed to install INT2LM - Added by Daniel Rieger 4 months ago

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)

RE: failed to install INT2LM - Added by Burkhardt Rockel 4 months ago

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.

RE: failed to install INT2LM - Added by Sourabh Bal 4 months ago

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
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) [-Werror=line-truncation]
/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: 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) [-Werror=line-truncation]
/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: 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

RE: failed to install INT2LM - Added by Daniel Rieger 4 months ago

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:

  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

Option 2)

Add the flag -ffree-line-length-none to COMFLG in your Fopts_INT

    (1-10/10)