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

Thomas Bach bachth at uni-mainz.de
Tue Dec 2 10:17:13 EST 2008


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-mine.log.gz
Type: application/octet-stream
Size: 15007 bytes
Desc: not available
Url : http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20081202/ce2fa69e/make-mine.log-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: install-mine.log.gz
Type: application/octet-stream
Size: 962 bytes
Desc: not available
Url : http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20081202/ce2fa69e/install-mine.log-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-mine.log.gz
Type: application/octet-stream
Size: 5348 bytes
Desc: not available
Url : http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20081202/ce2fa69e/config-mine.log-0001.obj


More information about the mvapich-discuss mailing list