From: "Bruce Ashfield" <bruce.ashfield@gmail.com>
To: hongxu <hongxu.jia@windriver.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH] libvirt: Workaround mips assembler crash on target
Date: Wed, 1 Apr 2020 22:30:40 -0400 [thread overview]
Message-ID: <20200402023039.GA41338@gmail.com> (raw)
In-Reply-To: <1585639015-39281-1-git-send-email-hongxu.jia@windriver.com>
merged
Bruce
In message: [meta-virtualization][PATCH] libvirt: Workaround mips assembler crash on target
on 31/03/2020 hongxu wrote:
> 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>
> ---
> recipes-extended/libvirt/libvirt_6.1.0.bb | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/recipes-extended/libvirt/libvirt_6.1.0.bb b/recipes-extended/libvirt/libvirt_6.1.0.bb
> index 0ad3d8b..44354a4 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 += " \
> --with-test-suite \
> "
>
> +# gcc9 end up mis-compiling qemuxml2argvtest.o with Og which then
> +# crashes on target, so remove -Og and use -O2 as workaround
> +SELECTED_OPTIMIZATION_remove_virtclass-multilib-lib32_mipsarch = "-Og"
> +SELECTED_OPTIMIZATION_append_virtclass-multilib-lib32_mipsarch = " -O2"
> +
> EXTRA_OEMAKE = "BUILD_DIR=${B} DEST_DIR=${D}${PTEST_PATH} PTEST_DIR=${PTEST_PATH} SYSTEMD_UNIT_DIR=${systemd_system_unitdir}"
>
> PRIVATE_LIBS_${PN}-ptest_append = "libvirt-admin.so.0"
> --
> 2.7.4
>
>
prev parent reply other threads:[~2020-04-02 2:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-31 7:16 [meta-virtualization][PATCH] libvirt: Workaround mips assembler crash on target hongxu
2020-04-02 2:30 ` Bruce Ashfield [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200402023039.GA41338@gmail.com \
--to=bruce.ashfield@gmail.com \
--cc=hongxu.jia@windriver.com \
--cc=meta-virtualization@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.