(last module) fem does not compile.

Discussion about building and installing Elmer
Post Reply
gsal
Posts: 8
Joined: 04 Oct 2010, 22:21

(last module) fem does not compile.

Post by gsal »

Hi, first timer, here.

Just downloaded Elmer to a Red Hat Enterprise Linux 5 box with gcc/gfortran 4.1.2.

I was happily following the

Code: Select all

./configure ; make  ; make install
process and being quite successful with every module, except the last one, namely, fem.

Below, please see the last few lines of the output regarding the error messages:

Code: Select all

Error: Argument 'string' of pure subroutine 'split_ch' at (1) must have its INTENT specified
 In file iso_varying_string.f90:2408

  elemental subroutine split_CH (string, word, set, separator, back)
                                            1
Error: Symbol 'word' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2408

  elemental subroutine split_CH (string, word, set, separator, back)
                                            1
Error: Argument 'word' of pure subroutine 'split_ch' at (1) must have its INTENT specified
 In file iso_varying_string.f90:2408

  elemental subroutine split_CH (string, word, set, separator, back)
                                                            1
Error: Symbol 'separator' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2408

  elemental subroutine split_CH (string, word, set, separator, back)
                                                            1
Error: Argument 'separator' of pure subroutine 'split_ch' at (1) must have its INTENT specified
 In file iso_varying_string.f90:1287

  elemental function verify_CH_VS (string, set, back) result (i)
                                             1
Error: Symbol 'set' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1287

  elemental function verify_CH_VS (string, set, back) result (i)
                                             1
Error: Argument 'set' of pure function 'verify_ch_vs' at (1) must be INTENT(IN)
 In file iso_varying_string.f90:1250

  elemental function trim_ (string) result (trim_string)
                                 1
Error: Symbol 'string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1250

  elemental function trim_ (string) result (trim_string)
                                 1
Error: Argument 'string' of pure function 'trim_' at (1) must be INTENT(IN)
 In file iso_varying_string.f90:1307

  elemental function verify_VS_CH (string, set, back) result (i)
                                        1
Error: Symbol 'string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1307

  elemental function verify_VS_CH (string, set, back) result (i)
                                        1
Error: Argument 'string' of pure function 'verify_vs_ch' at (1) must be INTENT(IN)
 In file iso_varying_string.f90:1267

  elemental function verify_VS_VS (string, set, back) result (i)
                                        1
Error: Symbol 'string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1267

  elemental function verify_VS_VS (string, set, back) result (i)
                                        1
Error: Argument 'string' of pure function 'verify_vs_vs' at (1) must be INTENT(IN)
 In file iso_varying_string.f90:1267

  elemental function verify_VS_VS (string, set, back) result (i)
                                             1
Error: Symbol 'set' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1267

  elemental function verify_VS_VS (string, set, back) result (i)
                                             1
Error: Argument 'set' of pure function 'verify_vs_vs' at (1) must be INTENT(IN)
 In file iso_varying_string.f90:2304

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2281

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2258

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2235

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2212

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2189

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2166

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2143

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2112

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2091

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2070

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2047

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2027

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2007

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1987

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1967

ring)
    1
Error: Contained function 'rep_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1929

  elemental function remove_CH (string, start, finish) result (rem_string)
                                                                         1
Error: Contained function 'rem_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1910

  elemental function remove_VS (string, start, finish) result (rem_string)
                                                                         1
Error: Contained function 'rem_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1886

ring)
    1
Error: Contained function 'ins_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1867

ring)
    1
Error: Contained function 'ins_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1848

ring)
    1
Error: Contained function 'ins_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1829

ring)
    1
Error: Contained function 'ins_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1795

  elemental function extract_CH (string, start, finish) result (ext_string)
                                                                          1
Error: Contained function 'ext_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1776

  elemental function extract_VS (string, start, finish) result (ext_string)
                                                                          1
Error: Contained function 'ext_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1327

  elemental function var_str_ (char) result (string)
                                                   1
Error: Contained function 'string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1250

  elemental function trim_ (string) result (trim_string)
                                                       1
Error: Contained function 'trim_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:1172

  elemental function repeat_ (string, ncopies) result (repeat_string)
                                                                    1
Error: Contained function 'repeat_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:752

  elemental function adjustr_ (string) result (adjustr_string)
                                                             1
Error: Contained function 'adjustr_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:735

  elemental function adjustl_ (string) result (adjustl_string)
                                                             1
Error: Contained function 'adjustl_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:380

ring)
    1
Error: Contained function 'concat_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:361

ring)
    1
Error: Contained function 'concat_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:336

ring)
    1
Error: Contained function 'concat_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:2352

    work_string = string
              1
Error: Symbol 'work_string' at (1) has no IMPLICIT type
 In file iso_varying_string.f90:71

     module procedure op_concat_VS_CH
                                    1
Error: First argument of operator interface at (1) must be INTENT(IN)
 In file iso_varying_string.f90:77

     module procedure op_eq_VS_CH
                                1
Error: First argument of operator interface at (1) must be INTENT(IN)
 In file iso_varying_string.f90:83

     module procedure op_ne_VS_CH
                                1
Error: First argument of operator interface at (1) must be INTENT(IN)
 In file iso_varying_string.f90:107

     module procedure op_gt_VS_CH
                                1
Error: First argument of operator interface at (1) must be INTENT(IN)
 In file iso_varying_string.f90:101

     module procedure op_ge_VS_CH
                                1
Error: First argument of operator interface at (1) must be INTENT(IN)
 In file iso_varying_string.f90:89

     module procedure op_lt_VS_CH
                                1
Error: First argument of operator interface at (1) must be INTENT(IN)
 In file iso_varying_string.f90:95

     module procedure op_le_VS_CH
                                1
Error: First argument of operator interface at (1) must be INTENT(IN)
 In file iso_varying_string.f90:65

     module procedure op_assign_VS_CH
                                    1
Error: First argument of defined assignment at (1) must be INTENT(IN) or INTENT(INOUT)
 In file iso_varying_string.f90:2433

          if(PRESENT(separator)) separator = extract(string, start=i_separator,
                    1
Error: 'a' argument of 'present' intrinsic at (1) must be of an OPTIONAL dummy variable
 In file iso_varying_string.f90:1581

    if(PRESENT(separator)) separator = ''
              1
Error: 'a' argument of 'present' intrinsic at (1) must be of an OPTIONAL dummy variable
 In file iso_varying_string.f90:1500

    if(PRESENT(separator)) separator = ''
              1
Error: 'a' argument of 'present' intrinsic at (1) must be of an OPTIONAL dummy variable
make[3]: *** [iso_varying_string.o] Error 1
make[3]: Leaving directory `/home/gdeadmin/elmer/elmerfem/fem/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/gdeadmin/elmer/elmerfem/fem/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gdeadmin/elmer/elmerfem/fem'
make: *** [all] Error 2
gdeadmin@egret{~/elmer/elmerfem/fem} $ 

..., any suggestions?

Thanks in advance for any hints you may offer.

gsal
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: (last module) fem does not compile.

Post by raback »

Hi

If I remember correctly the iso_varying_strings need more recent gfortran version. The 4.1.2 must be couple of years old. The current stable version is 4.5, think.

-Peter
tzwinger
Site Admin
Posts: 99
Joined: 24 Aug 2009, 12:20
Antispam: Yes

Re: (last module) fem does not compile.

Post by tzwinger »

For the RHEL 5 issue with the completely outdated gcc version. ASFAIK there is a gcc test-package within RHEL 5 that has a version of gcc that already has the needed feature ...
Post Reply