Bug 2654

Summary: gcc , g++ compilation with sdk is failing on the target [nightly build - 20120621-3]
Product: [Build System, Metadata & Runtime] OE-Core Reporter: veera <veerabrahmamvr>
Component: devtools / tool chainAssignee: Bogdan Marinescu <bogdan.a.marinescu>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium CC: laurentiu.serban, meta.mr.watcher, meta.watcher, sanil.kumar, sgw
Version: 1.3   
Target Milestone: 1.3 M2   
Hardware: Other   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
Error log none

Description veera 2012-06-25 05:20:26 UTC
Created attachment 605 [details]
Error log

[Build version]:http://autobuilder.yoctoproject.org/pub/nightly/20120621-3/
[Issue]:gcc and g++ compilation failed. TC-2696, TC-2698 , TC-2699 - failed. https://wiki.yoctoproject.org/wiki/images/a/a1/Yocto_1.3_M1_Test_Execution_Plan.pdf
[Test Steps]:
1)runqemu qemux86-64 bzImage-qemux86-64.bin core-image-sato-sdk-qemux86-64-20120621032451.rootfs.ext3
2)once system comes up properly 
#vi test.c
#include <stdio.h>
#include <math.h>
double convert(long long l) 
{ 
      return (double)l; 
      // or double(l)
}
int main(int argc, char * argv[]) 
{ 
     long long l = 10; 
     double f;
     f = convert(l);
     printf("convert: %lld => %f\n", l, f);
     f = 1234.67;
     printf("floorf(%f) = %f\n", f, floorf(f));
     return 0;
} 
3)#gcc test.c -o test -lm"

ERROR : /usr/lib/gcc/i586-poky-linux/4.7.1/../../../../i586-poky-linux/bin/ld: this linker was not configured to   use sysroots collect2: error: ld returned 1 exit status
[Same failure for g++ as well.]

Note @ Same Result is observed on Qemu_x86_32 sato-SDK also.
Comment 1 Bogdan Marinescu 2012-06-28 11:38:44 UTC
Unable to reproduce under x86_64 with a core-image-sato-sdk compiled after a git pull on 28.06.2012, 12:00 GMT.
Comment 2 Laurentiu Serban 2012-07-10 13:29:02 UTC
Verified in 5051e9837fa698e03d0a7a8a918ee7aa98409ce1
Comment 3 veera 2012-07-19 11:37:36 UTC
please Test it on http://autobuilder.yoctoproject.org/pub/nightly/20120621-3/
build . we are able to reproduce on above mentioned build.