All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mg: fix build with gcc 10
@ 2020-09-05 12:54 Fabrice Fontaine
  2020-09-05 14:35 ` Joachim Nilsson
  2020-09-05 21:31 ` Yann E. MORIN
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2020-09-05 12:54 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/aacc02abf41e120e0d0b22faa38642e6d149d73f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...0001-src-def.h-fix-build-with-gcc-10.patch | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 package/mg/0001-src-def.h-fix-build-with-gcc-10.patch

diff --git a/package/mg/0001-src-def.h-fix-build-with-gcc-10.patch b/package/mg/0001-src-def.h-fix-build-with-gcc-10.patch
new file mode 100644
index 0000000000..7823d5b6c5
--- /dev/null
+++ b/package/mg/0001-src-def.h-fix-build-with-gcc-10.patch
@@ -0,0 +1,36 @@
+From 29c83c917bd4f5d0c37ff0ab5da1a85762bd5530 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 5 Sep 2020 14:50:20 +0200
+Subject: [PATCH] src/def.h: fix build with gcc 10
+
+Define hlp as extern to avoid the following build failure with gcc 10
+(which defaults to -fno-common):
+
+  CCLD     mg
+/home/buildroot/autobuild/run/instance-1/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: mg-bell.o:(.bss+0x0): multiple definition of `hlp'; mg-basic.o:(.bss+0x0): first defined here
+
+Fixes:
+ - http://autobuild.buildroot.org/results/aacc02abf41e120e0d0b22faa38642e6d149d73f
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/troglobit/mg/pull/7]
+---
+ src/def.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/def.h b/src/def.h
+index e4c049c..cd59725 100644
+--- a/src/def.h
++++ b/src/def.h
+@@ -650,7 +650,7 @@ int		 excline(char *);
+ char		*skipwhite(char *);
+ 
+ /* help.c X */
+-const char	*hlp;
++extern const char	*hlp;
+ int		 desckey(int, int);
+ int		 wallchart(int, int);
+ int		 help_help(int, int);
+-- 
+2.28.0
+
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/mg: fix build with gcc 10
  2020-09-05 12:54 [Buildroot] [PATCH 1/1] package/mg: fix build with gcc 10 Fabrice Fontaine
@ 2020-09-05 14:35 ` Joachim Nilsson
  2020-09-05 21:31 ` Yann E. MORIN
  1 sibling, 0 replies; 3+ messages in thread
From: Joachim Nilsson @ 2020-09-05 14:35 UTC (permalink / raw)
  To: buildroot

On Sat Sep 5, 2020 at 2:54 PM CEST, Fabrice Fontaine wrote:
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Acked-by: Joachim Wiberg <troglobit@gmail.com>

> +[Upstream status: https://github.com/troglobit/mg/pull/7]

Merged upstream, thank you.

Regards
 /Joachim

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/mg: fix build with gcc 10
  2020-09-05 12:54 [Buildroot] [PATCH 1/1] package/mg: fix build with gcc 10 Fabrice Fontaine
  2020-09-05 14:35 ` Joachim Nilsson
@ 2020-09-05 21:31 ` Yann E. MORIN
  1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2020-09-05 21:31 UTC (permalink / raw)
  To: buildroot

Fabrice, All,

On 2020-09-05 14:54 +0200, Fabrice Fontaine spake thusly:
> Fixes:
>  - http://autobuild.buildroot.org/results/aacc02abf41e120e0d0b22faa38642e6d149d73f
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, after slightly editing the patch now that it is
merged upstream. Thanks!

Regards,
Yann E. MORIN.

> ---
>  ...0001-src-def.h-fix-build-with-gcc-10.patch | 36 +++++++++++++++++++
>  1 file changed, 36 insertions(+)
>  create mode 100644 package/mg/0001-src-def.h-fix-build-with-gcc-10.patch
> 
> diff --git a/package/mg/0001-src-def.h-fix-build-with-gcc-10.patch b/package/mg/0001-src-def.h-fix-build-with-gcc-10.patch
> new file mode 100644
> index 0000000000..7823d5b6c5
> --- /dev/null
> +++ b/package/mg/0001-src-def.h-fix-build-with-gcc-10.patch
> @@ -0,0 +1,36 @@
> +From 29c83c917bd4f5d0c37ff0ab5da1a85762bd5530 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sat, 5 Sep 2020 14:50:20 +0200
> +Subject: [PATCH] src/def.h: fix build with gcc 10
> +
> +Define hlp as extern to avoid the following build failure with gcc 10
> +(which defaults to -fno-common):
> +
> +  CCLD     mg
> +/home/buildroot/autobuild/run/instance-1/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: mg-bell.o:(.bss+0x0): multiple definition of `hlp'; mg-basic.o:(.bss+0x0): first defined here
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/aacc02abf41e120e0d0b22faa38642e6d149d73f
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: https://github.com/troglobit/mg/pull/7]
> +---
> + src/def.h | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/src/def.h b/src/def.h
> +index e4c049c..cd59725 100644
> +--- a/src/def.h
> ++++ b/src/def.h
> +@@ -650,7 +650,7 @@ int		 excline(char *);
> + char		*skipwhite(char *);
> + 
> + /* help.c X */
> +-const char	*hlp;
> ++extern const char	*hlp;
> + int		 desckey(int, int);
> + int		 wallchart(int, int);
> + int		 help_help(int, int);
> +-- 
> +2.28.0
> +
> -- 
> 2.28.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/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.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-05 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-05 12:54 [Buildroot] [PATCH 1/1] package/mg: fix build with gcc 10 Fabrice Fontaine
2020-09-05 14:35 ` Joachim Nilsson
2020-09-05 21:31 ` Yann E. MORIN

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.