-
Notifications
You must be signed in to change notification settings - Fork 901
'./configure --without-lsf' causes build to fail with "no/lib" error #3546
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
Comments
thanks for the report, diff --git a/config/orte_check_lsf.m4 b/config/orte_check_lsf.m4
index c32c1aa..416c83c 100644
--- a/config/orte_check_lsf.m4
+++ b/config/orte_check_lsf.m4
@@ -26,7 +26,7 @@ dnl
# ORTE_CHECK_LSF(prefix, [action-if-found], [action-if-not-found])
# --------------------------------------------------------
AC_DEFUN([ORTE_CHECK_LSF],[
- if test -z "$orte_check_lsf_happy" ; then
+ AS_IF([test -z "$orte_check_lsf_happy"],[
AC_ARG_WITH([lsf],
[AC_HELP_STRING([--with-lsf(=DIR)],
[Build LSF support])])
@@ -34,6 +34,7 @@ AC_DEFUN([ORTE_CHECK_LSF],[
AC_ARG_WITH([lsf-libdir],
[AC_HELP_STRING([--with-lsf-libdir=DIR],
[Search for LSF libraries in DIR])])
+ AS_IF([test "$with_lsf" != "no"],[
OPAL_CHECK_WITHDIR([lsf-libdir], [$with_lsf_libdir], [libbat.*])
# Defaults
@@ -123,7 +124,8 @@ AC_DEFUN([ORTE_CHECK_LSF],[
LIBS="$orte_check_lsf_$1_save_LIBS"
OPAL_SUMMARY_ADD([[Resource Managers]],[[LSF]],[$1],[$orte_check_lsf_happy])
- fi
+ ],[orte_check_lsf_happy=no])
+ ])
AS_IF([test "$orte_check_lsf_happy" = "yes"],
[$1_LIBS="[$]$1_LIBS $orte_check_lsf_LIBS" |
I tried your patch. However on the test system I fails with the following error /openmpi-2.1.1/config/missing: line 81: aclocal-1.15: command not found
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make: *** [aclocal.m4] Error 127 The automake version on the system is 1.14.1. Is there any way to fix it with this version or is updating automake mandatory here? |
@pmillet yes, recent autotools are mandatory since you need to run
and then move the tarball to your scientific linux 6 box, and
|
- updated perl version (/usr/bin/env/perl instead of /usr/bin/perl) - fixed disabling lsf not working (see open-mpi/ompi#3546)
…ach path * Reference Issue open-mpi#3546 * If the user specified `--without-lsf` then do not check for it on the system, even if it is there. This can lead to the build failure identified in the issue above. Signed-off-by: Joshua Hursey <[email protected]>
…ach path * Reference Issue open-mpi#3546 * If the user specified `--without-lsf` then do not check for it on the system, even if it is there. This can lead to the build failure identified in the issue above. Signed-off-by: Joshua Hursey <[email protected]>
…ach path * Reference Issue open-mpi#3546 * If the user specified `--without-lsf` then do not check for it on the system, even if it is there. This can lead to the build failure identified in the issue above. Signed-off-by: Joshua Hursey <[email protected]>
@pmillet It looks like you took the patch from @ggouaillardet into your other project. I'm assuming that means it worked for you. PR #4204 contains the full version of the fix. Let us know if you have any problems with that patch. I was able to reproduce by putting the LSF library in the |
The patch from @ggouaillardet did solve them problem I had. |
…ach path * Reference Issue open-mpi#3546 * If the user specified `--without-lsf` then do not check for it on the system, even if it is there. This can lead to the build failure identified in the issue above. Signed-off-by: Joshua Hursey <[email protected]> (cherry picked from commit 24a8b5c) Signed-off-by: Joshua Hursey <[email protected]>
…ach path * Reference Issue open-mpi#3546 * If the user specified `--without-lsf` then do not check for it on the system, even if it is there. This can lead to the build failure identified in the issue above. Signed-off-by: Joshua Hursey <[email protected]> (cherry picked from commit 24a8b5c) Signed-off-by: Joshua Hursey <[email protected]>
…ach path * Reference Issue #3546 * If the user specified `--without-lsf` then do not check for it on the system, even if it is there. This can lead to the build failure identified in the issue above. Signed-off-by: Joshua Hursey <[email protected]> (cherry picked from commit 24a8b5c) Signed-off-by: Joshua Hursey <[email protected]>
Background information
What version of Open MPI are you using? (e.g., v1.10.3, v2.1.0, git branch name and hash, etc.)
v2.1.1
Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)
release tarball: openmpi-2.1.1.tar.gz
Please describe the system on which you are running
Scientific Linux 6
various
various
Details of the problem
When trying to build OpenMPI without LSF support using --without-lsf in configure the build will eventually fail with the following error:
A similar issue with a different set of configure options has been reported in #3447 (just with 'yes/lib' instead of 'no/lib').
The text was updated successfully, but these errors were encountered: