Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Brian W. Barrett (bbarrett_at_[hidden])
Date: 2007-02-24 16:28:40


On Nov 9, 2006, at 9:06 AM, Åke Sandgren wrote:

> I sent this in October and got very little feedback.
>
> There is a problem in ompi_config_pthreads.m4 and
> ompi_check_pthread_pids.m4 at least on Ubuntu Dapper
> with both gcc and pgi.
>
> The attached patch against v1.1.2 fixes the problem.
>
> What happens is that in OMPI_INTL_POSIX_THREADS_LIBS_CXX it was
> incorrectly setting PTHREAD_LIBS to $pl which at the time isn't set
> yet
> and forgetting to reset LIBS on failure.
>
> In OMPI_INTL_POSIX_THREADS_LIBS_FC it was resetting LIBS too quickly
> resulting in -lpthread missing when checking for
> PTHREAD_MUTEX_ERRORCHECK_NP
>
> In OMPI_THREADS_HAVE_DIFFERENT_PIDS it didn't add THREAD_CFLAGS to
> CFLAGS resulting in the code failing to link.
> The testcode in itself was also broken so that some compilers failed
> even to compile it.

Thanks for the report and sorry for the slow reply. I've committed
the patch to the trunk and it should be committed to the v1.2 release
at some point, although possibly not until after the initial 1.2
release.

Brian