From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/pango: fix build with gcc >= 13
Date: Sun, 29 Oct 2023 12:15:20 +0100 [thread overview]
Message-ID: <20231029111520.GW687180@scaer> (raw)
In-Reply-To: <20231029085831.234005-1-fontaine.fabrice@gmail.com>
Fabrice, All,
On 2023-10-29 09:58 +0100, Fabrice Fontaine spake thusly:
> Fix the following build failure with gcc >= 13:
>
> In function 'find_best_lang_match_cached',
> inlined from 'find_best_lang_match_cached' at ../pango/pango-language.c:501:1,
> inlined from 'pango_language_get_scripts' at ../pango/pango-language.c:661:21:
> ../pango/pango-language.c:518:12: error: array subscript 0 is outside array bounds of 'const void *[0]' {aka 'const void *[]'} [-Werror=array-bounds=]
> 518 | *cache = result;
> | ~~~~~~~^~~~~~~~
> In function 'pango_language_get_scripts':
> cc1: note: source object is likely at address zero
> cc1: some warnings being treated as errors
>
> Fixes:
> - http://autobuild.buildroot.org/results/e8b5a752a62621099942b29c1642747eef2930cb
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> .../pango/0001-Drop-Werror-array-bounds.patch | 40 +++++++++++++++++++
> 1 file changed, 40 insertions(+)
> create mode 100644 package/pango/0001-Drop-Werror-array-bounds.patch
>
> diff --git a/package/pango/0001-Drop-Werror-array-bounds.patch b/package/pango/0001-Drop-Werror-array-bounds.patch
> new file mode 100644
> index 0000000000..45821e8533
> --- /dev/null
> +++ b/package/pango/0001-Drop-Werror-array-bounds.patch
> @@ -0,0 +1,40 @@
> +From e93dbd66973040f1e0afcba0dc7c712c27d75d59 Mon Sep 17 00:00:00 2001
> +From: Matthias Clasen <mclasen@redhat.com>
> +Date: Mon, 1 May 2023 23:27:52 -0400
> +Subject: [PATCH] Drop -Werror=array-bounds
> +
> +gcc has strange issues with this and produces false
> +positives that recently started breaking the build of
> +pango as a subproject in gtk.
> +
> +See e.g. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
> +
> +Upstream: https://gitlab.gnome.org/GNOME/pango/-/commit/e93dbd66973040f1e0afcba0dc7c712c27d75d59
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + meson.build | 2 --
> + 1 file changed, 2 deletions(-)
> +
> +diff --git a/meson.build b/meson.build
> +index 930f41082..2d30c0141 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -89,7 +89,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
> + '-Wuninitialized',
> + '-Wunused',
> + '-Werror=address',
> +- '-Werror=array-bounds',
> + '-Werror=empty-body',
> + '-Werror=implicit',
> + '-Werror=implicit-fallthrough',
> +@@ -132,7 +131,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
> + '-Werror=sequence-point',
> + '-Werror=return-type',
> + '-Werror=trigraphs',
> +- '-Werror=array-bounds',
> + '-Werror=write-strings',
> + '-Werror=address',
> + '-Werror=int-to-pointer-cast',
> +--
> +GitLab
> +
> --
> 2.42.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-10-29 11:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-29 8:58 [Buildroot] [PATCH 1/1] package/pango: fix build with gcc >= 13 Fabrice Fontaine
2023-10-29 11:15 ` Yann E. MORIN [this message]
2023-11-01 9:13 ` Peter Korsgaard
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=20231029111520.GW687180@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
/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.