Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#59795 closed defect (fixed)

ecCodes' gcc9 variant conflicts with gfortran

Reported by: thiagoveloso (Thiago V. dos Santos) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: ecCodes

Description

On my system, I usually install cdo with the following variants:

sudo port install cdo +szip +grib_api +gcc9 +mpich

I guess this causes ecCodes to be installed with the gcc9 variant as well.

However, a recent update in version 2.15.0 revision 1 seems to break this. This revision introduces gfortran as default variant: https://github.com/macports/macports-ports/commit/6f931aa8f8607e060f40cb1438625b776fb912aa#diff-72f4652e4e50c65421dbd4abc178a477

This is the error message I receive when trying to update:

sudo port upgrade outdated
Error: ecCodes: Variant gcc9 conflicts with gfortran
Error: Unable to open port: Error evaluating variants
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Any way to work around this error?

Change History (5)

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

I guess this causes ecCodes to be installed with the gcc9 variant as well.

Yes, variant selections are passed down to any dependencies that have not yet been installed.

Any way to work around this error?

The workaround is to add -gfortran to your port install line.

Takeshi, the fix is to follow wiki:PortfileRecipes#default_variants (unless the compilers portgroup you're using has a way it to handle default_variants for you; I'm not familiar with the portgroup).

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Cc: tenomoto removed
Owner: set to tenomoto
Status: newassigned

comment:3 Changed 5 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: assignedclosed

In b166f46bf0204efc631ab6ca9af74b778ee0ee9f/macports-ports (master):

ecCodes: avoid build error when one of gcc variants is set

Closes: #59795

comment:4 Changed 5 years ago by thiagoveloso (Thiago V. dos Santos)

Thanks Ryan and Takeshi, it works now!

comment:5 Changed 4 years ago by tenomoto (Takeshi Enomoto)

In b166f46bf0204efc631ab6ca9af74b778ee0ee9f/macports-ports (dar, master, py38-reproject, revert-6945-rust-1.43.0, wireshark):

ecCodes: avoid build error when one of gcc variants is set

Closes: #59795

Note: See TracTickets for help on using tickets.