Re: [OMPI devel] Open MPI: Undefined reference to pthread_atfork

2018-07-01 Thread Gilles Gouaillardet
I was unable to reproduce this on Ubuntu 14.04.5 Note the default gcc is 4.8 gcc-4.9 can be installed, but no g++ nor gfortran. Did you build Open MPI with the same compiler used to build libUtils.so and a.out What do type gcc ls -l /usr/bin/gcc gcc —version g++ —version say ? On top of the info

Re: [OMPI devel] Open MPI: Undefined reference to pthread_atfork

2018-06-22 Thread Jeff Squyres (jsquyres) via devel
"libmpi.so" but through the library "libMyUtils.so". This makes the usage of > parameters "-L/home/dummy/openmpi/build/lib -lmpi" not possible. > > Any more suggestions? > > Thanks, > > L. > > > > > Sent: Fri

Re: [OMPI devel] Open MPI: Undefined reference to pthread_atfork

2018-06-22 Thread lille stor
    Sent: Friday, June 22, 2018 at 10:17 PM From: "Jeff Squyres (jsquyres)" To: "lille stor" Cc: "Open MPI Developers List" Subject: Re: [OMPI devel] Open MPI: Undefined reference to pthread_atfork On Jun 22, 2018, at 4:09 PM, lille stor wrote: > > I tr

Re: [OMPI devel] Open MPI: Undefined reference to pthread_atfork

2018-06-22 Thread Jeff Squyres (jsquyres) via devel
On Jun 22, 2018, at 4:09 PM, lille stor wrote: > > I tried compile the C++ program using "mpic++" like you suggested but > unfortunately g++ still throws the same errror > ("/home/dummy/openmpi/build/lib/libopen-pal.so.20: undefined reference to > pthread_atfork"). > > I suspect that the pro

Re: [OMPI devel] Open MPI: Undefined reference to pthread_atfork

2018-06-22 Thread lille stor
pers List" Cc: "Jeff Squyres (jsquyres)" Subject: Re: [OMPI devel] Open MPI: Undefined reference to pthread_atfork I think Ralph is a little confused -- 2.1.3 is recent enough. :-) Are you using "mpic++" to compile your application? That should add in all the relevant flag

Re: [OMPI devel] Open MPI: Undefined reference to pthread_atfork

2018-06-22 Thread Jeff Squyres (jsquyres) via devel
I think Ralph is a little confused -- 2.1.3 is recent enough. :-) Are you using "mpic++" to compile your application? That should add in all the relevant flags that are needed to compile an Open MPI C++ application. > On Jun 22, 2018, at 3:29 PM, r...@open-mpi.org wrote: > > OMPI 2.1.3??? Is

Re: [OMPI devel] Open MPI: Undefined reference to pthread_atfork

2018-06-22 Thread r...@open-mpi.org
OMPI 2.1.3??? Is there any way you could update to something more recent? > On Jun 22, 2018, at 12:28 PM, lille stor wrote: > > Hi, > > > When compiling a C++ source file named test.cpp that needs a shared library > named libUtils.so (which in its turn needs Open MPI shared library, hence th

[OMPI devel] Open MPI: Undefined reference to pthread_atfork

2018-06-22 Thread lille stor
Hi,   When compiling a C++ source file named test.cpp that needs a shared library named libUtils.so (which in its turn needs Open MPI shared library, hence the parameter -Wl,-rpath-link,/home/dummy/openmpi/build/lib ) as follows: g++ test.cpp -lUtils -Wl,-rpath-link,/home/dummy/openmpi/build/li