<?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>7547</bug_id>
          
          <creation_ts>2015-03-31 11:31:40 +0000</creation_ts>
          <short_desc>Cannot reliably use a build dir as cross toolchain</short_desc>
          <delta_ts>2015-08-28 12:38:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>1.7.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Todor Minchev">todor.minchev</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>ioanax.grigoropol</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          <qa_contact name="Valentin Hangan">valentinx.hangan</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49959</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2015-03-31 11:31:40 +0000</bug_when>
    <thetext>I have a build dir with several qemuarm images built as well as having built a standalone toolchain (by issuing the -c populate_sdk command).

I built meta-ide-support before trying to set up the Eclipse ADT plugin to use my build dir.

When I set &quot;Toolchain Root Location&quot; to the equivalent of build/tmp (I&apos;m using a build dir on a different partition) which contains an environment setup script with &quot;Sysroot Location&quot; set to an extracted sysroot and QEMU selected as my &quot;Target Options&quot; (with a zImage pointed to by the &quot;Kernel&quot; field) validation fails with:

&apos;Specified toolchain directory does not cont... generated with &quot;bitbake meta-ide-support&quot;.&apos;

ADT Plug-in: 1.4.0 (installed from the 1.7.1/kepler software installation site)
Eclipse IDE: Kepler SR 2 (installed from a tarball downloaded from eclipse.org)
Poky: Dizzy HEAD (running the dizzy branch from git with a HEAD of ec75238f6cc2d2d8d40e0268f6d2acc070cbe9a4)
OS: Ubuntu 14.10 x86_64

I&apos;d be happy to try and help debug this further, perhaps there&apos;s a way to enable debug output from the IDE plugin so I can understand where things are failing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49995</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2015-03-31 16:26:04 +0000</bug_when>
    <thetext>A later attempt following the same steps but, perhaps coincidentally, after a reboot including a restart of Eclipse, was successful.

Is there a way to get more information about *why* plugin configuration has failed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50043</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2015-04-02 14:57:57 +0000</bug_when>
    <thetext>FWIW I just confirmed this bug with a version of the plugin I built for Fido and Eclipse Luna.

Steps to verify:
* Install Eclipse Luna
* Add dependant plugins per instructions in reverted yocto-docs commit: http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/commit/?id=1ca893766047f30ffbb0c99e51e575ea1302e7bc &amp; restart Eclipse
* Build luna/fido branch per instructions in the dev manual:
http://www.yoctoproject.org/docs/1.7.1/dev-manual/dev-manual.html#zip-file-method
* Install built plugin &amp; restart Eclipse
* Close Eclipse and restart with logging on: $ ENABLE_ADT_LOGS=1 ./eclipse
* Configure the Eclipse plugin to use my build dir

Expected result: able to use the toolchain from the build dir
Actual result: &quot;Specified toolchain direct...bitbake meta-ide-support&quot;.

Unfortunately nothing useful is logged in adt.log:

$ cat ~/eclipse/adt.log 
Apr 02, 2015 3:13:59 PM org.yocto.sdk.ide.utils.YoctoSDKUtils registerLogger
INFO: Registered logger : adt_logger Log File: [adt.log]
Apr 02, 2015 3:54:43 PM org.yocto.sdk.ide.utils.YoctoSDKUtils unRegisterLogger
INFO: Unregistered logger : adt_logger Log file: [adt.log]

I closed and restarted Eclipse and tried configuring the Build system derived toolchain again to no avail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50480</commentid>
    <comment_count>3</comment_count>
    <who name="Todor Minchev">todor.minchev</who>
    <bug_when>2015-04-23 08:23:35 +0000</bug_when>
    <thetext>If you are using the &quot;Build System Derived Toolchain&quot; option, your &quot;Toolchain Root Location&quot; needs to be your top level build directory (e.g. xx/build and the &quot;Sysroot Location&quot; (e.g. xx/build/tmp/sysroots/your_target).

Then in the &quot;Target Architecture&quot; drop down menu you should see an option showing your target architecture and the validation message will disappear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50549</commentid>
    <comment_count>4</comment_count>
    <who name="Todor Minchev">todor.minchev</who>
    <bug_when>2015-04-28 11:01:06 +0000</bug_when>
    <thetext>Please reopen this bug if the problem still occurs when the plugin is set up as recommended in the previous comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50550</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2015-04-28 11:04:50 +0000</bug_when>
    <thetext>Thanks, I have been unable to reproduce but will update this bug should I see the issue again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53532</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2015-08-28 12:38:12 +0000</bug_when>
    <thetext>verified on luna-master: 45aa5c77523bdf051d548fff4305382942db2ebb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>