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

Jonathan Perkins perkinjo at cse.ohio-state.edu
Thu Dec 4 12:12:04 EST 2008


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}


On Tue, Dec 02, 2008 at 04:17:13PM +0100, Thomas Bach wrote:
> Jonathan Perkins <perkinjo at cse.ohio-state.edu> writes:
> > Thomas:
> > In order to get fortran support using the Sun Studio compilers, you'll
> > need to replace the -Wl,-rpath option with -R.
> OK, so I firstly changed
> export LIBS=${LIBS:--L${IBHOME_LIB} -Wl,-rpath=${IBHOME_LIB} -libverbs -libumad -lpthread}
> 
> to
> export LIBS=${LIBS:--L${IBHOME_LIB} -R -libverbs -libumad -lpthread}
> and another time to
> export LIBS=${LIBS:--L${IBHOME_LIB} -R=${IBHOME_LIB} -libverbs -libumad -lpthread}
> 
> The second one did fail with kind of the same output. The first one
> looked much better but still seems to fail. I attached the log-file of
> that one.
> Especially compilation of the testing programs fails:
> $ mpicc -o cpi cpi.c 
> cpi.o: In function `main':
> cpi.c:(.text+0x276): undefined reference to `fabs'
> 
> $ mpiCC -o hello++ hello++.cc 
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi++.h", line 40: Error: Could not open include file "mpi2c++/mpi2c++_config.h".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi2c++_list.h", line 32: Error: Could not open include file "mpi2c++/mpi2c++_config.h".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi2c++_list.h", line 57: Error: Type name expected instead of "MPI2CPP_BOOL_T".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi2c++_list.h", line 57: Error: Identifier expected instead of "const".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi2c++_list.h", line 57: Error: Use ";" to terminate declarations.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi2c++_list.h", line 58: Error: Use ";" to terminate declarations.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi2c++_list.h", line 58: Error: Type name expected instead of "MPI2CPP_BOOL_T".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi2c++_list.h", line 58: Error: Identifier expected instead of "const".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi2c++_list.h", line 58: Error: Multiple declaration for const.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi2c++_list.h", line 58: Error: Use ";" to terminate declarations.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi2c++_list.h", line 63: Error: The operation "List::iter != List::iter" is illegal.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/mpi++.h", line 97: Error: Type name expected instead of "_MPIPP_EXTERN_".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 32: Error: Type name expected instead of "_MPIPP_EXTERN_".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 32: Error: Identifier expected instead of "const".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 32: Error: Use ";" to terminate declarations.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 33: Error: Use ";" to terminate declarations.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 33: Error: Type name expected instead of "_MPIPP_EXTERN_".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 33: Error: Identifier expected instead of "const".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 33: Error: Multiple declaration for const.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 33: Error: Use ";" to terminate declarations.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 34: Error: Use ";" to terminate declarations.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 34: Error: Type name expected instead of "_MPIPP_EXTERN_".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 34: Error: Identifier expected instead of "const".
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 34: Error: Multiple declaration for const.
> "/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/include/mpi2c++/constants.h", line 34: Error: Use ";" to terminate declarations.
> Compilation aborted, too many Error messages.
> 
> $ mpif90 pi3f90.f90 
> sunf90: Warning: Option -Wl,-rpath-link passed to ld, if ld is invoked, ignored otherwise
> sunf90: Warning: Option -Wl,/homes/zdv/bachth/libraries/mvapich/mvapich-1.1-sun-wl-rpath-r2/lib/shared passed to ld, if ld is invoked, ignored otherwise
> /usr/bin/ld: unrecognized option '-Wl,-rpath-link'
> /usr/bin/ld: use the --help option for usage information
> 
> I was only able to succesfully compile and run iotest...
> 
> My configure-line still looks like this:
> >> ./configure --with-device=ch_gen2 --with-arch=LINUX -prefix=${PREFIX} \
> >> 	--with-romio --without-mpe -lib="$LIBS" --enable-cxx --enable-f77 \
> >>         --enable-f90modules --enable-f90 --enable-sharedlib 2>&1 |tee config-mine.log
> >> 
> 
> Greets,
>         Thomas Bach.
> 
> PS: Is mvapich-1.1 known to work with sunstudio? I'm not quite sure if
> the problem depends on our setup or if there is a basic conflict
> between mvapich and latest sunstudio.
> 

-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo


More information about the mvapich-discuss mailing list