Opened 10 years ago

Last modified 10 years ago

#42658 closed defect

hdf5-18: +fortran requires a fortran compiler to be selected — at Version 1

Reported by: smithsp (Sterling Smith) Owned by: mmoll@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
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 (1)

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).

Note: See TracTickets for help on using tickets.