summaryrefslogtreecommitdiffstats
path: root/recipes-extended
diff options
context:
space:
mode:
authorhongxu <hongxu.jia@windriver.com>2020-03-31 15:16:55 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2020-04-01 22:30:18 -0400
commit2bba10be28d4d7ce45d78a8429caaa6952785901 (patch)
treef109c546999211b36c3b1b889db52bec9c896a59 /recipes-extended
parentf1e768dfdfb148b9b4c6aaaf065ccea79dd5484d (diff)
downloadmeta-virtualization-2bba10be28d4d7ce45d78a8429caaa6952785901.tar.gz
libvirt: Workaround mips assembler crash on target
While enabling multilib on qemumips64, lib32 assembler ends up crashing on target sometimes due to branch out of range, therefore using -O2 for now [snip] |../../libvirt-6.1.0/tests/qemuxml2argvtest.c: In function 'mymain': |../../libvirt-6.1.0/tests/qemuxml2argvtest.c:608:1: note: variable tracking size limit exceeded with '-fvar-tracking-assignments', retrying without | 608 | mymain(void) | | ^~~~~~ |/tmp/ccXJSwZR.s: Assembler messages: |/tmp/ccXJSwZR.s:43943: Error: branch out of range [snip] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-extended')
-rw-r--r--recipes-extended/libvirt/libvirt_6.1.0.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-extended/libvirt/libvirt_6.1.0.bb b/recipes-extended/libvirt/libvirt_6.1.0.bb
index 15f33aad..7b109204 100644
--- a/recipes-extended/libvirt/libvirt_6.1.0.bb
+++ b/recipes-extended/libvirt/libvirt_6.1.0.bb
@@ -375,6 +375,11 @@ EXTRA_OECONF += " \
375 --with-test-suite \ 375 --with-test-suite \
376 " 376 "
377 377
378# gcc9 end up mis-compiling qemuxml2argvtest.o with Og which then
379# crashes on target, so remove -Og and use -O2 as workaround
380SELECTED_OPTIMIZATION_remove_virtclass-multilib-lib32_mipsarch = "-Og"
381SELECTED_OPTIMIZATION_append_virtclass-multilib-lib32_mipsarch = " -O2"
382
378EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}" 383EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}"
379 384
380PRIVATE_LIBS_${PN}-ptest_append = "libvirt-admin.so.0" 385PRIVATE_LIBS_${PN}-ptest_append = "libvirt-admin.so.0"