Bug 2957

Summary: gcc from ADT installer cannot build application
Product: [Yocto Project Subprojects] ADT Reporter: Laurentiu Serban <laurentiu.serban>
Component: kernel analysisAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, bogdan.a.marinescu, ioanax.grigoropol, liang.li2, song.liu, yi.zhao, yp.sdk.watcher, yp.watcher
Version: 1.3   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: (Scheduled)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 2956    

Description Laurentiu Serban 2012-08-16 19:50:30 UTC
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 "stdio.h"
./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
Comment 1 Jessica 2012-08-16 19:55:43 UTC
LaurentiuP:

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

If it's a different issue, probably Bogdan can cover you on this.

Thx
Comment 2 liang li 2012-08-20 07:37:37 UTC
(In reply to comment #0)
> 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 "stdio.h"
> ./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
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 " find . -name 'stdio.h' -print" 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 ?
Comment 3 Ioana Grigoropol 2012-08-30 07:59:59 UTC
It works with the latest ADT nightly (http://autobuilder.yoctoproject.org/pub/nightly/20120829-1) that integrates  LaurentiuP patches for relocatable SDK.
Comment 4 Alexandru Georgescu 2012-10-03 13:20:16 UTC
fixed.