Skip to content

scalapack: modernize; fix build with cmake4#445431

Merged
markuskowa merged 7 commits intoNixOS:masterfrom
qbisi:scalapack
Sep 24, 2025
Merged

scalapack: modernize; fix build with cmake4#445431
markuskowa merged 7 commits intoNixOS:masterfrom
qbisi:scalapack

Conversation

@qbisi
Copy link
Contributor

@qbisi qbisi commented Sep 23, 2025

The last commit fix build with cmake4, one can test it on staging branch.

without the last commit, an error

can not find CMAKE_Fortran_COMPILER
Configure in the BLACS INSTALL directory FAILED

will raise if build scalapack with cmake4.

Related source where the error raise: https://github.com/Reference-ScaLAPACK/scalapack/blob/25935e1a7e022ede9fd71bd86dcbaa7a3f1846b7/CMAKE/FortranMangling.cmake#L21-L33
Possible cause: cmake4 no longer respect global CMAKE_Fortran_COMPILER in subcommand.
Solution: provide gfortran directly.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels Sep 23, 2025
Copy link
Contributor

@nim65s nim65s left a comment

Choose a reason for hiding this comment

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

diff LGTM, thanks !
And I can confirm that this fix build for me on x86_64-linux when applied on staging-next

@nim65s
Copy link
Contributor

nim65s commented Sep 23, 2025

part of #445447

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Sep 23, 2025
@markuskowa
Copy link
Member

@ofborg build sirius
@ofborg build elpa

Copy link
Member

@markuskowa markuskowa left a comment

Choose a reason for hiding this comment

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

Tested dependent packages on x86_64-linux.

@markuskowa markuskowa added this pull request to the merge queue Sep 24, 2025
Merged via the queue into NixOS:master with commit 2b5a672 Sep 24, 2025
32 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants