<?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>2927</bug_id>
          
          <creation_ts>2012-08-09 14:50:23 +0000</creation_ts>
          <short_desc>the new Cross-Toolchain does not work with eclipse (Juno)</short_desc>
          <delta_ts>2012-08-28 13:38:25 +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>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://autobuilder.yoctoproject.org/pub/nightly/20120808-1/toolchain/x86_64/poky-eglibc-x86_64-arm-toolchain-gmae-1.2+snapshot-20120808.sh</bug_file_loc>
          <status_whiteboard>(Scheduled)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Ioana Grigoropol">ioanax.grigoropol</assigned_to>
          <cc>bogdan.a.marinescu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>laurentiu.palcu</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.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>23918</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-08-09 14:50:23 +0000</bug_when>
    <thetext>The cross-toolchain already build by autobuilder does not work with Eclipse.

IMAGE USED:
http://autobuilder.yoctoproject.org/pub/nightly/20120808-1/toolchain/x86_64/poky-eglibc-x86_64-arm-toolchain-gmae-1.2+snapshot-20120808.sh

STEPS TO REPRODUCE:
1. I have installed ADT with adt-insatller (build 0808-1).
2. I set up eclipse (Juno) with the new toolchain, sysroot, kernel image. I could build a new C ADT project.

3. I downloaded the 0808-1 toolchain file (specified above) and extracted it.
4. In eclipse I modified the sysroot with the new sysroot folder which was extracted at step 3.
5. Created a new project ( e.g. C Autotools project).
6. Reconfigure project, then try to build the project


EXPECTED RESULT:
The project can be build successful

ACTUAL RESULT(from Eclipse):

Description	Resource	Path	Location	Type
make: *** No rule to make target `all&apos;.			 	C/C++ Problem
in `/home/alex/workspactest7/dfsfsdf&apos;:	dfsfsdf		-1	Configure Problem
C compiler cannot create executables	dfsfsdf		-1	Configure Problem


OTHER:
The toolchain works fine when installed with adt-installer. When using the Cross-Toolchain installation by hand, the errors appear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23921</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-08-09 15:32:08 +0000</bug_when>
    <thetext>It looks like it happens only on Alex&apos;s machine. The tollchain binaries fail with &quot;Segmentation Fault&quot;. The same archive, works on other machines... Needs more investigations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24082</commentid>
    <comment_count>2</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-08-16 10:06:58 +0000</bug_when>
    <thetext>I found the root cause of this. It looks like toolchain binaries had the RPATHS hardcoded to the default path. If, for example, one installed the toolchain in the default location, /opt/poky/1.2+snapshot, and then tried an install in another location, the later install&apos;s toolchain binaries would search for libraries in the first location. If the libraries are found and loaded, a segmentation fault will occur. If the /opt/poky/1.2+snapshot directory does not exist at all, then everything is fine.

The problem was in package.bbclass, the rpath_replace was called only for nativesdk packages and it should be called for cross-canadian packages too.

I will send a fix shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24535</commentid>
    <comment_count>3</comment_count>
    <who name="Ioana Grigoropol">ioanax.grigoropol</who>
    <bug_when>2012-08-28 12:13:42 +0000</bug_when>
    <thetext>LaurentiuP&apos;s latest patch set fixes this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24539</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-08-28 13:38:25 +0000</bug_when>
    <thetext>Setting to Verified - Fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>