Skip to content

Conversation

@alex--m
Copy link
Contributor

@alex--m alex--m commented Jun 14, 2024

Stumbled on this by accident - turns out this condition is true and proceeds the then clause even if the libfabric_path was never set and remained empty. Adding the quotes fixes this, so that only non-empty string (set by passing -f to buildrpm.sh) would trigger the rest of libfabric detection logic (as probably intended originally).

As the code runs today - every build adds these (libfabric-specific?) flags to the configure phase of the build - for no apparent reason: LDFLAGS=-Wl,--build-id -Wl,-rpath -Wl,/lib64 -Wl,--enable-new-dtags

@alex--m
Copy link
Contributor Author

alex--m commented Jun 14, 2024

Tagging @martinkontsek and @jsquyres - who are probably the best candidates to review this

Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

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

Wow; I had no idea that if test -n ; would return true!

Great find; thanks.

@jsquyres jsquyres merged commit 691e780 into open-mpi:main Jun 18, 2024
@jsquyres
Copy link
Member

@alex--m Can you cherry-pick this to v5.0.x? Thanks!

@alex--m
Copy link
Contributor Author

alex--m commented Jun 18, 2024

@alex--m Can you cherry-pick this to v5.0.x? Thanks!

Posted #12630 and #12631

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.

2 participants