Skip to content

$LDFLAGS lost building fortran on mac #12719

Closed
@minrk

Description

@minrk

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

v5.0.4, v5.0.5

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

build from dist tarball for 5.0.4 and 5.0.5 using conda-forge compilers.

Please describe the system on which you are running

  • Operating system/version: macOS 14.5
  • Computer hardware: m1 (ARM)
  • Network type: N/A

Details of the problem

Our builds of openmpi rely on $LDFLAGS to successfully link -lgfortran, at least in the cross compiling configuration. However, #12650 has a typo where LDFLAGS is saved in $LDFLAGS_save_xcode but restored from $LDFLAGS_xcode_save, which is never set, and thus empty. This has the effect that after this bit of configuration is run, $LDFLAGS is lost.

Fixing the variable names to match each other fixes the failing builds, as seen here with this patch.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions