[mvapich-discuss] Error while compiling mvapich-1.1 with sunstudio

Thomas Bach bachth at uni-mainz.de
Mon Dec 8 08:57:40 EST 2008


Hello,

Jonathan Perkins <perkinjo at cse.ohio-state.edu> writes:

> Thomas:
> We've tested mvapich-1.1 with a new install of Sun Studio 12 early this
> week.  Everything works fine for us.  It looks like there is a slight
> issue with the arguments that you're passing to the compiler.
>
> You should use the second export line after removing the '='.
>
> Ex.
> export LIBS=${LIBS:--L${IBHOME_LIB} -R${IBHOME_LIB} -libverbs -libumad
> -lpthread}
>

Ok, with the new LIBS variable it seems to work except for the c++
part. Also I had to exchange the line
SHARED_LIB_SEARCH_PATH_LEADER='-Wl,-rpath-link -Wl,'
with
SHARED_LIB_SEARCH_PATH_LEADER='-R'
in mpif77 and mpif90 to get both working.

That also seems to be the problem with the c++ part:

$ cat MPI-2-C++/config.log 
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:604: checking for a BSD compatible install
configure:657: checking whether build environment is sane
configure:714: checking whether make --no-print-directory sets ${MAKE}
configure:753: checking for working aclocal
configure:766: checking for working autoconf
configure:779: checking for working automake
configure:792: checking for working autoheader
configure:805: checking for working makeinfo
configure:959: checking host system type
configure:1083: checking for awk
configure:1118: checking for wc
configure:1398: checking MPICH version
configure:1594: checking for MPICH's underlying C++ compiler
configure:2127: checking if want profiling support
configure:2186: checking for c++
configure:2218: checking whether the C++ compiler (/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-serious3/bin/mpicxx  -DMPICH_SKIP_MPICXX  ) works
configure:2234: /homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-serious3/bin/mpicxx -o conftest  -DMPICH_SKIP_MPICXX    conftest.C -L/opt/ofed/lib64 -R/opt/ofed/lib64 -libverbs -libumad -lpthread 1>&5
sunCC: Warning: Option -Wl,-rpath-link passed to ld, if ld is invoked, ignored otherwise
sunCC: Warning: Option -Wl,/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-serious3/lib/shared passed to ld, if ld is invoked, ignored otherwise
/usr/local/sunstudio/suse_es10_64/sunstudio12/prod/lib/amd64/ld: unrecognized option '-Wl,-rpath-link'
/usr/local/sunstudio/suse_es10_64/sunstudio12/prod/lib/amd64/ld: use the --help option for usage information
configure: failed program was:

#line 2229 "configure"
#include "confdefs.h"

int main(){return(0);}

In which step is mpicxx generated?

Greets,
        Thomas


More information about the mvapich-discuss mailing list