openmpi 1.6.1 failed to build with PGI 12.8

I have tried PGI 12.8, 11.9 and also 10.0, all failed with error like the following:

Making all in vtwrapper
make[6]: Entering directory `/usr/src/redhat/BUILD/openmpi-1.6.1/ompi/contrib/vt/vt/tools/vtwrapper’
CXX vtwrapper-vt_wrapper.o
“/usr/pgi/linux86-64/12.8/include/CC/stl/_threads.h”, line 356: error:
identifier “omp_lock_t” is undefined
omp_lock_t _M_lock;
^

“/usr/pgi/linux86-64/12.8/include/CC/stl/_threads.h”, line 359: error:
identifier “omp_init_lock” is undefined
omp_init_lock(&_M_lock);
^

“/usr/pgi/linux86-64/12.8/include/CC/stl/_threads.h”, line 364: error:
identifier “omp_destroy_lock” is undefined
omp_destroy_lock(&_M_lock);
^

“/usr/pgi/linux86-64/12.8/include/CC/stl/_threads.h”, line 369: error:
identifier “omp_set_lock” is undefined
omp_set_lock(&_M_lock);
^

“/usr/pgi/linux86-64/12.8/include/CC/stl/_threads.h”, line 375: error:
identifier “omp_set_lock” is undefined
omp_set_lock(&_M_lock);
^

“/usr/pgi/linux86-64/12.8/include/CC/stl/_threads.h”, line 380: error:
identifier “omp_unset_lock” is undefined
omp_unset_lock(&_M_lock);
^

6 errors detected in the compilation of “vt_wrapper.cc”.
make[6]: *** [vtwrapper-vt_wrapper.o] Error 2

\

Where do I file bugs?
Thanks!
Limin

Hi Limin,

Where do I file bugs?

You can file bugs with PGI Customer Service (trs@pgroup.com), however, this isn’t a compiler bug, but rather a problem with OpenMPI. Looks like they have it fixed in their nightly build. You can see the full email trail at http://www.open-mpi.org/community/lists/users/2012/08/20020.php.

Hope this helps,
Mat