| Summary: | eglibc: do_compile failed with #error "glibc cannot be compiled without optimization" | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Jackie Huang <jackie.huang> |
| Component: | core | Assignee: | Jackie Huang <jackie.huang> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | corneliux.stoicescu, jessica.zhang, meta.mr.watcher, meta.watcher |
| Version: | 1.4 | ||
| Target Milestone: | 1.4 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
(In reply to comment #0) > eglibc: do_compile failed with #error "glibc cannot be compiled without > optimization" when -O0 is used to compile. > > Steps to reproduce: > 1. Add the following in local.conf > DEBUG_OPTIMIZATION = "-O0 -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" > SELECTED_OPTIMIZATION = "${DEBUG_OPTIMIZATION}" or DEBUG_OPTIMIZATION = "-O0 -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" DEBUG_BUILD = "1" > > 2. bitbake eglibc > Fixed: http://cgit.openembedded.org/openembedded-core/commit/?id=9ca1c6120fad5dcae1694e8e37331c1b903f1fd0 http://cgit.openembedded.org/openembedded-core/commit/?id=22dfc7d5738a20f015d9de693f0c2accfa685560 eglibc builds fine with the mentioned lines in local.conf Verified in master: 5b658729eff73963262dda4d6c683fdd023b8d04 |
eglibc: do_compile failed with #error "glibc cannot be compiled without optimization" when -O0 is used to compile. Steps to reproduce: 1. Add the following in local.conf DEBUG_OPTIMIZATION = "-O0 -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" SELECTED_OPTIMIZATION = "${DEBUG_OPTIMIZATION}" 2. bitbake eglibc error logs: =========== | In file included from ./../include/libc-symbols.h:52:0, | from <command-line>:0: | /buildarea1/jhuang0/yocto/p_x64_1016/tmp/work/x86_64-poky-linux/eglibc-initial-2.16-r14+svnr20393/build-x86_64-poky-linux/config.h:4:3: error: #error "glibc cannot be comp iled without optimization" | In file included from ./../include/libc-symbols.h:52:0, | from <command-line>:0: | /buildarea1/jhuang0/yocto/p_x64_1016/tmp/work/x86_64-poky-linux/eglibc-initial-2.16-r14+svnr20393/build-x86_64-poky-linux/config.h:4:3: error: #error "glibc cannot be compiled without optimization"