[mpich-discuss] mpich2&open64 shared object compilation bug&fix

Evren Yurtesen IB eyurtese at abo.fi
Thu Sep 6 17:24:37 CDT 2012


I was trying to compile mpich2 1.4.1p1 using open64 and oddly it kept 
failing with the following configure options...

--enable-fast=O2 --enable-shared --enable-mpe --with-pmi=slurm 
--with-pm=none

I have googled this and found the following forum post:
http://devgurus.amd.com/thread/146210

Where the exact error message which I was getting was mentioned:
  make[4]: Entering directory 
`/home2/ach/soft/wrfipkd/mpich2-1.3.1/src/binding/f90'
   FC              mpi.f90
make[4]: *** [mpi.lo] Error 1


I have modified the configure script and managed to finish installation. 
(diff below). Can this fix be part of mpich2?



--- configure.orig      2012-09-07 00:45:10.571555205 +0300
+++ configure   2012-09-07 00:59:28.956554973 +0300
@@ -16739,6 +16739,10 @@
      # Try to use the compiler name
      if test "$FC" = "ifort" -o "$FC" = "ifc" ; then
          pac_cv_fc_vendor=intel
+    elif test "$FC" = "openf90" ; then
+        pac_cv_fc_vendor=open64
+    elif test "$FC" = "openf95" ; then
+        pac_cv_fc_vendor=open64
      elif test "$FC" = "pgf90" ; then
          pac_cv_fc_vendor=pgi
      elif test "$FC" = "xlf90" -o "$FC" = "xlf90_r" ; then
@@ -16785,6 +16789,14 @@
                 fi
                 ;;

+               open64)
+               # open64 implements the GNU options
+               FC_SHL="$FC -shared -fPIC"
+               if test "$enable_rpath" = yes ; then
+                    FC_LINKPATH_SHL="-Wl,-rpath -Wl,"
+               fi
+               ;;
+
                 pgi)
                 # Portland Group implements the GNU options
                 FC_SHL="$FC -shared -fPIC"







Thanks,
Evren

PS. I created a ticket as well:
https://trac.mcs.anl.gov/projects/mpich2/ticket/1690


More information about the mpich-discuss mailing list