<?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>3878</bug_id>
          
          <creation_ts>2013-02-12 10:55:20 +0000</creation_ts>
          <short_desc>arm-oe-linux-gnueabi-ld: unrecognized option &apos;-Wl,-O1&apos;</short_desc>
          <delta_ts>2013-03-07 15:56:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Vanveerdeghem">simon.vanveerdeghem</reporter>
          <assigned_to name="Bogdan Marinescu">bogdan.a.marinescu</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</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>29744</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Vanveerdeghem">simon.vanveerdeghem</who>
    <bug_when>2013-02-12 10:55:20 +0000</bug_when>
    <thetext>I have build meta-toolchain-qte, this create a toolchain. 
I have installed the toolchain, and run the environment-setup-...

I have made a qt application that i will build with the toolchain
I run qmake (this create the Makefile), then i run make. The toolchain build all the C files but when the toolchain links the object files together it fails with following error.

arm-oe-linux-gnueabi-ld: unrecognized option &apos;-Wl,-O1&apos;
arm-oe-linux-gnueabi-ld: use the --help option for usage information


When i use poky to build the application, i have no errors (bitbake &lt;appname&gt;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29809</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-02-14 15:43:07 +0000</bug_when>
    <thetext>I don&apos;t think this is a bug in OE itself, only how you&apos;re using the toolchain. The issue is you&apos;re passing cc flags to ld. If you&apos;re going to do this, use gcc as the linker, then this will work (LD verses CCLD).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29816</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Vanveerdeghem">simon.vanveerdeghem</who>
    <bug_when>2013-02-14 16:11:31 +0000</bug_when>
    <thetext>Hi,


Okey, thanks, this helps when is use the g++ as the linker.

When i look further to the recipes of qt i see the have recently changed the exports that are used in the toolchain. But they have also changed the linker form g++ to ld 

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-qt/meta?id=a68c456e851023606c882f287a398bbaba16f298

I don&apos;t know why the have changed that, i think the comment the have posted is about the &quot; OE_QMAKE_CXX=${TARGET_PREFIX}g++&apos; to OE_QMAKE_CXX=$CXX&apos; &quot; but they have also changed OE_QMAKE_LINK=${TARGET_PREFIX}g++&apos; to OE_QMAKE_LINK=$LD&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30503</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-03-07 15:56:04 +0000</bug_when>
    <thetext>I think this is fixed by http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3b9636a0a986f87d996a10fcc4b01add5c4d1e64. If this doesn&apos;t help, please reopen the bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>