[mvapich-discuss] Building mvapich with GNU GCC 4.3 or higher.

Atencio, Jonathan Gerald jgatenc at sandia.gov
Thu Jun 18 17:53:33 EDT 2009


Hello Jonathan,

I started from a clean mvapich 1.1 directory. Patched using c++.patch. Configured, notice that C++ bindings would be built. However, when I make, the first compile line errors out. Please see the following:

% cd mvapich-1.1
% patch -p1 < c++.patch
patching file MPI-2-C++/contrib/examples/chapter_10_mpi2.cc
patching file MPI-2-C++/contrib/examples/hello_world.cc
patching file MPI-2-C++/contrib/examples/pi.cc
patching file MPI-2-C++/contrib/examples/ring.cc
patching file MPI-2-C++/contrib/examples/topology.cc
patching file MPI-2-C++/contrib/examples/user_bcast.cc
patching file MPI-2-C++/contrib/test_suite/cancel.cc
patching file MPI-2-C++/contrib/test_suite/errhandler.cc
patching file MPI-2-C++/contrib/test_suite/messages.cc
patching file MPI-2-C++/contrib/test_suite/mpi2c++_test.cc
patching file MPI-2-C++/contrib/test_suite/mpi2c++_test.h
patching file MPI-2-C++/contrib/test_suite/range.cc
patching file MPI-2-C++/contrib/test_suite/signal.cc
patching file configure
patching file configure.in
patching file examples/basic/hello++.cc
patching file examples/perftest/config/confdb/aclocal_cxx.m4
patching file examples/test/command/runtests.in
patching file installtest/hello++.cc
patching file src/cxx/test/basic.cxx
patching file src/cxx/test/errtest.cxx
patching file src/cxx/test/send1.cxx
% export CC=gcc CXX=g++ F77=gfortran F90=gfortran F77_GETARGDECL=" "
%  ./configure --with-device=ch_gen2 --with-arch=LINUX -prefix=/gscratch1/jgatenc/mpi/mvapich/1.1 --enable-romio --enable-f77 --enable-sharedlib --enable-cxx -lib="-L/usr/ofed/lib64 -libverbs -libumad -ldl" 2>&1 | tee ../mvapich-build
...
checking whether selected C++ compiler can compile iostream... yes

Include C++ bindings for MPI from http://www.osl.iu.edu/research/mpi2c++
Send bug reports about the C++ to mpi2cpp-devel at osl.iu.edu
...
% make
...
gcc -DHAVE_CONFIG_H -I. -I/gscratch1/jgatenc/mvapich-1.1/mpid/ch_gen2 -I/gscratch1/jgatenc/mvapich-1.1/include -I/gscratch1/jgatenc/mvapich-1.1/include -I/gscratch1/jgatenc/mvapich-1.1/mpid/ch_gen2 -I/gscratch1/jgatenc/mvapich-1.1/mpid/util -DMPID_DEVICE_CODE  -DHAVE_UNAME=1 -DHAVE_NETDB_H=1 -DHAVE_GETHOSTBYNAME=1  -DMPID_DEBUG_NONE -DMPID_STAT_NONE  -fPIC  -DHAVE_MPICHCONF_H -D_GNU_SOURCE -I/gscratch1/jgatenc/mvapich-1.1 -I/gscratch1/jgatenc/mvapich-1.1/mpid/ch_gen2 -I.    -c viainit.c
In file included from ibverbs_header.h:30,
                 from viapacket.h:40,
                 from req.h:48,
                 from mpid.h:226,
                 from viadev.h:30,
                 from viainit.c:52:
via64.h:51:2: error: #error Either _IA32_ or _IA64_ or _X86_64_ or _EM64T_ or _PPC64_ must be defined
via64.h:100:2: error: #error Either _IA32_ or _IA64_ or _X86_64_ or _EM64T_ or _PPC64_ must be defined.
In file included from viainit.c:57:
mpid_smpi.h:66:2: error: #error "No architecture defined !!"
In file included from viainit.c:57:
mpid_smpi.h:203: error: 'SMP_SEND_BUF_SIZE' undeclared here (not in a function)
make[3]: *** [viainit.o] Error 1
Exit status from make was 2
make[2]: *** [mpilib] Error 1
make[1]: *** [mpi-modules] Error 2
make: *** [mpi] Error 2


Thank you,

Jonathan

_____________________________________________
From:   Jonathan Perkins [mailto:perkinjo at cse.ohio-state.edu]
Sent:   Thursday, June 18, 2009 1:52 PM
To:     Atencio, Jonathan Gerald
Cc:     mvapich-discuss at cse.ohio-state.edu
Subject:        Re: [mvapich-discuss] Building mvapich with GNU GCC 4.3 or higher.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20090618/18a0bef0/attachment.html


More information about the mvapich-discuss mailing list