<?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>3532</bug_id>
          
          <creation_ts>2012-12-04 16:30:02 +0000</creation_ts>
          <short_desc>Yocto meta-toolchain script doesn&apos;t work</short_desc>
          <delta_ts>2012-12-17 04:09:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>1.3</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>x86_64</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.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marco Cavallini">m.cavallini</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>liang.li2</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</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>27962</commentid>
    <comment_count>0</comment_count>
    <who name="Marco Cavallini">m.cavallini</who>
    <bug_when>2012-12-04 16:30:02 +0000</bug_when>
    <thetext>Yocto meta-toolchain script doesnt&apos; work

Host: Ubuntu 10.04.4 LTS (Lucid Lynx) x86_64

Yocto sources are from git:
git clone -b danny git://git.yoctoproject.org/poky.git

My local.conf settings are:
BB_NUMBER_THREADS = &quot;4&quot;
PARALLEL_MAKE = &quot;-j 4&quot;
MACHINE ??= &quot;beagleboard&quot;
DISTRO ?= &quot;poky&quot;
PACKAGE_CLASSES ?= &quot;package_deb&quot;
EXTRA_IMAGE_FEATURES = &quot;debug-tweaks&quot;
USER_CLASSES ?= &quot;buildstats image-mklibs image-prelink&quot;
OE_TERMINAL = &quot;screen&quot;
PATCHRESOLVE = &quot;noop&quot;
CONF_VERSION = &quot;1&quot;
BB_DISKMON_DIRS = &quot;STOPTASKS,${TMPDIR},1G,100K WARN,${SSTATE_DIR},1G,100K&quot;


Build Configuration:
BB_VERSION        = &quot;1.16.0&quot;
TARGET_ARCH       = &quot;arm&quot;
TARGET_OS         = &quot;linux-gnueabi&quot;
MACHINE           = &quot;beagleboard&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.3&quot;
TUNE_FEATURES     = &quot;armv7a vfp neon cortexa8&quot;
TARGET_FPU        = &quot;vfp-neon&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;danny:24af2693697ac38070f9702a9e6c4527989379ba&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: QA Issue: nativesdk-ncurses: Files/directories were installed but not shipped
  /opt/poky/1.3/sysroots/x86_64-pokysdk-linux/usr/bin/reset.ncurses
  /opt/poky/1.3/sysroots/x86_64-pokysdk-linux/usr/bin/clear.ncurses
NOTE: Tasks Summary: Attempted 1879 tasks of which 250 didn&apos;t need to be rerun and all succeeded.

ERROR #1 - Launching the setup script as normal user:
$ tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.3.sh
Enter target directory for SDK (default: /opt/poky/1.3): 
You are about to install the SDK to &quot;/opt/poky/1.3&quot;. Proceed[Y/n]?
Error: Unable to create target directory. Do you have permissions?

ERROR #2 - Launching the setup script as root user:
$ sudo tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.3.sh
[sudo] password for koan: 
Enter target directory for SDK (default: /opt/poky/1.3): 
You are about to install the SDK to &quot;/opt/poky/1.3&quot;. Proceed[Y/n]?
Extracting SDK...done
Setting it up...find: `/opt/poky/1.3/sysroots/x86_64-pokysdk-linux/lib&apos;: No such file or directory
SDK could not be set up. Relocate script failed. Abort!

TIA</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27976</commentid>
    <comment_count>1</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-12-05 05:54:54 +0000</bug_when>
    <thetext>if change &quot;PACKAGE_CLASSES ?= &quot;package_deb&quot;&quot; to &quot;PACKAGE_CLASSES ?= &quot;package_rpm&quot;&quot; in local.conf and no change to others,no such error.
steps:
1. run &quot;bitbake meta-toolchain&quot;.
2. run &quot;sudo tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.3.sh&quot; and set installation dir to &quot;/opt/poky/1.3&quot;.
toolchain will be installed to &quot;/opt/poky/1.3&quot; successfully.
toolchain downloaded from autobuiler also use &quot;PACKAGE_CLASSES ?= &quot;package_rpm&quot;&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27982</commentid>
    <comment_count>2</comment_count>
    <who name="Marco Cavallini">m.cavallini</who>
    <bug_when>2012-12-05 10:04:04 +0000</bug_when>
    <thetext>Ok, 
with &quot;PACKAGE_CLASSES ?= &quot;package_rpm&quot; it works.
BTW I supposed that a toolchain was PACKAGE_CLASSES independent.

Thank you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27983</commentid>
    <comment_count>3</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-12-05 10:11:35 +0000</bug_when>
    <thetext>Actually, in order to create the sysroots, the package manager is used. So, depending on what you chose in PACKAGE_CLASSES, that package manager will be used to generate the sysroot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27999</commentid>
    <comment_count>4</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-12-05 15:13:48 +0000</bug_when>
    <thetext>This is related to the recent multilib changes... It looks like this commit (0b0674ebcd8a51783e4bb38e3ead3e419dbba376) is the reason why the installer tarball is empty when using the ceb package manager. Reverting the deb changes of that commit didn&apos;t produce better results as the do_populate_sdk task fails with some unmet dependencies...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28033</commentid>
    <comment_count>5</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-12-06 09:55:45 +0000</bug_when>
    <thetext>It turns out I was reverting only the target part instead of reverting the native part too... :( After reverting both, we can successfully build the standalone toolchain using the deb backend.

Patch sent to the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28173</commentid>
    <comment_count>6</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-12-12 09:35:28 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=82d6ef6a7a582312e4c655f666ba4b641b005cd5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28317</commentid>
    <comment_count>7</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-12-17 04:09:02 +0000</bug_when>
    <thetext>if set &quot;PACKAGE_CLASSES ?= &quot;package_deb&quot;&quot; in file &quot;conf/local.conf&quot;, the toolchain can build success(bitbake meta-toolchain) and can be installed to &quot;/opt/poky/1.3&quot; successfully.
git info:958162e96b4a4f23bca94500b5f20975633dd5c6
git branch:poky/master</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>