Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] Open MPI + HWLOC + Static build issue
From: Shamis, Pavel (shamisp_at_[hidden])
Date: 2011-08-03 18:58:58


Jeff,
1. We do not have libnuma.a in our setup. So if you want to reproduce the problem, I would suggest to move it to some .bk.
2. Build open mpi
./configure --enable-static --disable-shared
--with-wrapper-ldflags=-static --disable-dlopen --enable-contrib-no-build=vt
and
    make -j 8 orted_LDFLAGS=-all-static all

3. Open MPI compilation fails in orte. Hwloc adds -lnuma to list of libs, as result when orted links the static binary it fails to find
Static version of libnuma and wits with error.

Regards,
Pasha.

> -----Original Message-----
> From: devel-bounces_at_[hidden] [mailto:devel-bounces_at_[hidden]]
> On Behalf Of Jeff Squyres
> Sent: Wednesday, August 03, 2011 10:34 AM
> To: Open MPI Developers
> Subject: Re: [OMPI devel] Open MPI + HWLOC + Static build issue
>
> Pasha --
>
> I'm having trouble reproducing this. My system (RHEL5) has libnuma.so and
> no libnuma.a, but when I configure with:
>
> ./configure --disable-shared --enable-static ...
>
> Everything works fine.
>
> hwloc doesn't specifically look for libnuma.a or libnuma.so -- it just tries to
> link with -lnuma. If that works, then it rules that we have libnuma support.
>
> Can you send more details on exactly what is failing, and how you make that
> happen?
>
>
> On Jul 25, 2011, at 5:56 PM, Shamis, Pavel wrote:
>
> > Hello,
> >
> > I have been trying to compile Open MPI (trunk) static version with hwloc,
> the last is enabled by default in trunk.
> > The build platform is AMD machine, that has dynamic libnuma version only.
> >
> > Problem:
> > Open MPI fails to link orted, because it can't find static version of libnuma.
> >
> > Workaround:
> > add --without-hwloc
> >
> > Real solution:
> > Is it a way to keep hwloc enabled when static libnuma isn't presented on
> the system ? If it's a such way, I would like to know how to enable it.
> > Otherwise, I think configure script should handle such scenario, it means
> disable hwloc and enable some other alternative.
> >
> > Regards,
> >
> > Pavel (Pasha) Shamis
> > ---
> > Application Performance Tools Group
> > Computer Science and Math Division
> > Oak Ridge National Laboratory
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > devel mailing list
> > devel_at_[hidden]
> > hxxp://www.open-mpi.org/mailman/listinfo.cgi/devel
>
>
> --
> Jeff Squyres
> jsquyres_at_[hidden]
> For corporate legal information go to:
> hxxp://www.cisco.com/web/about/doing_business/legal/cri/
>
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> hxxp://www.open-mpi.org/mailman/listinfo.cgi/devel