-
Notifications
You must be signed in to change notification settings - Fork 877
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
Configure generates bogus makefile #4345
Comments
@jladd-mlnx, can you find someone from your team to look at this? |
@planetA can you give the inline patch a try ? fwiw,
diff --git a/config/ompi_check_ucx.m4 b/config/ompi_check_ucx.m4
index 93aceeb..47002db 100644
--- a/config/ompi_check_ucx.m4
+++ b/config/ompi_check_ucx.m4
@@ -34,21 +34,17 @@ AC_DEFUN([OMPI_CHECK_UCX],[
ompi_check_ucx_$1_save_LIBS="$LIBS"
AS_IF([test "$with_ucx" != "no"],
- [AS_IF([test ! -z "$with_ucx" && test "$with_ucx" != "yes"],
- [
- ompi_check_ucx_dir="$with_ucx"
- ompi_check_ucx_libdir="$with_ucx/lib"
- ])
- AS_IF([test ! -z "$with_ucx_libdir" && test "$with_ucx_libdir" != "yes"],
+ [AS_IF([test -n "$with_ucx" && test "$with_ucx" != "yes"],
+ [ompi_check_ucx_dir="$with_ucx"
+ ompi_check_ucx_libdir="$with_ucx/lib"])
+ AS_IF([test -n "$with_ucx_libdir" && test "$with_ucx_libdir" != "yes"],
[ompi_check_ucx_libdir="$with_ucx_libdir"])
- ompi_check_ucx_extra_libs="-L$ompi_check_ucx_libdir"
-
OPAL_CHECK_PACKAGE([ompi_check_ucx],
[ucp/api/ucp.h],
[ucp],
[ucp_cleanup],
- [$ompi_check_ucx_extra_libs],
+ [],
[$ompi_check_ucx_dir],
[$ompi_check_ucx_libdir],
[ompi_check_ucx_happy="yes"],
@@ -64,7 +60,8 @@ AC_DEFUN([OMPI_CHECK_UCX],[
AC_MSG_CHECKING(for UCX version compatibility)
AC_REQUIRE_CPP
old_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include"
+ AS_IF([test -n "$ompi_check_ucx_dir"],
+ [CPPFLAGS="$CPPFLAGS -I$ompi_check_ucx_dir/include"])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <uct/api/version.h>]],
[[ |
@ggouaillardet compiled successfully and didn't need to add --with-ucx |
This was referenced Oct 25, 2017
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
Oct 25, 2017
…lled in /usr Fixes open-mpi#4345 Signed-off-by: Gilles Gouaillardet <[email protected]> (back-ported from commit open-mpi/ompi@af03f55)
ggouaillardet
added a commit
to ggouaillardet/ompi
that referenced
this issue
Oct 25, 2017
…lled in /usr Refs. open-mpi#4345 Signed-off-by: Gilles Gouaillardet <[email protected]> (back-ported from commit open-mpi/ompi@af03f55)
Master PR: #4383 All Pr's merged, closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background information
When I try to compile OpenMPI together with UCX, I expect the configure system to find UCX libraries. Configure script seems to find them, but fails to generate makefiles which point to the right location. This results in libtool failing to properly link the libraries.
What version of Open MPI are you using? (e.g., v1.10.3, v2.1.0, git branch name and hash, etc.)
I use ucx-1.2.1 and OpenMPI 2.1.1 downloaded from GitHub.
Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)
When I compile OpenMPI it fails with following error message:
To ease the reproducibility, I give Dockerfile to compile everything in an isolated environment.
Please describe the system on which you are running
Details of the problem
Using this dockerfile, compilation fails
Changing --with-ucx to --with-ucx=/usr results in successful compilation.
The text was updated successfully, but these errors were encountered: