Bug 3295 - meta-intel BSPs: mesa_demos compile error on autobuilder
Summary: meta-intel BSPs: mesa_demos compile error on autobuilder
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-intel (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.4
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-10-17 19:52 UTC by Tom Zanussi
Modified: 2012-11-15 20:43 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
.txt from link (178.53 KB, application/x-zip-compressed)
2012-10-29 10:34 UTC, Stoicescu Cornel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Zanussi 2012-10-17 19:52:02 UTC
This error continually pops up on autobuilder but hasn't been reproducible locally by either myself or Darren:

http://autobuilder.yoctoproject.org:8010/builders/crownbay/builds/230/steps/shell_32/logs/stdio

This isn't restricted to crownbay, it's also been seen on other meta-intel BSPs in the past.
Comment 1 Nitin Kamble 2012-10-18 15:53:28 UTC
so far I am not able to reproduce it on my setup too.
Comment 2 Tom Zanussi 2012-10-18 15:58:16 UTC
Could be an sstate problem on autobuilder:

(09:21:47 AM) eflanagan: tomz: I rebuilt meta-intel danny with a clean sstate. Still haven't seen the mesa-dri issue pop back up.
Comment 3 Richard Purdie 2012-10-25 11:38:24 UTC
This is a direct result of these warnings:

WARNING: The recipe emgd-driver-bin is trying to install files into a shared area when those files already exist. Those files are:
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/include/KHR/khrplatform.h
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/include/EGL/eglplatform.h
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/include/EGL/egl.h
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/include/EGL/eglext.h
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/include/GLES2/gl2ext.h
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/include/GLES2/gl2.h
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/include/GLES2/gl2platform.h
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/include/GLES/glplatform.h
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/include/GLES/gl.h
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/include/GLES/glext.h
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/lib/libEGL.so
   /media/build1/poky/build/tmp/sysroots/crownbay/usr/lib/libGLESv2.so

since mesa-dri and emgd-driver-bin are conflicting over these files.

The reproducer is a case where something like:

a) Both meas-dri and emgd-driver-bin are built
b) One of the above is cleaned (say emgd-driver-bin)
c) mesa-demos is built

when c) happens, the EGL/egl.h was removed and the build fails despite mesa-dri thinking the file is there.

Classic race and a perfect illustration of why these WARNINGS needs to get fixed and will become errors.
Comment 4 Nitin Kamble 2012-10-25 22:29:12 UTC
looking at the Richard's analysis of the issue, this will be fixed after 1.3 release.
Comment 5 Stoicescu Cornel 2012-10-29 10:34:42 UTC
Created attachment 904 [details]
.txt from link

Pasted the log from the link in the original post in a .txt file because old autobuilder references will expire. (zipped because of size)
Comment 6 Tom Zanussi 2012-10-29 16:30:24 UTC
(In reply to comment #4)
> looking at the Richard's analysis of the issue, this will be fixed after 1.3
> release.

I know there was a fix to squelch the warning, but there's still a build problem, so I think this needs to be fixed for 1.3.

Can't we just prevent mesa-dri from being built if emgd is built and that would solve the problem?
Comment 7 Ross Burton 2012-10-29 16:41:49 UTC
EMGD User Guide claims that you can use libGL from mesa to support OpenGL.  This working at all is dubious, but they claim it works and by explicitly disabling it you'd need a good reason for any customers...

(personally, EMGD and CDT shouldn't have allowed this, the GL support in the binary blobs from Imagination is terrible and shouldn't be inflicted on anyone)
Comment 8 Nitin Kamble 2012-10-30 21:45:14 UTC
Bringing back the mesa-dri recipe extention commit to fix this issue.
Comment 9 Nitin Kamble 2012-11-15 20:43:33 UTC
Fixed in the meta-intel