[ewg] mvapich2 rpmbuild issue

Jeff Squyres jsquyres at cisco.com
Thu Mar 8 08:34:46 PST 2007


Whoa -- why is there an mpi.h being installed into /usr/local/ofed/ 
include?

That should not be -- each MPI's mpi.h is likely to be different and  
they'll conflict.  Hence, if you have an mpi.h installed into /usr/ 
local/ofed/include, and since each MPI has to -I that directory in  
order to build (to get verbs header files), it's easy to see where  
things go wrong.

Can you find out where that mpi.h came from?

I just did a build of 0708 and didn't have that problem (admittedly,  
I only built OMPI -- not MVAPICH or MVAPICH2), and do not have an  
mpi.h in /usr/local/ofed/include.



On Mar 8, 2007, at 11:30 AM, Vladimir Sokolovsky wrote:

> Hi Shaun,
> I have the following failure on RHEL4/5 x86_64 with  
> OFED-1.2-20070308-0708:
>
>
> /var/tmp/OFED/usr/local/ofed/include/mpi.h:657: error: previous  
> declaration of 'PMPI_Info_get' was here
> /var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/src/mpi/romio/mpi-io/../../../ 
> include/mpi.h:1060: error: conflicting types for 'PMPI_Info_get_nkeys'
> /var/tmp/OFED/usr/local/ofed/include/mpi.h:659: error: previous  
> declaration of 'PMPI_Info_get_nkeys' was here
> /var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/src/mpi/romio/mpi-io/../../../ 
> include/mpi.h:1061: error: conflicting types for  
> 'PMPI_Info_get_nthkey'
> /var/tmp/OFED/usr/local/ofed/include/mpi.h:660: error: previous  
> declaration of 'PMPI_Info_get_nthkey' was here
> /var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/src/mpi/romio/mpi-io/../../../ 
> include/mpi.h:1062: error: conflicting types for  
> 'PMPI_Info_get_valuelen'
> /var/tmp/OFED/usr/local/ofed/include/mpi.h:658: error: previous  
> declaration of 'PMPI_Info_get_valuelen' was here
> /var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/src/mpi/romio/mpi-io/../../../ 
> include/mpi.h:1063: error: conflicting types for 'PMPI_Info_set'
> /var/tmp/OFED/usr/local/ofed/include/mpi.h:655: error: previous  
> declaration of 'PMPI_Info_set' was here
> make[5]: *** [close.o] Error 1
> make[5]: Leaving directory `/var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/ 
> src/mpi/romio/mpi-io'
> Make failed in directory mpi-io
> make[4]: *** [mpiolib] Error 1
> make[4]: Leaving directory `/var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/ 
> src/mpi/romio'
> make[3]: *** [mpio] Error 2
> make[3]: Leaving directory `/var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/ 
> src/mpi/romio'
> make[2]: *** [all-redirect] Error 1
> make[2]: Leaving directory `/var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/ 
> src/mpi'
> make[1]: *** [all-redirect] Error 2
> make[1]: Leaving directory `/var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/src'
> make: *** [all-redirect] Error 2
> Make failed in directory mpi-io
> make[4]: *** [mpiolib] Error 1
> make[4]: Leaving directory `/var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/ 
> src/mpi/romio'
> make[3]: *** [mpio] Error 2
> make[3]: Leaving directory `/var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/ 
> src/mpi/romio'
> make[2]: *** [all-redirect] Error 1
> make[2]: Leaving directory `/var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/ 
> src/mpi'
> make[1]: *** [all-redirect] Error 2
> make[1]: Leaving directory `/var/tmp/OFEDRPM/BUILD/mvapich2-0.9.8/src'
> make: *** [all-redirect] Error 2
> Failure in building MVAPICH2.
> Please file an error report to mvapich-discuss at cse.ohio-state.edu  
> with all your log files.
> error: Bad exit status from /var/tmp/rpm-tmp.41716 (%install)
>
>
> RPM build errors:
>    user rowland does not exist - using root
>    group mvapich does not exist - using root
>    user rowland does not exist - using root
>    group mvapich does not exist - using root
>    Bad exit status from /var/tmp/rpm-tmp.41716 (%install)
> ERROR: Failed executing "rpmbuild --rebuild --define '_topdir /var/ 
> tmp/OFEDRPM' --define '_prefix /usr/local/ofed^M/mpi/gcc/ 
> mvapich2-0.9.8-8' --define '_name mvapich2_gcc' --define  
> 'build_root /var/tmp/OFED^M' --define 'impl ofa' --define  
> 'multithread 0' --define 'romio 1' --define 'shared_libs 1' -- 
> define 'rdma_cm 1' --define 'ckpt 0' --define 'open_ib_home /usr/ 
> local/ofed^M' --define 'comp_env CC=gcc CXX=g++ F77=gfortran  
> F90=gfortran' --define 'auto_req 0' --define 'mpi_selector /usr/ 
> local/ofed^M/bin/mpi-selector' --define 'ofa_build 1' /test/ 
> OFED-1.2-20070308-0708/SRPMS/mvapich2-0.9.8-8.src.rpm"
>
>
> I can't open an issue in bugzilla because of DNS problems.
>
> Regards,
> Vladimir
>
>
> _______________________________________________
> ewg mailing list
> ewg at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg


-- 
Jeff Squyres
Server Virtualization Business Unit
Cisco Systems





More information about the ewg mailing list