<?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>2833</bug_id>
          
          <creation_ts>2012-07-25 14:30:17 +0000</creation_ts>
          <short_desc>glib-2.0-nativesdk build fails on ubuntu 11.10/64bit</short_desc>
          <delta_ts>2012-09-28 04:16:17 +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>core</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>song.liu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23490</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2012-07-25 14:30:17 +0000</bug_when>
    <thetext>There is configure error then is being seen on glib-2.0 when building for nativesdk

checking for glib-genmarshal... /usr/bin/glib-genmarshal
checking for glib-compile-schemas... /usr/bin/glib-compile-schemas
checking for glib-compile-resources... no
configure: error: Could not find a glib-compile-resources in your PATH
Configure failed. The contents of all config.log files follows to aid debugging
/home/kraj/yocto/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/glib-2.0-nativesdk-1_2.32.4-r3/glib-2.32.4/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.


Its looking for glib-compile-resources on my host and native sysroot and its not
there. Should this be asked as explicit dependency which is to install glib-2.0-bin on build host ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23491</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2012-07-25 14:37:02 +0000</bug_when>
    <thetext>The patch below works it around.

diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb
index 988494b..932c946 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb
@@ -22,6 +22,7 @@ SRC_URI[sha256sum] = &quot;a5d742a4fda22fb6975a8c0cfcd2499dd1c809b8afd4ef709bda4d11b1
 SRC_URI_append_virtclass-native = &quot; file://glib-gettextize-dir.patch&quot;
 BBCLASSEXTEND = &quot;native nativesdk&quot;

+CACHED_CONFIGUREVARS_virtclass-nativesdk = &quot;ac_cv_path_GLIB_COMPILE_RESOURCES=/bin/true&quot;
 do_configure_prepend() {
        sed -i -e &quot;s:TEST_PROGS += gdbus-serialization::g&quot;  ${S}/gio/tests/Makefile.am
        sed -i -e &apos;1s,#!.*,#!${USRBINPATH}/env python,&apos; ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23505</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-07-26 07:04:00 +0000</bug_when>
    <thetext>I assume you will post this to the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23550</commentid>
    <comment_count>3</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-07-27 03:09:32 +0000</bug_when>
    <thetext>this error also happened on Fedora 17 32 bit host.
git info : 0ffb02eec2beaea27ff0ec9d3d31b0a09e675a4c
git branch :poky/master

when run &quot;bitbake meta-toolchain&quot; with following settings in conf/local.conf 
PACKAGE_CLASSES ?= &quot;package_ipk&quot;
SDKMACHINE ?= &quot;i686&quot;

....
| configure: exit 1
| ERROR: oe_runconf failed
| ERROR: Function failed: do_configure (see /buildarea/tester/build_4/tmp/work/i686-nativesdk-pokysdk-linux/glib-2.0-nativesdk-1_2.32.4-r3/temp/log.do_configure.6669 for further information)
NOTE: package glib-2.0-nativesdk-1_2.32.4-r3: task do_configure: Failed
ERROR: Task 1079 (virtual:nativesdk:/buildarea/poky.ubuntu.new/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb, do_configure) failed with exit code &apos;1&apos;

....

NOTE: Tasks Summary: Attempted 1716 tasks of which 1684 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:nativesdk:/buildarea/poky.ubuntu.new/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb, do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23726</commentid>
    <comment_count>4</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2012-08-02 02:40:33 +0000</bug_when>
    <thetext>OE-Core rev: 69bd94173294c1ae2cf5e300ada7116e99a5b0c7 

fixed part of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23821</commentid>
    <comment_count>5</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-06 10:26:15 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; this error also happened on Fedora 17 32 bit host.
the error not met on both fedora 17 32 bit host and opensuse 12.1 64 bit host using following git commit:
git commit :3309cf42d314f0a26079a11836c6b9b9bb5f253e
git branch :poky/master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24434</commentid>
    <comment_count>6</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2012-08-24 04:15:42 +0000</bug_when>
    <thetext>commit 5416bf849ceefb49f06bedfa5e67595e9c68582a
Author: Khem Raj &lt;raj.khem@gmail.com&gt;
Date:   Fri Aug 3 21:58:20 2012 -0700

    glib-2.0-nativesdk: Add dependency on glib-2.0-native


fixed it completely</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25881</commentid>
    <comment_count>7</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-09-28 04:16:17 +0000</bug_when>
    <thetext>verified on :
git info:718eb85806e080d0b165344b272e531ef19421eb
git branch:poky/1.3_M5

run &quot;bitbake glib-2.0-native&quot;,no such error on both ubuntu 11.10 64bit and fedora 17 32bit hosts:
...
NOTE: Running task 166 of 173 (ID: 5, virtual:native:/buildarea1/tester/test_git_1/poky/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb, do_configure)
NOTE: recipe glib-2.0-native-1_2.32.4-r6: task do_configure: Started
NOTE: recipe glib-2.0-native-1_2.32.4-r6: task do_configure: Succeeded
...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>