[Mesa-dev] Mesa git: Compilation error after commit 940da36 - common/ac_nir_to_llvm.c

Dieter Nützel Dieter at nuetzel-hh.de
Wed Mar 1 19:28:08 UTC 2017


Hello Marek,

running wth below config.

./autogen.sh --prefix=/usr/local --with-dri-drivers="" 
--with-gallium-drivers=r600,radeonsi,swrast --with-egl-platforms=drm 
--enable-nine --enable-texture-float --enable-opencl 
--with-vulkan-drivers=radeon

make[4]: Entering directory '/opt/mesa/src/amd'
   CC       common/common_libamd_common_la-ac_nir_to_llvm.lo
common/ac_nir_to_llvm.c: In function 'create_llvm_function':
common/ac_nir_to_llvm.c:265:4: error: implicit declaration of function 
'ac_add_function_attr' [-Werror=implicit-function-declaration]
     ac_add_function_attr(main_function, i + 1, AC_FUNC_ATTR_BYVAL);
     ^
common/ac_nir_to_llvm.c: In function 'visit_tex':
common/ac_nir_to_llvm.c:3585:9: warning: missing braces around 
initializer [-Wmissing-braces]
   struct ac_tex_info tinfo = { 0 };
          ^
common/ac_nir_to_llvm.c:3585:9: warning: (near initialization for 
'tinfo.args') [-Wmissing-braces]
common/ac_nir_to_llvm.c:3778:10: warning: missing braces around 
initializer [-Wmissing-braces]
    struct ac_tex_info txf_info = { 0 };
           ^
common/ac_nir_to_llvm.c:3778:10: warning: (near initialization for 
'txf_info.args') [-Wmissing-braces]
common/ac_nir_to_llvm.c: In function 'ac_translate_nir_to_llvm':
common/ac_nir_to_llvm.c:4928:9: warning: missing braces around 
initializer [-Wmissing-braces]
   struct nir_to_llvm_context ctx = {0};
          ^
common/ac_nir_to_llvm.c:4928:9: warning: (near initialization for 
'ctx.ac') [-Wmissing-braces]
common/ac_nir_to_llvm.c: In function 'ac_create_gs_copy_shader':
common/ac_nir_to_llvm.c:5259:9: warning: missing braces around 
initializer [-Wmissing-braces]
   struct nir_to_llvm_context ctx = {0};
          ^
common/ac_nir_to_llvm.c:5259:9: warning: (near initialization for 
'ctx.ac') [-Wmissing-braces]
cc1: some warnings being treated as errors


More information about the mesa-dev mailing list