Opened 10 years ago

Closed 10 years ago

#42658 closed defect (invalid)

hdf5-18: +fortran requires a fortran compiler to be selected

Reported by: smithsp (Sterling Smith) Owned by: mamoll (Mark Moll)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: seanfarley (Sean Farley), davydden@…
Port: hdf5-18

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I issued the command

port upgrade outdated

At some point it failed, with the error:

Error: +fortran requires a fortran compiler to be selected

Error: Unable to open port:

Turning on debugging yielded:

<snip>
DEBUG: No need to upgrade! mpi_select 0.0_1 >= mpi_select 0.0_1
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: hdf5-18 1.8.12_1 exists in the ports tree
DEBUG: hdf5-18 1.8.11_0 +cxx+fortran+openmpi is the latest installed
DEBUG: no version of hdf5-18 is active
DEBUG: Merging existing variants '+cxx+fortran+openmpi' into variants
DEBUG: new fully merged portvariants: openmpi + fortran + cxx +
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/hdf5-18
DEBUG: OS darwin/10.8.0 (Mac OS X 10.6) arch i386
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
Error: +fortran requires a fortran compiler to be selected
DEBUG: 
    while executing
"source Portfile"
    invoked from within
"$workername eval source Portfile"
    (procedure "mportopen" line 47)
    invoked from within
"mportopen $porturl [array get interp_options] [array get variations]"

Error: Unable to open port: 

Change History (5)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mmoll@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to mmoll@…
Summary: `port upgrade outdated` fails with +fortran error for hdf5-18 porthdf5-18: +fortran requires a fortran compiler to be selected

The error message is probably correct. In addition to the +fortran variant, try specifying a fortran compiler variant (they are g95, gcc44, gcc45, gcc46, gcc47, gcc48, gcc49, gfortran).

comment:2 Changed 10 years ago by mamoll (Mark Moll)

Cc: sean@… added

Adding Sean to the cc list; perhaps this relates to the compiler/mpi group voodoo.

comment:3 Changed 10 years ago by davydden@…

Cc: davydden@… added

Cc Me!

comment:4 Changed 10 years ago by smithsp (Sterling Smith)

In the end I was able to get things to work, I believe by indicating the desired variant of compiler for the hdf5-18 port as suggested by Ryan, which apparently I had not done previously.

comment:5 Changed 10 years ago by mamoll (Mark Moll)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.