<?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>5512</bug_id>
          
          <creation_ts>2013-11-11 08:14:10 +0000</creation_ts>
          <short_desc>libsoup-2.4: gcc internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810</short_desc>
          <delta_ts>2014-03-27 02:00:09 +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>devtools / tool chain</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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.6 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wenzong.Fan">wenzong.fan</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>zhangle.yang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38698</commentid>
    <comment_count>0</comment_count>
    <who name="Wenzong.Fan">wenzong.fan</who>
    <bug_when>2013-11-11 08:14:10 +0000</bug_when>
    <thetext>Test steps:

1) Edit local.conf with:

    + MACHINE ?= &quot;qemumips&quot;
    + DEBUG_BUILD = &quot;1&quot;

2) Run &apos;bitbake libsoup-2.4&apos;

Errors:

| /buildarea/wfan/yocto/libsoup-2.4-ICE/tmp/work/mips32-poky-linux/libsoup-2.4/2.42.1-r0/libsoup-2.42.1/tests/header-parsing.c:1263:1: internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810
|  }
|  ^
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See &lt;http://gcc.gnu.org/bugs.html&gt; for instructions.
| {standard input}: Assembler messages:
| {standard input}: Warning: missing .end at end of assembly
| {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
| make[3]: *** [header-parsing.o] Error 1
| make[3]: *** Waiting for unfinished jobs....

Workaround:

Build libsoup-2.4 with CFLAGS += &quot;-O2&quot;

This is something error about mips-gcc optimization, while the DEBUG_OPTIMIZATION enabled, &apos;-O&apos; could cause this ICE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39865</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2014-01-16 15:21:57 +0000</bug_when>
    <thetext>This seems to be related to this issue:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48214

which suggests some fixes done for other targets:
http://gcc.gnu.org/viewcvs/gcc?view=revision&amp;revision=171193
http://gcc.gnu.org/viewcvs/gcc?view=revision&amp;revision=171185
http://gcc.gnu.org/viewcvs/gcc?view=revision&amp;revision=171156</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39891</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-01-17 11:55:53 +0000</bug_when>
    <thetext>Assigning to Robert since I believe some WindRiver people are going to take a look at this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41017</commentid>
    <comment_count>3</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-03-10 09:14:39 +0000</bug_when>
    <thetext>Hi Laurentiu,

I did a search on the gcc 4.8.2 in yocto, and the
suggested fixes have already been merged, how about
use Wenzong&apos;s Workaround fix?

//Hongxu

&gt; http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48214
vim gcc/ChangeLog-2011:
34612 2011-03-21  Uros Bizjak  &lt;ubizjak@gmail.com&gt;
34613 
34614     PR debug/48214
34615     * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
34616     between a call and its CALL_ARG_LOCATION note.

&gt; 
&gt; which suggests some fixes done for other targets:
&gt; http://gcc.gnu.org/viewcvs/gcc?view=revision&amp;revision=171193
vim gcc/ChangeLog-2011:
34801 2011-03-20  Ramana Radhakrishnan  &lt;ramana.radhakrishnan@linaro.org&gt;
34802 
34803     PR debug/48023
34804     * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
34805     between a call and its CALL_ARG_LOCATION note.

&gt; http://gcc.gnu.org/viewcvs/gcc?view=revision&amp;revision=171185
vim gcc/ChangeLog-2011:
34807 2011-03-19  Kaz Kojima  &lt;kkojima@gcc.gnu.org&gt;
34808 
34809     PR debug/48178
34810     * config/sh/sh.c (find_barrier): Don&apos;t emit a constant pool
34811     between a call and its corresponding CALL_ARG_LOCATION note.

&gt; http://gcc.gnu.org/viewcvs/gcc?view=revision&amp;revision=171156
vim gcc/ChangeLog-2011:
34847 2011-03-18  Andreas Krebbel  &lt;Andreas.Krebbel@de.ibm.com&gt;
34848 
34849     * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
34850     splitting between a call and its corresponding CALL_ARG_LOCATION note.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41805</commentid>
    <comment_count>4</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-03-27 02:00:09 +0000</bug_when>
    <thetext>http://cgit.openembedded.org/openembedded-core/commit/?id=ed592ccfff286faa421a6d73115ed0e03f185895</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>