<?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>2957</bug_id>
          
          <creation_ts>2012-08-16 19:50:30 +0000</creation_ts>
          <short_desc>gcc from ADT installer cannot build application</short_desc>
          <delta_ts>2012-10-03 13:20:16 +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>kernel analysis</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>(Scheduled)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          <blocked>2956</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Laurentiu Serban">laurentiu.serban</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bogdan.a.marinescu</cc>
    
    <cc>ioanax.grigoropol</cc>
    
    <cc>liang.li2</cc>
    
    <cc>song.liu</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.sdk.watcher</cc>
    
    <cc>yp.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>24123</commentid>
    <comment_count>0</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-08-16 19:50:30 +0000</bug_when>
    <thetext>The image used is the one downloaded by the adt installer
See the error below:

lserban@computer2:/opt/poky/1.2+snapshot/sysroots$ ${CC} test.c -o test_arm -lm
test.c:1:19: fatal error: stdio.h: No such file or directory
compilation terminated.
lserban@computer2:/opt/poky/1.2+snapshot/sysroots$ find . -name &quot;stdio.h&quot;
./usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/libc/libio/stdio.h
./usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/libc/libio/bits/stdio.h
./usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/libc/include/stdio.h
./usr/include/stdio.h
./usr/include/bits/stdio.h
./usr/include/c++/tr1/stdio.h
./x86_64-pokysdk-linux/usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/libc/libio/stdio.h
./x86_64-pokysdk-linux/usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/libc/libio/bits/stdio.h
./x86_64-pokysdk-linux/usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/libc/include/stdio.h
./x86_64-pokysdk-linux/usr/include/stdio.h
./x86_64-pokysdk-linux/usr/include/bits/stdio.h
./x86_64-pokysdk-linux/usr/include/c++/tr1/stdio.h
lserban@computer2:/opt/poky/1.2+snapshot/sysroots$ vim test.c
lserban@computer2:/opt/poky/1.2+snapshot/sysroots$ ${CC} test.c -o test_arm -lm
test.c:2:18: fatal error: math.h: No such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24124</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-08-16 19:55:43 +0000</bug_when>
    <thetext>LaurentiuP:

I suspect your latest relocatable ADT change will address this issue.  But can you double check with LaurentiuS.  

If it&apos;s a different issue, probably Bogdan can cover you on this.

Thx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24211</commentid>
    <comment_count>2</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-20 07:37:37 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; The image used is the one downloaded by the adt installer
&gt; See the error below:
&gt; 
&gt; lserban@computer2:/opt/poky/1.2+snapshot/sysroots$ ${CC} test.c -o test_arm
&gt; -lm
&gt; test.c:1:19: fatal error: stdio.h: No such file or directory
&gt; compilation terminated.
&gt; lserban@computer2:/opt/poky/1.2+snapshot/sysroots$ find . -name &quot;stdio.h&quot;
&gt; ./usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/libc/libio/stdio.h
&gt; ./usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/libc/libio/bits/stdio.h
&gt; ./usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/libc/include/stdio.h
&gt; ./usr/include/stdio.h
&gt; ./usr/include/bits/stdio.h
&gt; ./usr/include/c++/tr1/stdio.h
&gt; ./x86_64-pokysdk-linux/usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/
&gt; libc/libio/stdio.h
&gt; ./x86_64-pokysdk-linux/usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/
&gt; libc/libio/bits/stdio.h
&gt; ./x86_64-pokysdk-linux/usr/src/debug/eglibc-2.13-r26+svnr15508/eglibc-2_13/
&gt; libc/include/stdio.h
&gt; ./x86_64-pokysdk-linux/usr/include/stdio.h
&gt; ./x86_64-pokysdk-linux/usr/include/bits/stdio.h
&gt; ./x86_64-pokysdk-linux/usr/include/c++/tr1/stdio.h
&gt; lserban@computer2:/opt/poky/1.2+snapshot/sysroots$ vim test.c
&gt; lserban@computer2:/opt/poky/1.2+snapshot/sysroots$ ${CC} test.c -o test_arm
&gt; -lm
&gt; test.c:2:18: fatal error: math.h: No such file or directory
this not met in nightly build 20120814-1 and 20120810-2 (1.3 M3) when run below:
 ${CC} test.c -o test_arm -lm
when run &quot; find . -name &apos;stdio.h&apos; -print&quot; in the installed meta-toolchain from nightly build 20120814-1,below the output:
./sysroots/armv5te-poky-linux-gnueabi/usr/include/stdio.h
./sysroots/armv5te-poky-linux-gnueabi/usr/include/bits/stdio.h
./sysroots/armv5te-poky-linux-gnueabi/usr/include/c++/tr1/stdio.h
./sysroots/armv5te-poky-linux-gnueabi/usr/src/debug/eglibc-2.16-r5+svnr19383/eglibc-2_16/libc/include/stdio.h
./sysroots/armv5te-poky-linux-gnueabi/usr/src/debug/eglibc-2.16-r5+svnr19383/eglibc-2_16/libc/libio/stdio.h
./sysroots/armv5te-poky-linux-gnueabi/usr/src/debug/eglibc-2.16-r5+svnr19383/eglibc-2_16/libc/libio/bits/stdio.h

the eglibc version is 2.16 not 2_13. so this error perhaps met in other poky branch ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24646</commentid>
    <comment_count>3</comment_count>
    <who name="Ioana Grigoropol">ioanax.grigoropol</who>
    <bug_when>2012-08-30 07:59:59 +0000</bug_when>
    <thetext>It works with the latest ADT nightly (http://autobuilder.yoctoproject.org/pub/nightly/20120829-1) that integrates  LaurentiuP patches for relocatable SDK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26127</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-03 13:20:16 +0000</bug_when>
    <thetext>fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>