Patchwork [dora] libsoup: workaround oe-core mips-gcc ICE

login
register
mail settings
Submitter Mark Hatle
Date Nov. 21, 2013, 7:44 p.m.
Message ID <1385063096-16895-1-git-send-email-mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/62183/
State New
Headers show

Comments

Mark Hatle - Nov. 21, 2013, 7:44 p.m.
From: Wenzong Fan <wenzong.fan@windriver.com>

(Note: this is being sent for Yocto Project compliance.  The bug is in the
 dora oe-core version of the compiler, but only if using -O0..  I consider
 it a temporary workaround.)

This error occurs for builds with the oe-core toolchain in debug builds:

    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 <http://gcc.gnu.org/bugs.html> 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

This happens only with optimization option '-O', so force to use '-O2' for mips
target to workaround this issue. Root cause will be addressed.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
---
 meta/recipes-support/libsoup/libsoup-2.4_2.42.1.bb | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/recipes-support/libsoup/libsoup-2.4_2.42.1.bb b/meta/recipes-support/libsoup/libsoup-2.4_2.42.1.bb
index ef8d439..01ede17 100644
--- a/meta/recipes-support/libsoup/libsoup-2.4_2.42.1.bb
+++ b/meta/recipes-support/libsoup/libsoup-2.4_2.42.1.bb
@@ -26,3 +26,7 @@  inherit autotools pkgconfig
 
 # glib-networking is needed for SSL, proxies, etc.
 RRECOMMENDS_${PN} = "glib-networking"
+
+# Workaround oe-core mips-gcc internal compiler error with '-O':
+# header-parsing.c:1263:1: internal compiler error: in dwarf2out_var_location, at dwarf2out.c:20810
+CFLAGS_mips += "-O2"