Re: [OMPI users] [EXTERNAL] Re: mpicc link shouldn't add -ldl and -lhwloc

2012-05-31 Thread Jed Brown
On Thu, May 31, 2012 at 6:20 AM, Jeff Squyres wrote: > On May 29, 2012, at 11:42 AM, Jed Brown wrote: > > > The pkg-config approach is to use pkg-config --static if you want to > link that library statically. > > Do the OMPI pkg-config files not do this properly? > Looks

Re: [OMPI users] [EXTERNAL] Re: mpicc link shouldn't add -ldl and -lhwloc

2012-05-31 Thread Jeff Squyres
On May 29, 2012, at 11:42 AM, Jed Brown wrote: > The pkg-config approach is to use pkg-config --static if you want to link > that library statically. Do the OMPI pkg-config files not do this properly? > So the problem is almost exclusively one of binary compatibility. If an app > or library

Re: [OMPI users] [EXTERNAL] Re: mpicc link shouldn't add -ldl and -lhwloc

2012-05-29 Thread Jed Brown
On Tue, May 29, 2012 at 9:05 AM, Jeff Squyres wrote: > > > We've tossed around ideas such as having the wrappers always assume > dynamic linking (e.g., only include a minimum of libraries), and then add > another wrapper option like --wrapper:static (or whatever) to know when

Re: [OMPI users] [EXTERNAL] Re: mpicc link shouldn't add -ldl and -lhwloc

2012-05-29 Thread Jeff Squyres
On May 27, 2012, at 1:52 PM, Jed Brown wrote: > On Wed, May 23, 2012 at 8:29 AM, Barrett, Brian W wrote: > > > And therein lies the problem. We have a number of users who build Open > > MPI statically and even some who build both static and shared libraries in > > the same

Re: [OMPI users] [EXTERNAL] Re: mpicc link shouldn't add -ldl and -lhwloc

2012-05-27 Thread Jed Brown
On Wed, May 23, 2012 at 8:29 AM, Barrett, Brian W wrote: > >I should add the caveat that they are need when linking statically, but > >not when using shared libraries. > > And therein lies the problem. We have a number of users who build Open > MPI statically and even some

Re: [OMPI users] [EXTERNAL] Re: mpicc link shouldn't add -ldl and -lhwloc

2012-05-24 Thread Jeff Squyres
On May 24, 2012, at 6:07 PM, Orion Poplawski wrote: >>> I should add the caveat that they are need when linking statically, but >>> not when using shared libraries. >> >> And therein lies the problem. We have a number of users who build Open >> MPI statically and even some who build both static

Re: [OMPI users] [EXTERNAL] Re: mpicc link shouldn't add -ldl and -lhwloc

2012-05-24 Thread Orion Poplawski
On 05/23/2012 07:29 AM, Barrett, Brian W wrote: On 5/22/12 10:36 PM, "Orion Poplawski" wrote: On 05/22/2012 10:34 PM, Orion Poplawski wrote: On 05/21/2012 06:15 PM, Jeff Squyres wrote: On May 15, 2012, at 10:37 AM, Orion Poplawski wrote: $ mpicc -showme:link -pthread

Re: [OMPI users] [EXTERNAL] Re: mpicc link shouldn't add -ldl and -lhwloc

2012-05-23 Thread Barrett, Brian W
On 5/22/12 10:36 PM, "Orion Poplawski" wrote: >On 05/22/2012 10:34 PM, Orion Poplawski wrote: >> On 05/21/2012 06:15 PM, Jeff Squyres wrote: >>> On May 15, 2012, at 10:37 AM, Orion Poplawski wrote: >>> $ mpicc -showme:link -pthread -m64 -L/usr/lib64/openmpi/lib