libsoup: workaround oe-core mips-gcc ICE
PATCH 1/1 libsoup: workaround oe-core mips-gcc ICE
From: Wenzong Fan <[email protected]>
(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.
--- meta/recipes-support/libsoup/libsoup-2.4_2.42.1.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta/recipes-support/libsoup/libsoup-2.4_2.42.1.bb +4 -0
@@ -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"
Signature · 1 line
1.8.1.2.545.g2f19ada