Thomas, Siegmar and all,

there is a bug in configure, it is fixed in both master and v1.10 git repositories (v2.x coming soon) FCFLAGS are incorrectly reset during configure, hence the various and random errors you got.

This is a one line fix, but you need recent autotools and re-run autogen.pl after you applied it.

https://github.com/ggouaillardet/ompi-release/commit/bb0c5116e45f66ed8048c0772b9e1f0b178d0411.diff

diff --git a/config/ompi_fortran_check_use_only.m4 
b/config/ompi_fortran_check_use_only.m4
index 3028490..c147167 100644
--- a/config/ompi_fortran_check_use_only.m4
+++ b/config/ompi_fortran_check_use_only.m4
@@ -35,6 +35,7 @@ dnl ----------------------------------------------------
 AC_DEFUN([OMPI_FORTRAN_CHECK_USE_ONLY],[
     AS_VAR_PUSHDEF([use_only_var], [ompi_cv_fortran_use_only])
     OPAL_VAR_SCOPE_PUSH([FCFLAGS_save])
+    FCFLAGS_save=$FCFLAGS
     FCFLAGS="-I. $FCFLAGS"

     AC_CACHE_CHECK([if Fortran compiler supports USE...ONLY], use_only_var,


you can also apply the attached patch to the configure of the openmpi-1.10.2rc1 tarball


Sorry for the inconvenience,


Gilles

On 12/22/2015 8:53 AM, Thomas Jahns wrote:
Hello,

On Dec 21, 2015, at 12:46 , Siegmar Gross wrote:
 LDFLAGS="-m64" CC="gcc" CXX="g++" FC="gfortran" \
 CFLAGS="-m64" CXXFLAGS="-m64" FCFLAGS="-m64" \
 CPP="cpp" CXXCPP="cpp" \

I might be wrong but are you perhaps missing FFLAGS and F77 settings here?

Regards, Thomas
--
Thomas Jahns
DKRZ GmbH, Department: Application software

Deutsches Klimarechenzentrum
Bundesstraße 45a
D-20146 Hamburg

Phone: +49-40-460094-151
Fax: +49-40-460094-270
Email: Thomas Jahns <ja...@dkrz.de <mailto:ja...@dkrz.de>>





_______________________________________________
users mailing list
us...@open-mpi.org
Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
Link to this post: 
http://www.open-mpi.org/community/lists/users/2015/12/28198.php

--- orig/openmpi-1.10.2rc1/configure    2015-12-20 00:30:07.000000000 +0900
+++ openmpi-1.10.2rc1/configure 2015-12-22 09:25:27.837776888 +0900
@@ -58597,7 +58597,7 @@
     env | grep ompi_scope
     ompi_scope_index=`expr $ompi_scope_index + 1`

-    FCFLAGS="-I. $FCFLAGS"
+    FCFLAGS_save=$FCFLAGS; FCFLAGS="-I. $FCFLAGS"

     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler 
supports USE...ONLY" >&5
 $as_echo_n "checking if Fortran compiler supports USE...ONLY... " >&6; }

Reply via email to