| Summary: | c++ project build with collect error appears again | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | liping Ke <liping.ke> | ||||
| Component: | meta-yocto | Assignee: | Lianhao Lu <lianhao.lu> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | Medium | CC: | jessica.zhang, kevin.tian, lianhao.lu, poky.bs.watcher, poky.watcher, sgw | ||||
| Version: | 1.0 | ||||||
| Target Milestone: | 1.0 M4 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | --- | |||||
| Attachments: |
|
||||||
|
Description
liping Ke
2011-03-07 01:13:30 UTC
Created attachment 107 [details]
error log
error log for the sudoku make error
Additional info: this problem exists on all sorts platform combinations i686-host for i586 target x86-64 host for arm target. criping Kevin's previous commit f13cb20ed19c41b9ff85ef1c9ec0883a21d1d5bf should have fixed this issue. Need more dive into this problem I don't think this has been fixed. The commit that Lianhao refered to fix most of the c++ header problem, however there's still one remaining error about collect2. collect2 is a separate program (a superset of 'ld'), which is invoked to reconstruct the templates and then may recompile some c++ source files. gcc passes its compilation flags to collect2 by COLLECT_GCC_OPTIONS, which is further passed to gcc by collect2 later. However so far COLLECT_GCC_OPTIONS doesn't forward pass "--sysroot". that's the problem. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47256 is the bug I reported to gcc community, however it looks that nobody looks into it. Lianhao, could you try baking a patch around COLLECT_GCC_OPTIONS by adding sysroot support? The commit is sent out for review(not merged yet): http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=llu/gcc_collect&id=6a1fe90d5a43e3260098dc90b8d467a1ba7d6335 |