<?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>2760</bug_id>
          
          <creation_ts>2012-07-13 10:07:19 +0000</creation_ts>
          <short_desc>do_populate_sdk failed when build meta-toolchain</short_desc>
          <delta_ts>2012-08-27 03:42:14 +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>BitBake</product>
          <component>bitbake</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="liang li">liang.li2</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>hongnax.xu</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
    
    <cc>yi.zhao</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>23092</commentid>
    <comment_count>0</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-07-13 10:07:19 +0000</bug_when>
    <thetext>in 1.3 M2 RC1,when build meta-toolchain with following settings in local.conf:

PACKAGE_CLASSES ?= &quot;package_ipk&quot;
SDKMACHINE ?= &quot;x86_64&quot; or SDKMACHINE ?= &quot;i686&quot;

then run &quot;bitbake meta-toolchain&quot;, below error will be met:
......
NOTE: Running task 2033 of 2034 (ID: 7, /buildarea/poky.ubuntu.new_712/poky/meta/recipes-core/meta/meta-toolchain.bb, do_populate_sdk)
NOTE: package meta-toolchain-1.0-r7: task do_populate_sdk: Started
ERROR: Function failed: populate_sdk_image (see /buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/temp/log.do_populate_sdk.9735 for further information)
ERROR: Logfile of failure stored in: /buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/temp/log.do_populate_sdk.9735
Log data follows:
| DEBUG: Executing python function do_populate_sdk
| DEBUG: Executing shell function populate_sdk_image
| + ipkgarchs=all any noarch mips mips32 qemumips all any noarch x86_64-nativesdk
| + [ ! -z  ]
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk /buildarea/tester/build_4/tmp/deploy/ipk/all
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any /buildarea/tester/build_4/tmp/deploy/ipk/noarch
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any /buildarea/tester/build_4/tmp/deploy/ipk/noarch /buildarea/tester/build_4/tmp/deploy/ipk/mips
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any /buildarea/tester/build_4/tmp/deploy/ipk/noarch /buildarea/tester/build_4/tmp/deploy/ipk/mips /buildarea/tester/build_4/tmp/deploy/ipk/mips32
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any /buildarea/tester/build_4/tmp/deploy/ipk/noarch /buildarea/tester/build_4/tmp/deploy/ipk/mips /buildarea/tester/build_4/tmp/deploy/ipk/mips32 /buildarea/tester/build_4/tmp/deploy/ipk/qemumips
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any /buildarea/tester/build_4/tmp/deploy/ipk/noarch /buildarea/tester/build_4/tmp/deploy/ipk/mips /buildarea/tester/build_4/tmp/deploy/ipk/mips32 /buildarea/tester/build_4/tmp/deploy/ipk/qemumips /buildarea/tester/build_4/tmp/deploy/ipk/all
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any /buildarea/tester/build_4/tmp/deploy/ipk/noarch /buildarea/tester/build_4/tmp/deploy/ipk/mips /buildarea/tester/build_4/tmp/deploy/ipk/mips32 /buildarea/tester/build_4/tmp/deploy/ipk/qemumips /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any /buildarea/tester/build_4/tmp/deploy/ipk/noarch /buildarea/tester/build_4/tmp/deploy/ipk/mips /buildarea/tester/build_4/tmp/deploy/ipk/mips32 /buildarea/tester/build_4/tmp/deploy/ipk/qemumips /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any /buildarea/tester/build_4/tmp/deploy/ipk/noarch
| + packagedirs=/buildarea/tester/build_4/tmp/deploy/ipk /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any /buildarea/tester/build_4/tmp/deploy/ipk/noarch /buildarea/tester/build_4/tmp/deploy/ipk/mips /buildarea/tester/build_4/tmp/deploy/ipk/mips32 /buildarea/tester/build_4/tmp/deploy/ipk/qemumips /buildarea/tester/build_4/tmp/deploy/ipk/all /buildarea/tester/build_4/tmp/deploy/ipk/any /buildarea/tester/build_4/tmp/deploy/ipk/noarch /buildarea/tester/build_4/tmp/deploy/ipk/x86_64-nativesdk
| + multilib_archs=
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/ ]
| + touch /buildarea/tester/build_4/tmp/deploy/ipk/Packages
| + flock /buildarea/tester/build_4/tmp/deploy/ipk/Packages.flock -c opkg-make-index -r /buildarea/tester/build_4/tmp/deploy/ipk/Packages -p /buildarea/tester/build_4/tmp/deploy/ipk/Packages -m /buildarea/tester/build_4/tmp/deploy/ipk/
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/all/ ]
| + touch /buildarea/tester/build_4/tmp/deploy/ipk/all/Packages
| + flock /buildarea/tester/build_4/tmp/deploy/ipk/all/Packages.flock -c opkg-make-index -r /buildarea/tester/build_4/tmp/deploy/ipk/all/Packages -p /buildarea/tester/build_4/tmp/deploy/ipk/all/Packages -m /buildarea/tester/build_4/tmp/deploy/ipk/all/
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/any/ ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/noarch/ ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/mips/ ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/mips32/ ]
| + touch /buildarea/tester/build_4/tmp/deploy/ipk/mips32/Packages
| + flock /buildarea/tester/build_4/tmp/deploy/ipk/mips32/Packages.flock -c opkg-make-index -r /buildarea/tester/build_4/tmp/deploy/ipk/mips32/Packages -p /buildarea/tester/build_4/tmp/deploy/ipk/mips32/Packages -m /buildarea/tester/build_4/tmp/deploy/ipk/mips32/
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/qemumips/ ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/all/ ]
| + touch /buildarea/tester/build_4/tmp/deploy/ipk/all/Packages
| + flock /buildarea/tester/build_4/tmp/deploy/ipk/all/Packages.flock -c opkg-make-index -r /buildarea/tester/build_4/tmp/deploy/ipk/all/Packages -p /buildarea/tester/build_4/tmp/deploy/ipk/all/Packages -m /buildarea/tester/build_4/tmp/deploy/ipk/all/
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/any/ ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/noarch/ ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/x86_64-nativesdk/ ]
| + touch /buildarea/tester/build_4/tmp/deploy/ipk/x86_64-nativesdk/Packages
| + flock /buildarea/tester/build_4/tmp/deploy/ipk/x86_64-nativesdk/Packages.flock -c opkg-make-index -r /buildarea/tester/build_4/tmp/deploy/ipk/x86_64-nativesdk/Packages -p /buildarea/tester/build_4/tmp/deploy/ipk/x86_64-nativesdk/Packages -m /buildarea/tester/build_4/tmp/deploy/ipk/x86_64-nativesdk/
| + package_generate_ipkg_conf
| + package_generate_archlist
| + ipkgarchs=all any noarch x86_64-nativesdk
| + priority=1
| + echo arch all 1
| + expr 1 + 5
| + priority=6
| + echo arch any 6
| + expr 6 + 5
| + priority=11
| + echo arch noarch 11
| + expr 11 + 5
| + priority=16
| + echo arch x86_64-nativesdk 16
| + expr 16 + 5
| + priority=21
| + ipkgarchs=all any noarch mips mips32 qemumips
| + priority=1
| + echo arch all 1
| + expr 1 + 5
| + priority=6
| + echo arch any 6
| + expr 6 + 5
| + priority=11
| + echo arch noarch 11
| + expr 11 + 5
| + priority=16
| + echo arch mips 16
| + expr 16 + 5
| + priority=21
| + echo arch mips32 21
| + expr 21 + 5
| + priority=26
| + echo arch qemumips 26
| + expr 26 + 5
| + priority=31
| + echo src oe file:/buildarea/tester/build_4/tmp/deploy/ipk
| + ipkgarchs=all any noarch x86_64-nativesdk
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/all/Packages ]
| + echo src oe-all file:/buildarea/tester/build_4/tmp/deploy/ipk/all
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/any/Packages ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/noarch/Packages ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/x86_64-nativesdk/Packages ]
| + echo src oe-x86_64-nativesdk file:/buildarea/tester/build_4/tmp/deploy/ipk/x86_64-nativesdk
| + echo src oe file:/buildarea/tester/build_4/tmp/deploy/ipk
| + ipkgarchs=all any noarch mips mips32 qemumips
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/all/Packages ]
| + echo src oe-all file:/buildarea/tester/build_4/tmp/deploy/ipk/all
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/any/Packages ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/noarch/Packages ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/mips/Packages ]
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/mips32/Packages ]
| + echo src oe-mips32 file:/buildarea/tester/build_4/tmp/deploy/ipk/mips32
| + [ -e /buildarea/tester/build_4/tmp/deploy/ipk/qemumips/Packages ]
| + export INSTALL_PACKAGES_LINGUAS_IPK=
| + export INSTALL_TASK_IPK=populate_sdk
| + export INSTALL_ROOTFS_IPK=/buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/sdk/image//opt/poky/1.2+snapshot/sysroots/mips32-poky-linux
| + export INSTALL_CONF_IPK=/buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/opkg.conf
| + export INSTALL_PACKAGES_IPK=task-core-standalone-sdk-target-dbg task-core-standalone-sdk-target
| + export INSTALL_PACKAGES_ATTEMPTONLY_IPK=
| + export D=/buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/sdk/image//opt/poky/1.2+snapshot/sysroots/mips32-poky-linux
| + export OFFLINE_ROOT=/buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/sdk/image//opt/poky/1.2+snapshot/sysroots/mips32-poky-linux
| + export IPKG_OFFLINE_ROOT=/buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/sdk/image//opt/poky/1.2+snapshot/sysroots/mips32-poky-linux
| + export OPKG_OFFLINE_ROOT=/buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/sdk/image//opt/poky/1.2+snapshot/sysroots/mips32-poky-linux
| + package_install_internal_ipk
| + local target_rootfs=/buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/sdk/image//opt/poky/1.2+snapshot/sysroots/mips32-poky-linux
| + local conffile=/buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/opkg.conf
| + local package_attemptonly=
| + local package_linguas=
| + local task=populate_sdk
| + split_multilib_packages
| + INSTALL_PACKAGES_NORMAL_IPK=
| + INSTALL_PACKAGES_MULTILIB_IPK=
| + is_multilib=0
| + [ 0 = 0 ]
| + INSTALL_PACKAGES_NORMAL_IPK= task-core-standalone-sdk-target-dbg
| + is_multilib=0
| + [ 0 = 0 ]
| + INSTALL_PACKAGES_NORMAL_IPK= task-core-standalone-sdk-target-dbg task-core-standalone-sdk-target
| + local package_to_install= task-core-standalone-sdk-target-dbg task-core-standalone-sdk-target
| + local package_multilib=
| + mkdir -p /buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/sdk/image//opt/poky/1.2+snapshot/sysroots/mips32-poky-linux/var/lib/opkg/
| + local ipkg_args=-f /buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/opkg.conf -o /buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/sdk/image//opt/poky/1.2+snapshot/sysroots/mips32-poky-linux --force-overwrite --force_postinstall
| + opkg-cl -f /buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/opkg.conf -o /buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/sdk/image//opt/poky/1.2+snapshot/sysroots/mips32-poky-linux --force-overwrite --force_postinstall update
| /buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/temp/run.populate_sdk_image.9735: 200: /buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/temp/run.populate_sdk_image.9735: opkg-cl: not found
| DEBUG: Python function do_populate_sdk finished
| ERROR: Function failed: populate_sdk_image (see /buildarea/tester/build_4/tmp/work/mips32-poky-linux/meta-toolchain-1.0-r7/temp/log.do_populate_sdk.9735 for further information)
NOTE: package meta-toolchain-1.0-r7: task do_populate_sdk: Failed
ERROR: Task 7 (/buildarea/poky.ubuntu.new_712/poky/meta/recipes-core/meta/meta-toolchain.bb, do_populate_sdk) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 2033 tasks of which 331 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  /buildarea/poky.ubuntu.new_712/poky/meta/recipes-core/meta/meta-toolchain.bb, do_populate_sdk
Summary: There were 123 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

