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

Atencio, Jonathan Gerald jgatenc at sandia.gov
Fri Jun 19 10:21:10 EDT 2009


>________________________________________
>From: Jonathan Perkins [perkinjo at cse.ohio-state.edu]
>Sent: Friday, June 19, 2009 6:04 AM
>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.
>
>On Thu, Jun 18, 2009 at 03:53:33PM -0600, Atencio, Jonathan Gerald wrote:
>> 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
>
>It's weird that the architecture isn't defined.  I don't see any changes
>that would effect this detection and I'm a bit unsure why this didn't
>show up initially with the earlier version of the gnu compilers.  Can
>you check whether this patched version builds with the older compilers?
>
>Also, I'd like for you to send me the output of 'uname -a' and 'cat
>/proc/cpuinfo'.  Thanks.
>

I get the same error using gcc 4.1,2 now. 

% uname -a
Linux glory144 2.6.18-63chaos #1 SMP Fri Dec 19 15:37:16 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
% cat /proc/cpu
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 2
model name      : Quad-Core AMD Opteron(tm) Processor 8354
stepping        : 3
cpu MHz         : 1100.000
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni cx16 popcnt 
lahf_lm cmp_legacy svm extapic cr8_legacy altmovcr8 abm sse4a misalignsse 3dnowprefetch osvw
bogomips        : 4424.25
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate [8]
,,,
processor       : 15
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 2
model name      : Quad-Core AMD Opteron(tm) Processor 8354
stepping        : 3
cpu MHz         : 1100.000
cache size      : 512 KB
physical id     : 3
siblings        : 4
core id         : 3
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni cx16 popcnt 
lahf_lm cmp_legacy svm extapic cr8_legacy altmovcr8 abm sse4a misalignsse 3dnowprefetch osvw
bogomips        : 4422.72
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate [8]


>>
>>
>> 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.
>>
>>
>>
>
>--
>Jonathan Perkins
>http://www.cse.ohio-state.edu/~perkinjo
>




More information about the mvapich-discuss mailing list