<?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>4812</bug_id>
          
          <creation_ts>2013-07-04 11:44:28 +0000</creation_ts>
          <short_desc>sudoku-savant fails at &apos;make&apos;: &apos;cstdlib: No such file or directory&apos;</short_desc>
          <delta_ts>2013-10-01 14:26:14 +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>1.5</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>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>ke.zou</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34325</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-04 11:44:28 +0000</bug_when>
    <thetext>STATUS: FAILED
BUILD: master:eaa5df34af42b6a37f6506847d0f3ef6ba0d298a
ENVIRONMENT: qemux86-64
STEPS TO REPRODUCE: 1. Download sudoku-savant project from http://downloads.sourceforge.net/project/sudoku-savant/sudoku-savant/sudoku-savant-1.3/sudoku-savant-1.3.tar.bz2
2. Copy sudoku-savant tarball into sdk image
3. Extract the tarball and do &quot;configure&quot;, &quot;make&quot;

EXPECTED OUTCOME: sudoku-savant could be compiled successfully .

ACTUAL OUTCOME: 
&quot;
root@qemux86-64:~/sudoku-savant-1.3# make
make  all-recursive
make[1]: Entering directory `/home/root/sudoku-savant-1.3&apos;
Making all in src
make[2]: Entering directory `/home/root/sudoku-savant-1.3/src&apos;
g++ -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\&quot;&quot;/usr/local/share&quot;\&quot; -DPACKAGE_LOCALE_DIR=\&quot;&quot;/usr/local/share/locale&quot;\&quot; -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2    -frepo -fno-implement-inlines -ansi -pedantic -pipe -Wall -Winline -Wshadow -Wsign-compare -Woverloaded-virtual -Wextra --param max-inline-insns-single=400 -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
main.cpp:10:19: fatal error: cstdlib: No such file or directory
 #include &lt;cstdlib&gt;
                   ^
compilation terminated.

&quot;

NOTE: Reproduced for BSP targets and QEMU targets on sato-sdk and lsb-sdk images.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34373</commentid>
    <comment_count>1</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2013-07-08 06:44:19 +0000</bug_when>
    <thetext>Same thing happened when I tried to do a simple compiler test on MPC8315e
BUILD: master:eaa5df34af42b6a37f6506847d0f3ef6ba0d298a
Target: mpc8315e

root@mpc8315e-rdb:/opt/tests/compilers# gcc -c cpp_test.cpp 
cpp_test.cpp:3:20: fatal error: iostream: No such file or directory
 #include &lt;iostream&gt;
                    ^
compilation terminated.
root@mpc8315e-rdb:/opt/tests/compilers# find /usr/include -name iostream
/usr/include/c++/iostream
root@mpc8315e-rdb:/opt/tests/compilers# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/gcc/powerpc-poky-linux/4.8.1/lto-wrapper
Target: powerpc-poky-linux
Configured with: /srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-ppc/build/build/tmp/work-shared/gcc-4.8.1-r0/gcc-4.8.1/configure --build=x86_64-linux --host=powerpc-poky-linux --target=powerpc-poky-linux --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/gcc --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-ppc/build/build/tmp/sysroots/mpc8315e-rdb --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=powerpc-poky-linux- --without-local-prefix --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-float=soft --with-sysroot=/ --with-build-sysroot=/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-ppc/build/build/tmp/sysroots/mpc8315e-rdb --with-native-system-header-dir=/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-ppc/build/build/tmp/sysroots/mpc8315e-rdb/usr/include --with-gxx-include-dir=/usr/include/c++/ --enable-dependency-tracking --enable-targets=powerpc64 --enable-nls --enable-__cxa_atexit --with-long-double-128
Thread model: posix
gcc version 4.8.1 (GCC) 










But using gcc (version 4.7.2) doesn&apos;t has this problem.
It looks like that gcc didn&apos;t look for header files from /usr/include/c++, which means &quot;--with-gxx-include-dir=/usr/include/c++/&quot; doesn&apos;t work.

This should be the same problem that Stoicescu Cornel encountered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34374</commentid>
    <comment_count>2</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2013-07-08 07:22:51 +0000</bug_when>
    <thetext>Plus, if I specify header dir with -I /usr/include/c++,  compiling is OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34437</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-07-09 16:42:42 +0000</bug_when>
    <thetext>This looks like a configuration issue with the target gcc missing some setup.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34439</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-07-09 16:52:31 +0000</bug_when>
    <thetext>*** Bug 4829 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34440</commentid>
    <comment_count>5</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2013-07-09 17:02:11 +0000</bug_when>
    <thetext>sometimes applications use precompiled headers and can end up in such issues.
Can you try to compile a simple c++ program like helloworld and see it it can
find the headers ?

something like

#include &lt;iostream&gt;
#include &lt;cstdlib&gt;

int main()
{
    std::cout &lt;&lt; &quot;Hello, World!&quot; &lt;&lt; std::endl;
}

if that compiles then we do not have issue with gcc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34444</commentid>
    <comment_count>6</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-07-09 20:42:04 +0000</bug_when>
    <thetext>It indeed fails with the same error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34583</commentid>
    <comment_count>7</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2013-07-15 23:44:01 +0000</bug_when>
    <thetext>Patch is posted here

http://lists.openembedded.org/pipermail/openembedded-core/2013-July/081311.html

Please test it out in your environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35824</commentid>
    <comment_count>8</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-08-21 17:42:51 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=fb58029ed04c105a80a7ca0ed4a18d5ac924742a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37421</commentid>
    <comment_count>9</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-01 14:26:14 +0000</bug_when>
    <thetext>This issue is not present in latest 1.5 M5 RC5 build. Setting to VERIFIED for:
poky master:4d8ab87d25ea6e59dc88375813ef88ee0ac813d0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>