<?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>1231</bug_id>
          
          <creation_ts>2011-07-08 09:34:53 +0000</creation_ts>
          <short_desc>nativesdk recipes seem to have problems finding standard C++ headers</short_desc>
          <delta_ts>2011-09-08 18:25:19 +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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>post 1.1</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Kai Kang">kai.kang</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
    
    <cc>yi.zhao</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>14622</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-07-08 09:34:53 +0000</bug_when>
    <thetext>In the qt4-tools-nativesdk (and soon cmake-nativesdk) recipes we have some nasty include hacks to allow g++ to find standard C++ headers (e.g. iostream) that it doesn&apos;t seem to be able to find by itself. There must be some underlying path misconfiguration causing this issue, and ideally we would fix that rather than having to add these hacks every time we inherit nativesdk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15497</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2011-08-16 20:36:55 +0000</bug_when>
    <thetext>Hi Paul,

Would you please add more info:
1) where is the nasty hacks
2) How to reproduce the &quot;doesn&apos;t seem to be able to find by itself&quot;

thank you very much!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15504</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-08-17 03:36:18 +0000</bug_when>
    <thetext>1) We have the following added to EXTRA_OECONF in meta/recipes-qt/qt4-tools-nativesdk.inc:

                -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/c++ \
                -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/c++/${TARGET_SYS} \
                -L${STAGING_DIR_HOST}${SDKPATHNATIVE}/lib \
                -L${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/lib&quot;


Normally the compiler and linker should be able to find things in these standard paths by themselves, but for some reason with nativesdk.bbclass they can&apos;t.

2) Just remove the lines above and you&apos;ll find the build of qt4-tools-nativesdk will fail to find basic stuff like iostream.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15653</commentid>
    <comment_count>3</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2011-08-23 02:18:52 +0000</bug_when>
    <thetext>post 1.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16095</commentid>
    <comment_count>4</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2011-09-07 19:17:33 +0000</bug_when>
    <thetext>I have send a commit to fix this bug, just because includedir_nativesdk is not set.

commit
9ce2cc6e14270c94d97f1bb3ede8e9321a8192b8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16109</commentid>
    <comment_count>5</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2011-09-08 18:25:19 +0000</bug_when>
    <thetext>now in meta/recipes-qt/qt4/qt4-tools-nativesdk.inc, no lines described in Comment 2, and run &quot;bitbake qt4-tools-nativesdk&quot;, no error met,so verified it.
git info :52835dd30110d51a839872f198eef3b12e369850
git branch : poky/master

test env:
host : ubuntu 10.10 x86_64
kernel :2.6.35-30-generic #56-Ubuntu SMP</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>