Gilles,
With the additional information you provided about "dependency_libs", I
agree that that either of the fixes you propose sound safe.
-Paul
On Mon, Jul 25, 2016 at 6:26 PM, Gilles Gouaillardet
wrote:
> Paul,
>
> in my environment, libslurm.la contains
>
> # Linker
Paul,
in my environment, libslurm.la contains
# Linker flags that can not go in dependency_libs.
inherited_linker_flags=' -pthread'
# Libraries that this one depends upon.
dependency_libs=' -ldl -lpthread'
so bottom line, it invokes the compiler with both -pthread and -lpthread
iirc,
Gilles,
My initial thought is that libslurm probably does require linking
libpthread, either for for linking pthread_* symbols, or for proper
*operation* (such as thread-safe versions of functions which override weak
definitions in libc).
If so, then neither omitting "-pthread" nor telling pgcc
Folks,
This is a followup of a thread that initially started at
http://www.open-mpi.org/community/lists/users/2016/07/29635.php
The user is trying to build Open MPI with PGI compiler and
libslurm.la/libpmi.la support, and slurm was built with gcc compiler.
At first, it fails because the