From: "Bruce Ashfield" <bruce.ashfield@gmail.com>
To: hongxu <hongxu.jia@windriver.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH] lxc: fix compile failure on gcc10
Date: Tue, 19 May 2020 17:19:34 -0400 [thread overview]
Message-ID: <20200519211933.GB22460@gmail.com> (raw)
In-Reply-To: <20200519075534.46799-1-hongxu.jia@windriver.com>
merged
Bruce
In message: [meta-virtualization][PATCH] lxc: fix compile failure on gcc10
on 19/05/2020 hongxu wrote:
> Since oe-core is upgrading gcc to 10.1, there is
> a compile failure
> ...
> |../../../lxc-4.0.2/src/lxc/cgroups/cgfsng.c:2100:10: error: writing
> 1 byte into a region of size 0 [-Werror=stringop-overflow=]
> | 2100 | *slash = '\0';
> ...
>
> Add gcc option `-Werror=stringop-overflow' to workaround the issue
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
> recipes-containers/lxc/lxc_4.0.2.bb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-containers/lxc/lxc_4.0.2.bb b/recipes-containers/lxc/lxc_4.0.2.bb
> index 441cf96..d0ead81 100644
> --- a/recipes-containers/lxc/lxc_4.0.2.bb
> +++ b/recipes-containers/lxc/lxc_4.0.2.bb
> @@ -67,7 +67,7 @@ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
>
> EXTRA_OECONF += "--enable-log-src-basename"
>
> -CFLAGS_append = " -Wno-error=deprecated-declarations"
> +CFLAGS_append = " -Wno-error=deprecated-declarations -Wno-error=stringop-overflow"
>
> PACKAGECONFIG ??= "templates \
> ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
> --
> 2.21.0
>
>
prev parent reply other threads:[~2020-05-19 21:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-19 7:55 [meta-virtualization][PATCH] lxc: fix compile failure on gcc10 hongxu
2020-05-19 21:19 ` 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=20200519211933.GB22460@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.