Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] 1.6.2rc2 VT build failure [with patch]
From: Bert Wesarg (bert.wesarg_at_[hidden])
Date: 2012-09-11 15:06:26


Hi,

On Tue, Sep 11, 2012 at 8:10 PM, Paul Hargrove <phhargrove_at_[hidden]> wrote:
> I've not tested any other recent RCs, but had a chance today to run this one
> on a subset of my normal pile of test platforms.
>
> I am not sure why this has only hit me on NetBSD, because the problem looks
> pretty generic.
> When looking at
> ompi/contrib/vt/vt/extlib/otf/tools/otfaux/Makefile.am
> I find the following:
> otfaux_LDADD = \
> $(top_builddir)/otfauxlib/libotfaux.la \
> $(top_builddir)/otflib/libotf.la \
> $(MATHLIB)
> otfaux_DEPENDENCIES = $(otfaux_LDADD)
>
> Since "MATHLIB = -lm" the dependencies list "-lm" as a target and results in
> a build which ends with
> Making all in otfaux
> CXX otfaux.o
> CXX Control.o
> CXX Handler.o
> CXX Stats.o
> make: don't know how to make -lm. Stop
>
> In my testing the following patch resolves the problem by expressing LDADD
> in terms of DEPENDENCIES, instead of the other way around:
> --- ompi/contrib/vt/vt/extlib/otf/tools/otfaux/Makefile.am.orig 2012-09-11
> 10:59:05.000000000 -0700
> +++ ompi/contrib/vt/vt/extlib/otf/tools/otfaux/Makefile.am 2012-09-11
> 11:00:08.000000000 -0700
> @@ -8,11 +8,12 @@
> otfaux
> endif
>
> -otfaux_LDADD = \
> +otfaux_DEPENDENCIES = \
> $(top_builddir)/otfauxlib/libotfaux.la \
> - $(top_builddir)/otflib/libotf.la \
> + $(top_builddir)/otflib/libotf.la
> +otfaux_LDADD = \
> + $(otfaux_otfaux_DEPENDENCIES) \
> $(MATHLIB)
> -otfaux_DEPENDENCIES = $(otfaux_LDADD)
> otfaux_SOURCES = \
> Control.h \
> Handler.h \

Thanks. That looks correctly analyzed and fixed. should be in trunk in
the next 24h.

Bert

>
>
> -Paul
>