[Mesa-dev] [PATCH] mesa/st: Include builddir/src/compiler/glsl to fix make check

Gert Wollny gw.fossdev at gmail.com
Mon Sep 11 06:36:29 UTC 2017


Hi Michel, 

I can confirm that the problem exists on 

   8d6b97a815874c7b695471a259fe4b6689890206

i.e.  for me ir_expression_operation.h is created in the build 
directory - and the patch fixes compiling the test in an out of source
build.

Hence - 
Tested-by: Gert Wollny <gw.fossdev at gmail.com> 


Am Sonntag, den 10.09.2017, 13:10 -0500 schrieb Aaron Watry:
> Otherwise, when doing an out-of-tree build you can expect the
> following:
> 
> make[6]: Entering directory \
>          '${MESA_SRC}/build/src/mesa/state_tracker/tests'
>   CXX      test_glsl_to_tgsi_lifetime.o
> In file included from \
>     ${MESA_SRC}/src/mesa/src/mesa/state_tracker/st_glsl_to_tgsi_priva
> te.h:31:0,
>   from \
>     ${MESA_SRC}/src/mesa/src/mesa/state_tracker/st_glsl_to_tgsi_tempr
> ename.h:27,
>   from \
>     ${MESA_SRC}/src/mesa/src/mesa/state_tracker/tests/test_glsl_to_tg
> si_lifetime.cpp:24:
>   ${MESA_SRC}/src/compiler/glsl/ir.h:1502:37: \
>     fatal error: ir_expression_operation.h: No such file or directory
>  #include "ir_expression_operation.h"
> 
> Signed-off-by: Aaron Watry <awatry at gmail.com>
> ---
>  src/mesa/state_tracker/tests/Makefile.am | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/mesa/state_tracker/tests/Makefile.am
> b/src/mesa/state_tracker/tests/Makefile.am
> index 12ae7fab10..cd610e0adf 100644
> --- a/src/mesa/state_tracker/tests/Makefile.am
> +++ b/src/mesa/state_tracker/tests/Makefile.am
> @@ -13,6 +13,7 @@ AM_CPPFLAGS = \
>  	-I$(top_srcdir)/include \
>  	-I$(top_srcdir)/src/gallium/include \
>  	-I$(top_srcdir)/src/gallium/auxiliary \
> +	-I$(top_builddir)/src/compiler/glsl \
>  	$(DEFINES)
>  
>  TESTS = st-renumerate-test


More information about the mesa-dev mailing list