Opened 12 years ago

Closed 9 years ago

#37299 closed defect (fixed)

problems compiling hdf5 port with fortran variant

Reported by: jvianalopes (João Manuel Viana Parente Lopes) Owned by: mamoll (Mark Moll)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: petrrr
Port: hdf5

Description (last modified by jmroot (Joshua Root))

trying to install the hdf5 library with

sudo port install hdf5 +fortran +gcc44

I get the following error:

:info:build /opt/local/bin/gfortran-mp-4.4 -I. -pipe -O2 -m64 -I. -c H5fortran_types.f90  -fno-common -DPIC -o .libs/H5fortran_types.lo
:info:build H5fortran_types.f90:32.40:
:info:build 
:info:build          INTEGER, PARAMETER :: R_LARGE = 
:info:build                                         1
:info:build Error: Expected an initialization expression at (1)
:info:build H5fortran_types.f90:33.42:
:info:build 
:info:build          INTEGER, PARAMETER :: R_INTEGER = 
:info:build                                           1
:info:build Error: Expected an initialization expression at (1)
:info:build H5fortran_types.f90:34.41:
:info:build 
:info:build          INTEGER, PARAMETER :: HADDR_T  = 
:info:build                                          1
:info:build Error: Expected an initialization expression at (1)
:info:build H5fortran_types.f90:35.41:
:info:build 
:info:build          INTEGER, PARAMETER :: HSIZE_T  = 
:info:build                                          1
:info:build Error: Expected an initialization expression at (1)
:info:build H5fortran_types.f90:36.41:
:info:build 
:info:build          INTEGER, PARAMETER :: HSSIZE_T = 
:info:build                                          1
:info:build Error: Expected an initialization expression at (1)
:info:build H5fortran_types.f90:37.41:
:info:build 
:info:build          INTEGER, PARAMETER :: HID_T    = 
:info:build                                          1
:info:build Error: Expected an initialization expression at (1)
:info:build H5fortran_types.f90:38.41:
:info:build 
:info:build          INTEGER, PARAMETER :: SIZE_T   = 
:info:build                                          1
:info:build Error: Expected an initialization expression at (1)
:info:build H5fortran_types.f90:44.17:
:info:build 
:info:build          INTEGER(SIZE_T), PARAMETER :: OBJECT_NAMELEN_DEFAULT_F = 
:info:build                  1
:info:build Error: Parameter 'size_t' at (1) has not been declared or is a variable, which does not reduce to a constant expression

Thanks in advance João

Change History (9)

comment:1 Changed 12 years ago by jmroot (Joshua Root)

Description: modified (diff)
Port: hdf5 added

Please remember to fill in the Port field, and use WikiFormatting. Please attach the main.log.

comment:2 Changed 9 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:3 Changed 9 years ago by petrrr

Is this still an issue? I have installed this port with +fortran variant apparently with no problems. Is this specific to gcc44?

comment:4 Changed 9 years ago by petrrr

Okay, with gcc44 compilation fails as well, but for a different reason:

  FCLD     H5test_kind
ld: warning: option -s is obsolete and being ignored
./H5test_kind > H5fortran_detect.f90
  FC       H5fortran_detect.o
H5fortran_detect.f90:164.17:

    REAL(KIND= 16) :: a
                 1
Error: Kind 16 not supported for type REAL at (1)
H5fortran_detect.f90:167.21:

    a_size = SIZEOF(a)
                     1
Error: Symbol 'a' at (1) has no IMPLICIT type
H5fortran_detect.f90:176.27:

 USE H5test_kind_SIZEOF_mod
                           1
Fatal Error: Can't open module file 'h5test_kind_sizeof_mod.mod' for reading at (1): No such file or directory

Maybe we should just remove +gcc44 variant?

Last edited 9 years ago by petrrr (previous) (diff)

comment:5 Changed 9 years ago by petrrr

Owner: changed from macports-tickets@… to mmoll@…

I realize this ticket was never assigned to the maintainer.

To the reporter: Please always CC the maintainer of a port, otherwise the ticket remain unnoticed as in this case.

comment:6 Changed 9 years ago by mamoll (Mark Moll)

I don't have gcc44 installed, but port destroot hdf5 +fortran +gcc5 seems to work just fine for me.

comment:7 Changed 9 years ago by petrrr

For me +gcc44 and +gcc45 do not work, while +gcc46 just compiled.

So I would propose to just remove the two variants, especially if you do not intent to test for these.

comment:8 Changed 9 years ago by seanfarley (Sean Farley)

I can try testing those as well.

comment:9 Changed 9 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: newclosed

Fixed in r140147.

Note: See TracTickets for help on using tickets.