Skip to content

option to just install latest version of a compiler #136

@danieljprice

Description

@danieljprice

In the setup_fortran workflow there is a hardwired version of each compiler specified (currently gfortran-v13 on Mac OS). This caused me several days of headaches since notionally two workflow paths which both install gfortran via homebrew actually lead to incompatible compiler versions, e.g.:

danieljprice/phantom#709

The problem occurred because "brew install " uses the default "brew install gcc" whereas the setup-fortran workflow installs a specific (older) version, even though both install gfortran via homebrew.

While I have implemented a workaround (do not use setup-fortran at all, just manually symlink the homebrew-installed gfortran), it would be nice if there could be an option to setup-fortran to always install the latest available version of a compiler.

I would value this because it tests the "typical" use case for users, who typically type "brew install gcc" or "apt-get install gfortran" without specifying the version number.

Would it be possible to add an option to just install the default version available on each platform (e.g. for the Mac workflow just don't specify the compiler version in the brew call)? Or is this already ruled out on policy grounds?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions