Bug 100060

Summary: wsi/wsi_common_wayland.c:25:41: fatal error: wayland-drm-client-protocol.h: No such file or directory
Product: Mesa Reporter: Vedran Miletić <vedran>
Component: EGL/WaylandAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium CC: robink
Version: gitKeywords: bisected, regression
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Vedran Miletić 2017-03-04 17:41:29 UTC
I configure with:

$ PKG_CONFIG_PATH=/usr/local/share/pkgconfig ./autogen.sh --enable-egl --enable-driglx-direct --disable-gles1 --enable-gles2 --enable-shared-glapi --enable-glx-tls --enable-dri --enable-texture-float --with-dri-drivers="" --with-egl-platforms=drm,wayland,surfaceless,x11 --with-gallium-drivers=r600,radeonsi,swrast --with-vulkan-drivers=radeon --enable-opencl --enable-opencl-icd --enable-nine --enable-gbm --libdir=/usr/local/lib64 --enable-debug

Compilation fails with:

make[4]: Entering directory '/home/vedranm/workspace/mesa/src/vulkan'
  CC       wsi/wsi_common_wayland.lo
  CC       util/vk_enum_to_str.lo
  CC       wsi/wsi_common_x11.lo
  CCLD     libvulkan_util.la
wsi/wsi_common_wayland.c:25:41: fatalna greška: wayland-drm-client-protocol.h: No such file or directory
 #include <wayland-drm-client-protocol.h>
                                         ^
kompajliranje prekinuto.
Makefile:652: recipe for target 'wsi/wsi_common_wayland.lo' failed
make[4]: *** [wsi/wsi_common_wayland.lo] Error 1
make[4]: *** Čekam nedovršene poslove....
make[4]: Leaving directory '/home/vedranm/workspace/mesa/src/vulkan'
Makefile:551: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/vedranm/workspace/mesa/src/vulkan'
Makefile:856: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/vedranm/workspace/mesa/src'
Makefile:647: recipe for target 'all' failed

git bisect claims this is the first bad commit:

e135ce6f08841aaa26685964e5ba3cfb19fd3d36 is the first bad commit
commit e135ce6f08841aaa26685964e5ba3cfb19fd3d36
Author: Jason Ekstrand <jason.ekstrand@intel.com>
Date:   Wed Mar 1 19:18:56 2017 -0800

    vulkan: Build common Vulkan code earlier
    
    Reviewed-by: Emil Velikov <emil.velikov@collabora.com>

:040000 040000 db0b4ca0d73b0d5626a926b989043f83c132433b c84395fee4c5754797db796ccad822828c14422c M	src
Comment 1 Emil Velikov 2017-03-04 23:50:19 UTC
Should be fixed with

commit eaf4a106bdcf476078ef4f84c81329034a226650
Author: Emil Velikov <emil.velikov@collabora.com>
Date:   Sat Mar 4 21:42:18 2017 +0000

    automake: move wayland-drm prior to Vulkan

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.