[Mesa-dev] [PATCH 1/2] gallium/targets/dri: Add libunwind to linker flags

Gert Wollny gw.fossdev at gmail.com
Mon Sep 11 16:46:03 UTC 2017


Am Montag, den 11.09.2017, 16:58 +0100 schrieb Emil Velikov:
> Hi Gert,
> 
> On 10 September 2017 at 12:17, Gert Wollny <gw.fossdev at gmail.com>
> wrote:
> > Fixes: build failure in travis configuration "make Gallium ST
> > Other"
> 
> Please use "Fixes: " only with $sha ("commit summary")
> 
> > with libunwind enabled (https://travis-ci.org/gerddie/mesa/jobs/273
> > 673597)
> > ---
> >  src/gallium/targets/dri/Makefile.am | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/src/gallium/targets/dri/Makefile.am
> > b/src/gallium/targets/dri/Makefile.am
> > index 2d2e1aecec..31148bb54f 100644
> > --- a/src/gallium/targets/dri/Makefile.am
> > +++ b/src/gallium/targets/dri/Makefile.am
> > @@ -55,7 +55,8 @@ gallium_dri_la_LIBADD = \
> >         $(SELINUX_LIBS) \
> >         $(EXPAT_LIBS) \
> >         $(LIBDRM_LIBS) \
> > -       $(GALLIUM_COMMON_LIB_DEPS)
> > +       $(GALLIUM_COMMON_LIB_DEPS) \
> > +       $(LIBUNWIND_LIBS)
> 
> This doesn't seem right. GALLIUM_COMMON_LIB_DEPS already has
> $(LIBUNWIND_LIBS) so this change should not be needed.

I already started looking at this, but haven't been able to figure out
why in this specific configuration GALLIUM_COMMON_LIB_DEPS seems to be
empty, or at least it doesn't add libunwind. 

> 
> Can you track exactly what's happening. Using `make V=1' will show
> the full command line.

There is also "--disable-silent-rules" and was thinking about
suggesting to also add this to the travis build configuration. 

> Speaking of which ... some files [1] should include
> src/gallium/Automake.inc and thus define GALLIUM_COMMON_LIB_DEPS.
> As-it they all, badly, duplicate it.
I guess I'll propose patch these files too when I found the culprit for
this problem ;) 

Best, 
Gert 



More information about the mesa-dev mailing list