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

Revert: c3b131e #44164

Closed

Conversation

johnwparent
Copy link
Contributor

@johnwparent johnwparent commented May 13, 2024

Fixes #44163
Reopens #42445

c3b131e

Windows change made out of context that breaks develop should be reverted.

Note: Not entirely clear on the surface why this change breaks linking on Windows, this is a stop gap until we can make the change suggested in #42445 without breaking anything.

@johnwparent johnwparent changed the title Revert: https://github.com/spack/spack/pull/40773/commits/c3b131e44ca… Revert: https://github.com/spack/spack/pull/40773/commits/c3b131e44cabbc54f96a45bdeda596433f63e2ab May 13, 2024
@johnwparent johnwparent changed the title Revert: https://github.com/spack/spack/pull/40773/commits/c3b131e44cabbc54f96a45bdeda596433f63e2ab Revert: c3b131e May 13, 2024
@haampie
Copy link
Member

haampie commented May 14, 2024

It was not out of context, see the failure in github actions.

The issue is you're running that function not in a sub process, so globals are not set. On top of that, if that function call fails, the package is marked installed in the database.

Please fix properly instead of reverting.

@johnwparent
Copy link
Contributor Author

Alternative solution found, this is no longer necessary.

We run post install hooks on externals, which causes the Windows rpath command to be run on externals as the root package where we previously were not when the Windows rpath was executed as a post install method call. The solution is to just skip the rpathing of externals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'spack install' on Windows errors with DLL trying to link to itself
2 participants