diff options
author | hongxu <hongxu.jia@windriver.com> | 2020-03-31 15:16:55 +0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-04-01 22:30:18 -0400 |
commit | 2bba10be28d4d7ce45d78a8429caaa6952785901 (patch) | |
tree | f109c546999211b36c3b1b889db52bec9c896a59 /recipes-extended | |
parent | f1e768dfdfb148b9b4c6aaaf065ccea79dd5484d (diff) | |
download | meta-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.bb | 5 |
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 | ||
380 | SELECTED_OPTIMIZATION_remove_virtclass-multilib-lib32_mipsarch = "-Og" | ||
381 | SELECTED_OPTIMIZATION_append_virtclass-multilib-lib32_mipsarch = " -O2" | ||
382 | |||
378 | EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}" | 383 | EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}" |
379 | 384 | ||
380 | PRIVATE_LIBS_${PN}-ptest_append = "libvirt-admin.so.0" | 385 | PRIVATE_LIBS_${PN}-ptest_append = "libvirt-admin.so.0" |