LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Yusuf Abdulghani (yaghani_at_[hidden])
Date: 2004-03-17 12:31:48


On Mar 16, 2004, at 6:59 PM, Brian W. Barrett wrote:

> On Mar 16, 2004, at 3:53 PM, Yusuf Abdulghani wrote:
>
>> I have compiled and installed LAM-MPI using the xlc/xlf compiler with
>> -O3 optimization. However, when I try compiling the CXX code that
>> comes in the examples directory (by running "make examples" command
>> in the top directory), I get the following error message. Any ideas
>> what could I be doing wrong? Thanks for your help.
>
>> ...
>> make[2]: Nothing to be done for `all'.
>> Making all in cxx
>> source='chapter_10_mpi2.cc' object='chapter_10_mpi2.o' libtool=no \
>> depfile='.deps/chapter_10_mpi2.Po'
>> tmpdepfile='.deps/chapter_10_mpi2.TPo' \
>> depmode=none /bin/sh ../.././config/depcomp \
>> mpic++ -O3 -c -o chapter_10_mpi2.o `test -f 'chapter_10_mpi2.cc' ||
>> echo './'`chapter_10_mpi2.cc
>> "/usr/local/include/mpi2cxx/mpi2cxx_map.h", line 26.7: 1540-0121 (S)
>> A template cannot have "C" linkage.
>
> That error is a little unexpected. Even more fun, I was unable to
> replicate on my system. Do you have an old version of LAM or MPICH
> already installed in /usr/local/, by any chance?
>
Well, I did not have an *older* version of MPI installed. I just had
the LAM-MPI version v7.0.4 installed using the MacOSX disk image. After
installing the image, I wanted to compile some fortran code, so I
downloaded the source code and installed LAM enabling the fortran
bindings.

> Also, could you send the output of 'mpic++ -showme'?
Here is the output:
/opt/ibmcmp/vacpp/6.0/bin/xlc++ -I/usr/local/include -D_REENTRANT
-L/usr/local/lib -llammpio -llammpi++ -llamf77mpi -lmpi -llam

Yusuf