------------
this lead to local adtrepo build fail which lead to ADT installer installation test case fail. 

git info : eb0cb7e8234f5d2e5623406e9660be91cf52f65e
git branch :poky/master

test env:
host : ubuntu 12.04 x86_64 and fedora 17 i686.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23503</commentid>
    <comment_count>1</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-07-26 06:09:18 +0000</bug_when>
    <thetext>the error still happend on nightly build 20120725-3:
http://autobuilder.yoctoproject.org/pub/nightly/20120725-3/
git info :0ffb02eec2beaea27ff0ec9d3d31b0a09e675a4c
git branch: poky/master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23820</commentid>
    <comment_count>2</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-06 10:20:43 +0000</bug_when>
    <thetext>the error not met on nightly build 20120801-1:
http://autobuilder.yoctoproject.org/pub/nightly/20120801-1/
git info :3309cf42d314f0a26079a11836c6b9b9bb5f253e
git branch: poky/master

test env:
hosts: ubuntu 12.04 x86_64,fedora 17 i686, opensuse 12.1 x86_64

if the bug is solved, pls set the status to &quot;RESOLVED&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24256</commentid>
    <comment_count>3</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-21 01:54:30 +0000</bug_when>
    <thetext>the error not met again in recent tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24463</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-08-24 21:14:29 +0000</bug_when>
    <thetext>There was a recent change to the attemptonly install that should have fixed this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24479</commentid>
    <comment_count>5</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-27 03:42:14 +0000</bug_when>
    <thetext>verified on :
git info:19ff55a53b436d463f9577adaed15be77708f0d2
git branch : poky/master

test env:
host: ubuntu 12.04 x86_64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>