Skip to contentSkip to conversation

mesa: Fix parallel make race

PATCH In review Richard Purdie 2 participants 2 messages Jun 28, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mesa: Fix parallel make race

Builds keep failing with a race over the generated header file, fix it!

---
 .../mesa/files/parallel-make-race-fix.patch   | 26 +++++++++++++++++++
 meta/recipes-graphics/mesa/mesa_18.1.2.bb     |  1 +
 2 files changed, 27 insertions(+)
 create mode 100644 meta/recipes-graphics/mesa/files/parallel-make-race-fix.patch
meta/recipes-graphics/mesa/files/parallel-make-race-fix.patch new file +26 -0
new file mode 100644
index 00000000000..142279584e4
@@ -0,0 +1,26 @@
+There is a parallel make build issue in src/egl/drivers/dri2/
+for wayland builds. Can be reproduced with:
+
+$ rm src/egl/drivers/dri2/*.h src/egl/drivers/dri2/platform_wayland.lo
+$ make -C src/egl/ drivers/dri2/platform_wayland.lo
+
+../../../mesa-18.1.2/src/egl/drivers/dri2/platform_wayland.c:50:10: fatal error: linux-dmabuf-unstable-v1-client-protocol.h: No such file or directory
+
+This patch adds the missing dependency.
+
+Signed-off-by Richard Purdie <[email protected]>
+
+Upstream-Status: Pending
+
+Index: mesa-18.1.2/src/egl/Makefile.am
+===================================================================
+--- mesa-18.1.2.orig/src/egl/Makefile.am
++++ mesa-18.1.2/src/egl/Makefile.am
+@@ -80,6 +80,7 @@ drivers/dri2/linux-dmabuf-unstable-v1-cl
+ if HAVE_PLATFORM_WAYLAND
+ drivers/dri2/linux-dmabuf-unstable-v1-protocol.lo: drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h
+ drivers/dri2/egl_dri2.lo: drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h
++drivers/dri2/platform_wayland.lo: drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h
+ 
+ AM_CFLAGS += $(WAYLAND_CLIENT_CFLAGS)
+ libEGL_common_la_LIBADD += $(WAYLAND_CLIENT_LIBS)
meta/recipes-graphics/mesa/mesa_18.1.2.bb +1 -0
index 2c06b1eb7ba..9a9a2b25623 100644
@@ -8,6 +8,7 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
            file://0005-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch \
            file://0006-Use-Python-3-to-execute-the-scripts.patch \
            file://0007-dri-i965-Add-missing-time.h-include.patch \
+           file://parallel-make-race-fix.patch \
 "
 
 SRC_URI[md5sum] = "a2d4f031eb6bd6111d44d84004476918"
Signature · 1 line
2.17.1
#1 lore raw

Thanks my builders have been constantly showing this failure

Quoted 71 lines · Richard Purdie

Builds keep failing with a race over the generated header file, fix it!

---
 .../mesa/files/parallel-make-race-fix.patch   | 26 +++++++++++++++++++
 meta/recipes-graphics/mesa/mesa_18.1.2.bb     |  1 +
 2 files changed, 27 insertions(+)
 create mode 100644

meta/recipes-graphics/mesa/files/parallel-make-race-fix.patch

meta/recipes-graphics/mesa/files/parallel-make-race-fix.patch new file +7 -0
new file mode 100644
index 00000000000..142279584e4
@@ -0,0 +1,26 @@
+There is a parallel make build issue in src/egl/drivers/dri2/
+for wayland builds. Can be reproduced with:
+
+$ rm src/egl/drivers/dri2/*.h src/egl/drivers/dri2/platform_wayland.lo
+$ make -C src/egl/ drivers/dri2/platform_wayland.lo
+
+../../../mesa-18.1.2/src/egl/drivers/dri2/platform_wayland.c:50:10: fatal

error: linux-dmabuf-unstable-v1-client-protocol.h: No such file or directory

meta/recipes-graphics/mesa/files/parallel-make-race-fix.patch new file +14 -0
+
+This patch adds the missing dependency.
+
+Signed-off-by Richard Purdie <[email protected]>
+
+Upstream-Status: Pending
+
+Index: mesa-18.1.2/src/egl/Makefile.am
+===================================================================
+--- mesa-18.1.2.orig/src/egl/Makefile.am
++++ mesa-18.1.2/src/egl/Makefile.am
+@@ -80,6 +80,7 @@ drivers/dri2/linux-dmabuf-unstable-v1-cl
+ if HAVE_PLATFORM_WAYLAND
+ drivers/dri2/linux-dmabuf-unstable-v1-protocol.lo:

drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h
+ drivers/dri2/egl_dri2.lo:
drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h ++drivers/dri2/platform_wayland.lo:
drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h

meta/recipes-graphics/mesa/files/parallel-make-race-fix.patch new file +3 -0
+
+ AM_CFLAGS += $(WAYLAND_CLIENT_CFLAGS)
+ libEGL_common_la_LIBADD += $(WAYLAND_CLIENT_LIBS)
meta/recipes-graphics/mesa/mesa_18.1.2.bb +1 -0
index 2c06b1eb7ba..9a9a2b25623 100644
@@ -8,6 +8,7 @@ SRC_URI = "
 https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
 
 file://0005-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch \
            file://0006-Use-Python-3-to-execute-the-scripts.patch \
            file://0007-dri-i965-Add-missing-time.h-include.patch \
+           file://parallel-make-race-fix.patch \
 "

SRC_URI[md5sum] = "a2d4f031eb6bd6111d44d84004476918"
--
2.17.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core