Skip to content

install.sh should warn or fail early for unsupported Fortran compiler versions #368

Description

@oas004

Hey! 👋

Thank you for a very cool project!

I tried setting this up for the first time. I initially hit some issues with gfortran. On Pop!_OS 22.04, install.sh accepted GNU Fortran 11.4 and proceeded to build GASNet-EX. The subsequent Caffeine compilation then failed in prif_private_s.F90 with:

Error: Character argument ‘str’ must be length 1 because procedure
‘caf_fatal_error’ is BIND(C)

For compilation I used

 env FC=gfortran CC=gcc CXX=g++  ./install.sh --network=smp

On my system this resolved to GCC/gfortran 11.4. Rebuilding explicitly with GCC/gfortran 13 resolved the problem, and the tests passed.

The README lists gfortran 13–15 as the regularly tested versions. Would it make sense for the installer to detect the selected compiler version before building dependencies and either:

  • reject versions known to be incompatible; or
  • warn when the version is outside the tested range?

This would provide a more actionable error and avoid building GASNet-EX before discovering a compiler incompatibility.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions