<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5882</bug_id>
          
          <creation_ts>2014-02-26 10:56:51 +0000</creation_ts>
          <short_desc>mesa fails to build with separate builddir, when gallium is enabled</short_desc>
          <delta_ts>2014-04-04 14:19:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>graphics</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nicolas Dechesne">ndec13</reporter>
          <assigned_to name="valentin">valentin.popa</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40696</commentid>
    <comment_count>0</comment_count>
    <who name="Nicolas Dechesne">ndec13</who>
    <bug_when>2014-02-26 10:56:51 +0000</bug_when>
    <thetext>Trying to build mesa with the following PACKAGECONFIG in bbappend:

PACKAGECONFIG_append_qemux86 = &quot; gallium gallium-egl gallium-gbm gallium-llvm&quot;

lead to build errors such as:

| make[4]: *** [common/egl_g3d.lo] Error 1
| make[4]: *** Waiting for unfinished jobs....
| i586-rdk-linux-libtool: compile:  i586-rdk-linux-gcc -m32 -march=i586 --sysroot=/work/rdk-dora/build-qemux86/tmp/sysroots/qemux86 -DPACKAGE_NAME=\&quot;Mesa\&quot; -DPACKAGE_TARNAME=\&quot;mesa\&quot; -DPACKAGE_VERSION=\&quot;9.1.6\&quot; &quot;-DPACKAGE_STRING=\&quot;Mesa 9.1.6\&quot;&quot; &quot;-DPACKAGE_BUGREPORT=\&quot;https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\&quot;&quot; -DPACKAGE_URL=\&quot;\&quot; -DPACKAGE=\&quot;mesa\&quot; -DVERSION=\&quot;9.1.6\&quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\&quot;.libs/\&quot; -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -DHAVE_LIBEXPAT=1 -I. -I/work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gallium/state_trackers/egl -I/work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/egl/main -I../../../../src/egl/wayland/wayland-drm/ -I/work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/include -I/work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gallium/winsys -I/work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gbm/main -I/work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gallium/state_trackers/gbm -DHAVE_DRM_BACKEND -I/work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gallium/winsys/sw -DHAVE_FBDEV_BACKEND -I/work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/include -I/work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gallium/include -I/work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gallium/auxiliary -D_GNU_SOURCE -DHAVE_PTHREAD -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_LLVM=0x0303 -I/work/rdk-dora/build-qemux86/tmp/sysroots/qemux86/usr/include/libdrm -O2 -pipe -g -feliminate-unused-debug-types -fno-omit-frame-pointer -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -c /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gallium/state_trackers/egl/common/egl_g3d_api.c  -fPIC -DPIC -o common/.libs/egl_g3d_api.o
| In file included from /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/egl/main/egltypedefs.h:36:0,
|                  from /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/egl/main/egldriver.h:35,
|                  from /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gallium/state_trackers/egl/common/egl_g3d_api.c:26:
| /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/include/EGL/egl.h:36:29: fatal error: EGL/eglplatform.h: No such file or directory
|  #include &lt;EGL/eglplatform.h&gt;
|                              ^
| compilation terminated.
| make[4]: *** [common/egl_g3d_api.lo] Error 1
| In file included from /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/egl/main/egltypedefs.h:36:0,
|                  from /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/egl/main/eglcurrent.h:33,
|                  from /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gallium/state_trackers/egl/common/egl_g3d_image.c:33:
| /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/include/EGL/egl.h:36:29: fatal error: EGL/eglplatform.h: No such file or directory
|  #include &lt;EGL/eglplatform.h&gt;
|                              ^
| compilation terminated.
| make[4]: *** [common/egl_g3d_image.lo] Error 1
| In file included from /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/egl/main/egltypedefs.h:36:0,
|                  from /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/egl/main/egldriver.h:35,
|                  from /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/src/gallium/state_trackers/egl/common/egl_g3d_st.c:34:
| /work/rdk-dora/build-qemux86/tmp/work/i586-rdk-linux/mesa/2_9.1.6-r0/Mesa-9.1.6/include/EGL/egl.h:36:29: fatal error: EGL/eglplatform.h: No such file or directory
|  #include &lt;EGL/eglplatform.h&gt;
|                              ^
| compilation terminated.
| make[4]: *** [common/egl_g3d_st.lo] Error 1


Master branch builds fine though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40697</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2014-02-26 11:14:20 +0000</bug_when>
    <thetext>Hi Valentin. It looks like we have to backport the fix to 1.5. Please take a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40702</commentid>
    <comment_count>2</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2014-02-26 15:32:22 +0000</bug_when>
    <thetext>sent on mailing list</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40703</commentid>
    <comment_count>3</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2014-02-26 15:33:24 +0000</bug_when>
    <thetext>edit: a fix sent on oe mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42230</commentid>
    <comment_count>4</comment_count>
    <who name="valentin">valentin.popa</who>
    <bug_when>2014-04-03 14:09:21 +0000</bug_when>
    <thetext>http://patchwork.openembedded.org/patch/67575/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42293</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-04-04 14:19:21 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=dora&amp;id=d04d0c07355b40dc2f2f71548526d9bb74147fbb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>