Skip to content

MAINT: remove use of ld_classic on macOS #28713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2025
Merged

Conversation

adamjstewart
Copy link
Contributor

Fixes spack/spack#49983
Partially reverts #24967

On macOS, if one package uses ld (classic), all packages that link to it must also use ld (classic), otherwise you encounter issues with duplicate rpaths. Spack's OpenBLAS package no longer uses ld (classic), therefore numpy must also use ld (new) in order to build.

I think this issue only matters for people who use rpath, which is mostly Spack.

@rgommers

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

Thanks @adamjstewart. Can you please add a release note for this under ls doc/release/upcoming_changes/? It should be a new file named 28713.change.rst with a snippet (1-2 sentences) describing this removal.

I think this issue only matters for people who use rpath, which is mostly Spack.

Also Conda and Nix, but those should not be affected AFAIK because they didn't have an issue duplicate RPATHs.

@adamjstewart
Copy link
Contributor Author

Done, wasn't sure about formatting.

@adamjstewart
Copy link
Contributor Author

Note that in the intel_sde_avx512 tests, the curl/tar command fails but the pipeline continues. If you set the shell to bash instead of sh, GitHub Actions will fail at first error instead of continuing.

@ngoldbaum
Copy link
Member

Nice, I've been seeing warnings related to this in my builds onc I upgraded my MacOS install but had no idea where they were coming from.

The Linux SIMD test failure is unrelated I think. @adamjstewart feel free to send in a PR to fix broken CI but don't feel like it's your responsibility - someone will fix it eventually.

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

Thanks Adam!

@rgommers rgommers merged commit 7771624 into numpy:main Apr 15, 2025
71 of 72 checks passed
@adamjstewart adamjstewart deleted the build/macos branch April 15, 2025 15:55
VascoConceicao pushed a commit to VascoConceicao/numpy that referenced this pull request May 6, 2025
MAINT: remove use of ld_classic on macOS
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.

Installation issue: py-numpy ^openblas %apple-clang@17
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy