Skip to content

Configure fails if no Fortran compiler present #13257

@rhc54

Description

@rhc54

Thank you for taking the time to submit an issue!

Background information

What version of Open MPI are you using? (e.g., v4.1.6, v5.0.1, git branch name and hash, etc.)

Head of v5.0 branch with updated PRRTE submodule

Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)

Git clone

If you are building/installing from a git clone, please copy-n-paste the output from git submodule status.

907b1ccaeec61a1197f0ee5264d4fef20b257b84 3rd-party/openpmix (v5.0.8)
b9495979aab452dc935504d9884a1202166da91f 3rd-party/prrte (v3.0.10-2-gb9495979aa)
dfff67569fb72dbf8d73a1dcf74d091dad93f71b config/oac (remotes/origin/HEAD)

Please describe the system on which you are running

  • Operating system/version: Rocky 9
  • Computer hardware: container
  • Network type: TCP

Details of the problem

Container does not include a Fortran compiler. Vanilla configure line fails with following error in config.log:

$ ./configure --prefix=/opt/hpc/external/ompi --enable-mpirun-prefix-by-default --enable-debug
...
configure:28534: WARNING: *** All Fortran MPI bindings disabled (could not find compiler)
configure:28655: checking for  warnings flags
configure:28670: result: none
configure:29224: checking to see if mpifort compiler needs additional linker flags
configure:29538: result: none
configure:29617: checking alignment of Fortran common
configure:29642:  -o conftest  -g -L/lib  conftest.f  >&5
./configure: line 4269: -o: command not found
configure:29642: $? = 127
configure: failed program was:
|  program falignment
|    CHARACTER A,B
|    COMMON /AA/A
|    COMMON /BB/B
|    OPEN(UNIT=10, FILE="conftestval")
|    if (LOC(A) > LOC(B)) then
|       write (10,'(I5)') LOC(A)-LOC(B)
|    else
|       write (10,'(I5)') LOC(B)-LOC(A)
|    endif
|    CLOSE(10)
|
| end program
configure:29659: WARNING: Could not determine common alignment
configure:29661: WARNING: See config.log for details
configure:29663: error: Cannot continue

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions