[OE-core] [dora][PATCH] libsoup: workaround oe-core mips-gcc ICE
Mark Hatle
mark.hatle at windriver.com
Thu Nov 21 19:44:56 UTC 2013
From: Wenzong Fan <wenzong.fan at 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 at windriver.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod at windriver.com>
Signed-off-by: Jeff Polk <jeff.polk at windriver.com>
---
meta/recipes-support/libsoup/libsoup-2.4_2.42.1.bb | 4 ++++
1 file changed, 4 insertions(+)
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"
--
1.8.1.2.545.g2f19ada
More information about the Openembedded-core
mailing list