<?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>4509</bug_id>
          
          <creation_ts>2013-05-17 14:05:30 +0000</creation_ts>
          <short_desc>Creating debug session fails when SDK is not installed in the default location</short_desc>
          <delta_ts>2013-08-09 21:51:57 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</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.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gabriel Barbu">gabriel.barbu</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>adrian.dudau</cc>
    
    <cc>ioanax.grigoropol</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</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>33134</commentid>
    <comment_count>0</comment_count>
    <who name="Gabriel Barbu">gabriel.barbu</who>
    <bug_when>2013-05-17 14:05:30 +0000</bug_when>
    <thetext>After setting up Eclipse as described in the Yocto Project Development Manual;
with a Standalone pre-build toolchain and a QEMU target extracted using the runqemu-extract-sdk;
and installing the SDK in another location than the default /opt/poky/1.4+snapshot (for example in ~/toolchain );

when attempting to start the debugger as in 4.2.2.6. Deploying and Debugging the Application, 
the following error occurs:

“Launching hwPrj_gdb_i586-poky-linux has encountered a problem.
Error creating session.
Could not find platform independent libraries &lt;prefix&gt;”</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33589</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2013-06-04 23:46:13 +0000</bug_when>
    <thetext>Hi Gabriel,

Can you provide more info about your setup, what is your sysroot? and what is your toolchain, what in eclipse preference is your ADT setup.  Also, are you usin the defult hello world ansi c project?  

Thanks,
Jessica</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33617</commentid>
    <comment_count>2</comment_count>
    <who name="Gabriel Barbu">gabriel.barbu</who>
    <bug_when>2013-06-05 11:50:16 +0000</bug_when>
    <thetext>Hi Jessica,

Here is the info:
sysroot: runqemu-extract-sdk my_view/poky/build/tmp/deploy/images/core-image-sato-sdk-qemux86.tar.bz2 ~/ym-ciss-qx86-sysroot

Toolchain: my_view/poky/build/tmp/deploy/sdk/poky-eglibc-x86_64-i586-toolchain-1.4+snapshot.sh
./poky-eglibc-x86_64-i586-toolchain-1.4+snapshot.sh ~/toolchain

ADT setup:
- Standalone pre-build toolchain
- Toolchain location: ~/toolchain
- Sysroot location: ~/toolchain/sysroots
- Target architecture: i586-poky-linux
- Target Options: QEMU
   - Kernel: my_view/poky/build/tmp/deploy/images/bzImage-qemux86.bin
   - Custom Options: nographic

Project: Yocto Project ADT Autotools Project &gt; Hello World ANSI C Autotools Project

Also, I found (as a workaround) that if I source the environment before starting Eclipse/from the same shell, then it works.

Best regards,

Gabriel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33703</commentid>
    <comment_count>3</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2013-06-07 17:20:04 +0000</bug_when>
    <thetext>Hi Gabriel,

Your sysroot should be set to: ~/ym-ciss-qx86-sysroot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33878</commentid>
    <comment_count>4</comment_count>
    <who name="Gabriel Barbu">gabriel.barbu</who>
    <bug_when>2013-06-13 09:08:38 +0000</bug_when>
    <thetext>Hi Jessica,

I tried setting the sysroot as you suggested (actually now that one is: /opt/ym-ciss-qx86-sysroot due to another cross-host issue we had).
I get the same behavior and the same workaround applies.

I think the problem is that from what you could see in the External Tools Configuration &gt; Arguments:

-e &quot;source /opt/ytc/environment-setup-i586-poky-linux;runqemu qemux86 /media/sdd1/fb/gaba/ym/poky/build/tmp/deploy/images/bzImage-qemux86.bin /opt/ym-ciss-qx86-sysroot nographic;bash&quot;

this part is not executed: “source /opt/ytc/environment-setup-i586-poky-linux”.

At least this explains why the workaround I mentioned above works.

Best regards,

Gabriel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35558</commentid>
    <comment_count>5</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2013-08-09 21:51:57 +0000</bug_when>
    <thetext>Hi Gabriel,

I took another look of the bug, you need to start qemu session first then bring up the debug session, the debugger won&apos;t bring up qemu session for you and I just can&apos;t reproduce the issue on my end.  

Thanks,
Jessica</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>