Bug 2654 - gcc , g++ compilation with sdk is failing on the target [nightly build - 20120621-3]
Summary: gcc , g++ compilation with sdk is failing on the target [nightly build - 2012...
Status: VERIFIED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.3
Hardware: Other x86_64
: Medium normal
Target Milestone: 1.3 M2
Assignee: Bogdan Marinescu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-06-25 05:20 UTC by veera
Modified: 2012-07-19 11:37 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
Error log (253.65 KB, image/png)
2012-06-25 05:20 UTC, veera
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.