Skip to content

configure: fix PRRTE conflict with -iquote #7587

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

Conversation

jsquyres
Copy link
Member

@jsquyres jsquyres commented Apr 1, 2020

PRRTE needs hwloc and libevent, so it needs to be setup "late" in
configure.ac. However, we don't want to do it at the absolute bottom
of configure.ac, because right near the bottom, we setup CPPFLAGS (and
others) with values that are expected to be used only in
Makefile[.am]'s -- i.e., "$(foo)" values. Such values are not able to
be used here in configure.

Hence, move the PRRTE setup up above where we do these "final"/
only-relevant-to-Makefile[.am] CPPFLAGS (etc.) updates occur.

Signed-off-by: Jeff Squyres jsquyres@cisco.com

PRRTE needs hwloc and libevent, so it needs to be setup "late" in
configure.ac.  However, we don't want to do it at the absolute bottom
of configure.ac, because right near the bottom, we setup CPPFLAGS (and
others) with values that are expected to be used only in
Makefile[.am]'s -- i.e., "$(foo)" values.  Such values are not able to
be used here in configure.

Hence, move the PRRTE setup up above where we do these "final"/
only-relevant-to-Makefile[.am] CPPFLAGS (etc.) updates occur.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
@jsquyres jsquyres requested review from bosilca and rhc54 April 1, 2020 15:58
Copy link
Contributor

@rhc54 rhc54 left a comment

Choose a reason for hiding this comment

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

Kewl - thx!

@jsquyres jsquyres merged commit 4c89999 into open-mpi:master Apr 1, 2020
@jsquyres jsquyres deleted the pr/resolve-prrte-and-iquote-conflict branch April 1, 2020 16:38
Copy link
Member

@bosilca bosilca left a comment

Choose a reason for hiding this comment

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

This patch removes the errors during configure, but still leaves my build incorrectly configured. More precisely, prrte is now aware of the usage of the internal hwloc, and fails to build. I have the following error

make[2]: *** No rule to make target `-lhwloc', needed by `libprrte.la'.  Stop.
make[2]: Leaving directory `/ompi/master/build/debug/prrte/src'

when configured with

../../configure --enable-picky --enable-debug --enable-contrib-no-build=vt --enable-prte-prefix-by-default --with-cma --enable-ipv6 --disable-oshmem --disable-spc --with-cuda

If I explicitly add --with-hwloc=internal then everything works as expected.

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.

3 participants