<?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>3161</bug_id>
          
          <creation_ts>2012-09-24 10:10:37 +0000</creation_ts>
          <short_desc>cannot build Hello World Ansi C project using standalone Toolchain for PowerPC</short_desc>
          <delta_ts>2012-10-16 13:50:08 +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></bug_file_loc>
          <status_whiteboard>(merged)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M5</target_milestone>
          
          <blocked>3201</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>laurentiu.palcu</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</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>25584</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-09-24 10:10:37 +0000</bug_when>
    <thetext>Errors appear When trying to build a Hello World Ansi C Autotools Project using the  standalone toolchain in Eclipse for PowerPC. Using ADT installer, this doesn&apos;t reproduce.


Toolchain: http://autobuilder.yoctoproject.org/pub/nightly/20120916-2/toolchain/x86_64/poky-eglibc-x86_64-powerpc-toolchain-gmae-1.2+snapshot-20120916.sh

Sysroot: http://autobuilder.yoctoproject.org/pub/nightly/20120916-2/machines/qemu/qemuppc/core-image-sato-sdk-qemuppc.tar.bz2

Eclipse plugin: http://autobuilder.yoctoproject.org/pub/nightly/20120916-2/eclipse-plugin/juno/org.yocto.sdk-rc1-201209162333.zip



Steps to reproduce:
1. Download toolchain and Sysroot and extract them in a specified location.
2. Created a headless Eclipse build and used the eclipse-plugin from above.
3. Configure Yocto Project Settings with Sysroot, toolchain, installed in step1.
4. Create a Hello World Ansi C Autottools Project.
5. Reconfigure Project and then Build.



Expected results
5. Reconfigure and Build is successful.

Actual results
5. In Problems pane (in Eclipse) I have the following errors:

Description	Resource	Path	Location	Type
C compiler cannot create executables	hello_C_ppc_toolchain_2		-1	Configure Problem
in `/home/alex/workspace-ww38/hello_C_ppc_toolchain_2&apos;:	hello_C_ppc_toolchain_2		-1	Configure Problem
make: *** No rule to make target `all&apos;.			 	C/C++ Problem
make: *** No rule to make target `clean&apos;.			 	C/C++ Problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25621</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-09-24 22:26:42 +0000</bug_when>
    <thetext>I took a look at the problem, it failed for me for both toolchain installer or adt_installer.  The real failure is this:

configure:3219: powerpc-poky-linux-gcc  -m32 -mhard-float  -mcpu=603e --sysroot=/home/jzhang/test-yocto/ppc  -g -O0  --sysroot=/home/jzhang/test-yocto/ppc  --sysroot=/home/jzhang/test-yocto/ppc  --sysroot=/home/jzhang/test-yocto/ppc conftest.c  &gt;&amp;5
as: unrecognized option &apos;-mppc&apos;


It caused by  we have this for ppc gcc: 

sysroots/i686-pokysdk-linux/usr/lib/ppc603e-poky-linux/gcc/powerpc-poky-linux/4.7.2/plugin/include/config/rs6000/rs6000.h:%{mcpu=ec603e: -mppc} \</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25699</commentid>
    <comment_count>2</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-09-25 14:58:57 +0000</bug_when>
    <thetext>This issue should be fixed in the latest tree. Please retest by using toolchain tarballs older than 09.24.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25700</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2012-09-25 15:02:04 +0000</bug_when>
    <thetext>Alex, can you please retest this using current HEAD ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25888</commentid>
    <comment_count>4</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2012-09-28 07:59:44 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Alex, can you please retest this using current HEAD ?

the latest nightly would suffice, I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25985</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-01 12:13:30 +0000</bug_when>
    <thetext>Hi, I have tested with this build: http://autobuilder.yoctoproject.org/pub/nightly/20120926-1

which is older than 09.24, and reproduces with the standalone toolchain.
The standalone toolchain was installed in a different location than the default one.

When solved, please set it to resolved fixed, not Invalid Fixed because this is a valid bug.

My test host this time is a Fedora17 32bit machine.

Thanks,
Alex.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25990</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-01 13:09:09 +0000</bug_when>
    <thetext>The same happenes when creating a GTK project as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26000</commentid>
    <comment_count>7</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-10-01 16:49:39 +0000</bug_when>
    <thetext>Alex,

Is the toolchain you tested against is the official M5 built toolchain?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26014</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-02 09:29:04 +0000</bug_when>
    <thetext>Hi Jessica,

Yes, I am using the official build for 1.3_M5 RC2:

Download: http://autobuilder.yoctoproject.org/pub/nightly/20120926-1
poky: 718eb85806e080d0b165344b272e531ef19421eb
meta-qt3: 8730326c902e6fb256b5dea77a6dde28d813c424
eclipse-poky: c88444d96958324e7dda9bd496977be3369aea1e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26098</commentid>
    <comment_count>9</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2012-10-03 08:15:35 +0000</bug_when>
    <thetext>This should not happen anymore. We have a patch submitted for it by Laur.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26279</commentid>
    <comment_count>10</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-10-05 11:51:09 +0000</bug_when>
    <thetext>Root cause: 32bit cross-canadian and nativesdk packages didn&apos;t have RPATHs relocated because the building machine had a chrpath version &lt;0.14.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26639</commentid>
    <comment_count>11</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-16 13:50:08 +0000</bug_when>
    <thetext>Verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>