Eu estou tentando compilar o WRF no Ubuntu 16, enquanto checava os testes de ambiente do sistema (Fortran e C Test), eu fiz o TEST # 1 com sucesso. Mas quando tentei fazer o TEST 2: recebi o seguinte erro:
[gopi65@wise1 TESTS]$ gfortran TEST_2_fortran_only_free.f90
In file TEST_2_fortran_only_free.f90:4
USE, INTRINSIC :: ISO_C_BINDING, ONLY: c_char, c_ptr, c_int32_t, &
1
Error: Unclassifiable statement at (1)
In file TEST_2_fortran_only_free.f90:8
TYPE, BIND(C) :: r_info
1
Error: Unclassifiable statement at (1)
In file TEST_2_fortran_only_free.f90:9
INTEGER(C_INT64_T) :: offset
1
Error: Parameter 'c_int64_t' at (1) has not been declared or is a variable, which does not reduce to a constant expression
In file TEST_2_fortran_only_free.f90:10
INTEGER(C_INT64_T) :: data_offset
1
Error: Parameter 'c_int64_t' at (1) has not been declared or is a variable, which does not reduce to a constant expression
In file TEST_2_fortran_only_free.f90:11
INTEGER(C_INT32_T) :: data_count
1
Error: Parameter 'c_int32_t' at (1) has not been declared or is a variable, which does not reduce to a constant expression
In file TEST_2_fortran_only_free.f90:12
INTEGER(C_INT32_T) :: data_type
1
Error: Parameter 'c_int32_t' at (1) has not been declared or is a variable, which does not reduce to a constant expression
In file TEST_2_fortran_only_free.f90:13
CHARACTER(KIND=C_CHAR), DIMENSION(10) :: name
1
Error: Constant expression required at (1)
In file TEST_2_fortran_only_free.f90:14
CHARACTER(KIND=C_CHAR), DIMENSION(10) :: date
1
Error: Constant expression required at (1)
In file TEST_2_fortran_only_free.f90:15
END TYPE r_info
1
Error: Expecting END PROGRAM statement at (1)
In file TEST_2_fortran_only_free.f90:24
TYPE(bunch_of_stuff), ALLOCATABLE, DIMENSION(:) :: ddt_things
1
Error: Attribute at (1) is not allowed in a TYPE definition
In file TEST_2_fortran_only_free.f90:25
END TYPE outer_wrapper
1
Error: Derived type definition at (1) has no components
In file TEST_2_fortran_only_free.f90:27
TYPE(outer_wrapper), DIMENSION(15) :: combo
1
Error: Derived type 'outer_wrapper' at (1) is being used before it is defined
In file TEST_2_fortran_only_free.f90:29
ALLOCATE(combo(1)%ddt_things(10))
1
Error: Syntax error in ALLOCATE statement at (1)
In file TEST_2_fortran_only_free.f90:30
ALLOCATE(combo(2)%ddt_things(10))
1
Error: Syntax error in ALLOCATE statement at (1)
In file TEST_2_fortran_only_free.f90:31
ALLOCATE(combo(3)%ddt_things(10))
1
Error: Syntax error in ALLOCATE statement at (1)
[gopi65@wise1 TESTS]$
Posso obter a solução, por favor.