* [Buildroot] [PATCH 1/1] package/micropython: fix build with gcc 9
@ 2019-08-11 21:50 Fabrice Fontaine
2019-08-12 7:57 ` Chris Packham
2019-08-12 20:36 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2019-08-11 21:50 UTC (permalink / raw)
To: buildroot
Fixes:
- http://autobuild.buildroot.org/results/087906ea63875bcea244aa8f1e551aecd8285f65
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
..._vsnprintf-alias-for-gcc-9-and-above.patch | 32 +++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 package/micropython/0002-lib-utils-printf-Exclude-__GI_vsnprintf-alias-for-gcc-9-and-above.patch
diff --git a/package/micropython/0002-lib-utils-printf-Exclude-__GI_vsnprintf-alias-for-gcc-9-and-above.patch b/package/micropython/0002-lib-utils-printf-Exclude-__GI_vsnprintf-alias-for-gcc-9-and-above.patch
new file mode 100644
index 0000000000..161d97e5b9
--- /dev/null
+++ b/package/micropython/0002-lib-utils-printf-Exclude-__GI_vsnprintf-alias-for-gcc-9-and-above.patch
@@ -0,0 +1,32 @@
+From 7bbde67cb2dc52c04bd7020689a1227bddfa1b06 Mon Sep 17 00:00:00 2001
+From: Damien George <damien.p.george@gmail.com>
+Date: Wed, 6 Feb 2019 01:12:51 +1100
+Subject: [PATCH] lib/utils/printf: Exclude __GI_vsnprintf alias for gcc 9 and
+ above.
+
+See issue #4457.
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved from:
+https://github.com/micropython/micropython/commit/7bbde67cb2dc52c04bd7020689a1227bddfa1b06]
+---
+ lib/utils/printf.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/lib/utils/printf.c b/lib/utils/printf.c
+index 1ceeea39ff..0c21fc4c0a 100644
+--- a/lib/utils/printf.c
++++ b/lib/utils/printf.c
+@@ -99,9 +99,11 @@ STATIC void strn_print_strn(void *data, const char *str, size_t len) {
+ strn_print_env->remain -= len;
+ }
+
+-#if defined(__GNUC__) && !defined(__clang__)
++#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 9
+ // uClibc requires this alias to be defined, or there may be link errors
+ // when linkings against it statically.
++// GCC 9 gives a warning about missing attributes so it's excluded until
++// uClibc+GCC9 support is needed.
+ int __GI_vsnprintf(char *str, size_t size, const char *fmt, va_list ap) __attribute__((weak, alias ("vsnprintf")));
+ #endif
+
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/micropython: fix build with gcc 9
2019-08-11 21:50 [Buildroot] [PATCH 1/1] package/micropython: fix build with gcc 9 Fabrice Fontaine
@ 2019-08-12 7:57 ` Chris Packham
2019-08-12 20:36 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Chris Packham @ 2019-08-12 7:57 UTC (permalink / raw)
To: buildroot
Hi Fabrice,
On Mon, Aug 12, 2019 at 9:50 AM Fabrice Fontaine
<fontaine.fabrice@gmail.com> wrote:
>
> Fixes:
> - http://autobuild.buildroot.org/results/087906ea63875bcea244aa8f1e551aecd8285f65
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Thanks,
Reviewed-by: Chris Packham <judge.packham@gmail.com>
> ---
> ..._vsnprintf-alias-for-gcc-9-and-above.patch | 32 +++++++++++++++++++
> 1 file changed, 32 insertions(+)
> create mode 100644 package/micropython/0002-lib-utils-printf-Exclude-__GI_vsnprintf-alias-for-gcc-9-and-above.patch
>
> diff --git a/package/micropython/0002-lib-utils-printf-Exclude-__GI_vsnprintf-alias-for-gcc-9-and-above.patch b/package/micropython/0002-lib-utils-printf-Exclude-__GI_vsnprintf-alias-for-gcc-9-and-above.patch
> new file mode 100644
> index 0000000000..161d97e5b9
> --- /dev/null
> +++ b/package/micropython/0002-lib-utils-printf-Exclude-__GI_vsnprintf-alias-for-gcc-9-and-above.patch
> @@ -0,0 +1,32 @@
> +From 7bbde67cb2dc52c04bd7020689a1227bddfa1b06 Mon Sep 17 00:00:00 2001
> +From: Damien George <damien.p.george@gmail.com>
> +Date: Wed, 6 Feb 2019 01:12:51 +1100
> +Subject: [PATCH] lib/utils/printf: Exclude __GI_vsnprintf alias for gcc 9 and
> + above.
> +
> +See issue #4457.
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Retrieved from:
> +https://github.com/micropython/micropython/commit/7bbde67cb2dc52c04bd7020689a1227bddfa1b06]
> +---
> + lib/utils/printf.c | 4 +++-
> + 1 file changed, 3 insertions(+), 1 deletion(-)
> +
> +diff --git a/lib/utils/printf.c b/lib/utils/printf.c
> +index 1ceeea39ff..0c21fc4c0a 100644
> +--- a/lib/utils/printf.c
> ++++ b/lib/utils/printf.c
> +@@ -99,9 +99,11 @@ STATIC void strn_print_strn(void *data, const char *str, size_t len) {
> + strn_print_env->remain -= len;
> + }
> +
> +-#if defined(__GNUC__) && !defined(__clang__)
> ++#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 9
> + // uClibc requires this alias to be defined, or there may be link errors
> + // when linkings against it statically.
> ++// GCC 9 gives a warning about missing attributes so it's excluded until
> ++// uClibc+GCC9 support is needed.
> + int __GI_vsnprintf(char *str, size_t size, const char *fmt, va_list ap) __attribute__((weak, alias ("vsnprintf")));
> + #endif
> +
> --
> 2.20.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/micropython: fix build with gcc 9
2019-08-11 21:50 [Buildroot] [PATCH 1/1] package/micropython: fix build with gcc 9 Fabrice Fontaine
2019-08-12 7:57 ` Chris Packham
@ 2019-08-12 20:36 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-08-12 20:36 UTC (permalink / raw)
To: buildroot
On Sun, 11 Aug 2019 23:50:28 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fixes:
> - http://autobuild.buildroot.org/results/087906ea63875bcea244aa8f1e551aecd8285f65
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ..._vsnprintf-alias-for-gcc-9-and-above.patch | 32 +++++++++++++++++++
> 1 file changed, 32 insertions(+)
> create mode 100644 package/micropython/0002-lib-utils-printf-Exclude-__GI_vsnprintf-alias-for-gcc-9-and-above.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-12 20:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-11 21:50 [Buildroot] [PATCH 1/1] package/micropython: fix build with gcc 9 Fabrice Fontaine
2019-08-12 7:57 ` Chris Packham
2019-08-12 20:36 ` Thomas Petazzoni
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.