compiler wrapper: parse Wl and Xlinker properly#35912
Merged
alalazo merged 2 commits intospack:developfrom Mar 8, 2023
Merged
Conversation
Two fixes: 1. `-Wl,a,b,c,d` is a comma separated list of linker arguments, we incorrectly assume key/value pairs, which runs into issues with for example `-Wl,--enable-new-dtags,-rpath,/x` 2. `-Xlinker,xxx` is not a think, so it shouldn't be parsed.
Member
|
Yes! Now I can load the python bindings of openmm: For future reference, the problem I had was because the python bindings Thanks! 🚀 |
Member
Author
|
Regarding
And I expect (but didn't test) that I'll leave that for another PR... |
Member
Author
|
@spackbot run pipeline |
|
I've started that pipeline for you! |
alalazo
approved these changes
Mar 8, 2023
haampie
added a commit
that referenced
this pull request
Mar 8, 2023
Two fixes: 1. `-Wl,a,b,c,d` is a comma separated list of linker arguments, we incorrectly assume key/value pairs, which runs into issues with for example `-Wl,--enable-new-dtags,-rpath,/x` 2. `-Xlinker,xxx` is not a think, so it shouldn't be parsed.
haampie
added a commit
that referenced
this pull request
Apr 3, 2023
Two fixes: 1. `-Wl,a,b,c,d` is a comma separated list of linker arguments, we incorrectly assume key/value pairs, which runs into issues with for example `-Wl,--enable-new-dtags,-rpath,/x` 2. `-Xlinker,xxx` is not a think, so it shouldn't be parsed.
alalazo
pushed a commit
that referenced
this pull request
Apr 3, 2023
Two fixes: 1. `-Wl,a,b,c,d` is a comma separated list of linker arguments, we incorrectly assume key/value pairs, which runs into issues with for example `-Wl,--enable-new-dtags,-rpath,/x` 2. `-Xlinker,xxx` is not a think, so it shouldn't be parsed.
jmcarcell
pushed a commit
to key4hep/spack
that referenced
this pull request
Apr 13, 2023
Two fixes: 1. `-Wl,a,b,c,d` is a comma separated list of linker arguments, we incorrectly assume key/value pairs, which runs into issues with for example `-Wl,--enable-new-dtags,-rpath,/x` 2. `-Xlinker,xxx` is not a think, so it shouldn't be parsed.
Closed
3 tasks
vjranagit
pushed a commit
to vjranagit/spack
that referenced
this pull request
Jan 18, 2026
Two fixes: 1. `-Wl,a,b,c,d` is a comma separated list of linker arguments, we incorrectly assume key/value pairs, which runs into issues with for example `-Wl,--enable-new-dtags,-rpath,/x` 2. `-Xlinker,xxx` is not a think, so it shouldn't be parsed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes:
-Wl,a,b,c,dis a comma separated list of linker arguments, weincorrectly assume flags or key/value pairs, which runs into issues with for
example
-Wl,--enable-new-dtags,-rpath,/x-Xlinker,xxxis not a thing, so it shouldn't be parsed.A third issue not fixed here is that
ld -R <path>is an alternative to-rpathwhen<path>is a directory. That's rather odd behavior... inprinciple we can keep track of
-Rand conditionally add with[ -d "$rp" ]but imho thats Too Much for a rarely used flag.
Does this fix your issue @giordano?