Skip to content
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

Always apply Python unixcompilers.py rpath fix, not just on cray #39929

Merged
merged 4 commits into from Sep 26, 2023

Conversation

climbfuji
Copy link
Contributor

Description

Based on the conversation in the spack slack channel (https://spackpm.slack.com/archives/C5W7NKZJT/p1694393880262699), it was concluded that it would be safe to unconditionally apply the patch for the rpath linker flag in spack's Python installation, not just when the system is detected as Cray. The need for this came up when building on a Cray that was detected as a "new" Cray due to its craype version, but that still required using the Cray compiler wrappers.

Since there are no compilers in spack that understand -R but don't understand -Wl,-R, it's safe to apply this patch regardless of the platform.

Actual change: rename var/spack/repos/builtin/packages/python/cray-rpath-3.1.patch as var/spack/repos/builtin/packages/python/rpath-non-gcc.patch and apply unconditionally.

Testing

Tested on the Navy's Narwhal machine (Cray) and a couple of other HPCs (non Cray) with GNU and Intel.

…s var/spack/repos/builtin/packages/python/rpath-non-gcc.patch and apply unconditionally
@adamjstewart adamjstewart self-assigned this Sep 11, 2023
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
@alecbcs

This comment was marked as outdated.

@spackbot-app

This comment was marked as outdated.

@alecbcs alecbcs enabled auto-merge (squash) September 12, 2023 17:46
@scheibelp

This comment was marked as outdated.

@spackbot-app

This comment was marked as outdated.

@scheibelp scheibelp self-assigned this Sep 20, 2023
@scheibelp

This comment was marked as outdated.

@spackbot-app

This comment was marked as outdated.

@scheibelp

This comment was marked as outdated.

@spackbot-app

This comment was marked as outdated.

@alecbcs alecbcs merged commit 143e6a4 into spack:develop Sep 26, 2023
24 checks passed
AdhocMan pushed a commit to AdhocMan/spack that referenced this pull request Oct 10, 2023
…pack#39929)

* Rename var/spack/repos/builtin/packages/python/cray-rpath-3.1.patch as var/spack/repos/builtin/packages/python/rpath-non-gcc.patch and apply unconditionally

* Update var/spack/repos/builtin/packages/python/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
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.

None yet

4 participants