<?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>307</bug_id>
          
          <creation_ts>2010-09-10 03:01:47 +0000</creation_ts>
          <short_desc>cstlib is not found with latest sdk image running in netbook</short_desc>
          <delta_ts>2010-12-21 06:09:42 +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>core</component>
          <version>0.9</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="liping Ke">liping.ke</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9726</commentid>
    <comment_count>0</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2010-09-10 03:01:47 +0000</bug_when>
    <thetext>After we install latest poky/master sdk image into netbook, when compiling c++ program sudoku,  cstlib is not found. We did not found this problem with c++4.3 version.

I attached the test c++ project.

Please help to make sure that the attached project could be compiled with sdk-live image running in netbook.

Thanks a lot for your help!
criping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9727</commentid>
    <comment_count>1</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-09-10 03:17:28 +0000</bug_when>
    <thetext>This is caused by the different settings of include file search directory between g++ and the actually installed include files on the netbook.

The g++ is configured to search the default include directory as /usr/include/c++/4.5.0/, but the include files actually got installed on the netbook is at /usr/include/c++.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9962</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-09-27 08:44:13 +0000</bug_when>
    <thetext>Is the netbook machine specific issue? Is it present on qemux86 machine ?

thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9991</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-09-28 15:46:22 +0000</bug_when>
    <thetext>I did not find the /usr/include/c++/4.5.0/ directory in the qemux86 sdk image also. 
  Also I was trying sudoku sources from this location: http://linux.softpedia.com/get/GAMES-ENTERTAINMENT/Puzzle/GNOME-Sudoku-3478.shtml

And those sources are failing to configure on the sdk image with this error:
configure: error: Your intltool is too old. You need intltool 0.7.0 or later.

I would need more precise steps to reproduce the failure.

g++ on the target is configured with /usr/include/c++/4.5.0 as gxx-include, so that may be the issue Lianhao is taking.

- nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9998</commentid>
    <comment_count>4</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-09-28 17:54:37 +0000</bug_when>
    <thetext>Jessica, Liping,

I have a fix for this issue based on the comments from Liping and Lianhao and recipe code review. I have pushed the fix to nitin/misc branch on poky-contrib tree. Can you please build an sdk image with that branch and test if it fixes the issue? I don&apos;t have a netbook to test this.


URL: http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=nitin/misc


- Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9999</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-09-28 17:58:42 +0000</bug_when>
    <thetext>jessca, can you get some help in verifying this issue.

Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10003</commentid>
    <comment_count>6</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2010-09-28 18:11:53 +0000</bug_when>
    <thetext>Hi, Nitin

Recently we met some build issues. Once we successfully built a image on netbook, I will verify your fix. 

Thanks!

Regards,
criping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10069</commentid>
    <comment_count>7</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2010-09-29 23:18:05 +0000</bug_when>
    <thetext>Hi, Nitin and Jessica

Seems this  bug fix is still not in the poky master?
Yet Lianhao is now cherry-picking this fix and applied to poky master...

Thanks&amp; Regards,
criping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10190</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-10-07 02:59:34 +0000</bug_when>
    <thetext>This fix looks like exactly the opposite to what we need. I did some research with grep in the gcc directory:

grep gxx-include * -r
gcc-configure-cross.inc:		      --with-gxx-include-dir=${STAGING_DIR_TARGET}/${target_includedir}/c++ \
gcc-configure-runtime.inc:    --with-gxx-include-dir=${includedir}/c++/ \
gcc-configure-sdk.inc:                      --with-gxx-include-dir=${SDKPATH}/sysroots/${TARGET_SYS}${target_includedir}/c++ \
gcc-configure-target.inc:    --with-gxx-include-dir=${includedir}/c++/${BINV}/&quot;

and as you can see, everything uses /usr/include/c++ apart from gcc-configure-target.inc. This corresponds to the gcc that would run in target images as reported in this bug report.

We need to remove the ${BINV} from gcc-configure-target.inc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10191</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-10-07 03:02:30 +0000</bug_when>
    <thetext>Also, the issue can be easily reproduced in qemu images:

echo &quot;#include &lt;iostream&gt;&quot; &gt; test.cpp
g++ test.cpp

and if it errors unable to find iostream, its broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10192</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2010-10-07 03:07:36 +0000</bug_when>
    <thetext>I&apos;ve pushed a fix in http://git.pokylinux.org/cgit.cgi/poky/commit/?id=fafb40364dfc3951a1d62a49a412f0e15e284d03 which I&apos;m fairly sure will fix this but please verify.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10364</commentid>
    <comment_count>11</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-10-11 22:52:15 +0000</bug_when>
    <thetext>Verified with latest RC1 branch</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>