Skip to content

openmpi: add fortran variant#51

Merged
rbberger merged 3 commits into
spack:developfrom
giordano:spack-pr-49318
Jun 17, 2025
Merged

openmpi: add fortran variant#51
rbberger merged 3 commits into
spack:developfrom
giordano:spack-pr-49318

Conversation

@giordano
Copy link
Copy Markdown
Member

@giordano giordano commented Jun 6, 2025

Note

This PR was migrated from spack/spack#49318.

Not tested, but this is inspired by what's in the mpich recipe. This should hopefully allow building openmpi without a fortran compiler, if the user only wants to run non-Fortran code with openmpi.

@giordano
Copy link
Copy Markdown
Member Author

giordano commented Jun 9, 2025

py-torch build failures look unrelated?

==> Error: Failed to install py-torch due to ExtrapolationError: Can't extrapolate a URL for version 2.7.1 because package py-torch defines no URLs

@tldahlgren tldahlgren added the waiting-on-maintainer Waiting on a review from the package maintainer label Jun 10, 2025
Copy link
Copy Markdown
Contributor

@hppritcha hppritcha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI failure - complaints of this nature

==> Error: Failed to install py-torch due to ExtrapolationError: Can't extrapolate a URL for version 2.7.1 because package py-torch defines no URLs

look unrelated to this PR.

@giordano giordano added approved-by-maintainer and removed waiting-on-maintainer Waiting on a review from the package maintainer labels Jun 12, 2025
@rbberger rbberger merged commit 629e6f0 into spack:develop Jun 17, 2025
15 checks passed
@giordano giordano deleted the spack-pr-49318 branch June 17, 2025 05:34
G-Ragghianti pushed a commit to G-Ragghianti/spack-packages that referenced this pull request Jun 26, 2025
* openmpi: add `fortran` variant

* openmpi: depend on `fortran` when `+fortran`
mtaillefumier pushed a commit to mtaillefumier/spack-packages that referenced this pull request Jul 2, 2025
* openmpi: add `fortran` variant

* openmpi: depend on `fortran` when `+fortran`
mtaillefumier pushed a commit to mtaillefumier/spack-packages that referenced this pull request Jul 16, 2025
* openmpi: add `fortran` variant

* openmpi: depend on `fortran` when `+fortran`
climbfuji added a commit to climbfuji/spack-packages that referenced this pull request Apr 14, 2026
…pack#2926) (spack#51)

Some example targets (e.g. v4l2) use math functions such as sin(), but libm
was not listed explicitly on the link line. Older toolchains linked this
transitively, but newer GCC/binutils reject this with “DSO missing from
command line”. Add -lm explicitly to make the link robust and portable.

Co-authored-by: Mathias Anselmann <mathias.anselmann@posteo.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants