<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3405</bug_id>
          
          <creation_ts>2012-11-12 02:44:29 +0000</creation_ts>
          <short_desc>eglibc: do_compile failed with #error &quot;glibc cannot be compiled without optimization&quot;</short_desc>
          <delta_ts>2013-01-07 16:33:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jackie Huang">jackie.huang</reporter>
          <assigned_to name="Jackie Huang">jackie.huang</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27341</commentid>
    <comment_count>0</comment_count>
    <who name="Jackie Huang">jackie.huang</who>
    <bug_when>2012-11-12 02:44:29 +0000</bug_when>
    <thetext>eglibc: do_compile failed with #error &quot;glibc cannot be compiled without optimization&quot; when -O0 is used to compile.

Steps to reproduce:
1. Add the following in local.conf
DEBUG_OPTIMIZATION = &quot;-O0 -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe&quot;
SELECTED_OPTIMIZATION = &quot;${DEBUG_OPTIMIZATION}&quot;

2. bitbake eglibc


error logs:
===========
| In file included from ./../include/libc-symbols.h:52:0,
|                  from &lt;command-line&gt;: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 &quot;glibc cannot be comp
iled without optimization&quot;
| In file included from ./../include/libc-symbols.h:52:0,
|                  from &lt;command-line&gt;: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 &quot;glibc cannot be compiled without optimization&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27426</commentid>
    <comment_count>1</comment_count>
    <who name="Jackie Huang">jackie.huang</who>
    <bug_when>2012-11-14 08:54:49 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; eglibc: do_compile failed with #error &quot;glibc cannot be compiled without
&gt; optimization&quot; when -O0 is used to compile.
&gt; 
&gt; Steps to reproduce:
&gt; 1. Add the following in local.conf
&gt; DEBUG_OPTIMIZATION = &quot;-O0 -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe&quot;
&gt; SELECTED_OPTIMIZATION = &quot;${DEBUG_OPTIMIZATION}&quot;

or
DEBUG_OPTIMIZATION = &quot;-O0 -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe&quot;
DEBUG_BUILD = &quot;1&quot;

&gt; 
&gt; 2. bitbake eglibc
&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28077</commentid>
    <comment_count>2</comment_count>
    <who name="Jackie Huang">jackie.huang</who>
    <bug_when>2012-12-07 03:30:45 +0000</bug_when>
    <thetext>Fixed:

http://cgit.openembedded.org/openembedded-core/commit/?id=9ca1c6120fad5dcae1694e8e37331c1b903f1fd0
http://cgit.openembedded.org/openembedded-core/commit/?id=22dfc7d5738a20f015d9de693f0c2accfa685560</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28589</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-01-07 16:33:16 +0000</bug_when>
    <thetext>eglibc builds fine with the mentioned lines in local.conf

Verified in master: 5b658729eff73963262dda4d6c683fdd023b8d04</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>