OpenMPI 1.8.1 and PGI 14.6: Too many initializers

I am not sure if this is a bug in PGI or OpenMPI.
I am trying to compile OPenMPI 1.8.1 with PGI 14.6 and include Mellanox OFED 2.2 on CentOS 6.5.

setenv PGI /share/apps/opt/pgi
setenv CC /share/apps/opt/pgi/linux86-64/2014/bin/pgcc
setenv FC /share/apps/opt/pgi/linux86-64/2014/bin/pgfortran
setenv F90 /share/apps/opt/pgi/linux86-64/2014/bin/pgf90
setenv F77 /share/apps/opt/pgi/linux86-64/2014/bin/pgf77
setenv CXX /share/apps/opt/pgi/linux86-64/2014/bin/pgcpp


export CFLAGS=’-tp=bulldozer-64 -fast’
export CXXFLAGS=${CFLAGS}
export FFLAGS=${CFLAGS}
export FCFLAGS=${FFLAGS}

…/configure
–prefix=${MYINSTALLDIR} --with-mxm=/opt/mellanox/mxm --with-fca=/opt/mellanox/fca
–with-tm=/opt/torque --with-knem=/opt/knem-1.1.1.90mlnx --enable-static
–with-hwloc=internal --without-psm

It configures OK, but when compiling it gives this error:
make[2]: Entering directory `/home/user/openmpi/openmpi-1.8.1/build/oshmem/mca/sshmem/verbs’
CC sshmem_verbs_component.lo
CC sshmem_verbs_module.lo
PGC-S-0073-Too many initializers for in (…/…/…/…/…/oshmem/mca/sshmem/verbs/sshmem_verbs_component.c: 165)
PGC-W-0095-Type cast required for this conversion (…/…/…/…/…/oshmem/mca/sshmem/verbs/sshmem_verbs_component.c: 182)
PGC-W-0155-Pointer value created from a nonlong integral type (…/…/…/…/…/oshmem/mca/sshmem/verbs/sshmem_verbs_component.c: 182)
PGC-W-0095-Type cast required for this conversion (…/…/…/…/…/oshmem/mca/sshmem/verbs/sshmem_verbs_component.c: 182)
PGC/x86-64 Linux 14.6-0: compilation completed with severe errors
make[2]: *** [sshmem_verbs_component.lo] Error 1
make[2]: *** Waiting for unfinished jobs…
PGC-S-0073-Too many initializers for in (…/…/…/…/…/oshmem/mca/sshmem/verbs/sshmem_verbs_module.c: 262)
PGC-W-0095-Type cast required for this conversion (…/…/…/…/…/oshmem/mca/sshmem/verbs/sshmem_verbs_module.c: 284)
PGC-W-0155-Pointer value created from a nonlong integral type (…/…/…/…/…/oshmem/mca/sshmem/verbs/sshmem_verbs_module.c: 284)
PGC-W-0095-Type cast required for this conversion (…/…/…/…/…/oshmem/mca/sshmem/verbs/sshmem_verbs_module.c: 284)
PGC-W-0095-Type cast required for this conversion (…/…/…/…/…/oshmem/mca/sshmem/verbs/sshmem_verbs_module.c: 358)
PGC-W-0095-Type cast required for this conversion (…/…/…/…/…/oshmem/mca/sshmem/verbs/sshmem_verbs_module.c: 358)
PGC/x86-64 Linux 14.6-0: compilation completed with severe errors
make[2]: *** [sshmem_verbs_module.lo] Error 1

Hello,

We have filed this problem as

TPR 20729 - OpenMPI does not build with infiniband

our error was

— MCA component mtl:mxm (m4 configuration macro)
checking for MCA component mtl:mxm compile mode… static
checking --with-mxm value… sanity check ok (/opt/mellanox/mxm)
checking --with-mxm-libdir value… simple ok (unspecified)
checking mxm/api/mxm_api.h usability… yes
checking mxm/api/mxm_api.h presence… yes
checking for mxm/api/mxm_api.h… yes
checking for mxm_cleanup in -lmxm… yes
checking for MXM version compatibility… no
configure: error: MXM support requested but not found. Aborting

so we may need to update some infiniband sw.

dave

This issue has been fixed with release 19.1 and newer.