All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/bellagio: fix build with gcc 10
@ 2020-08-12 20:25 Fabrice Fontaine
  2020-08-13 19:58 ` Thomas Petazzoni
  2020-08-13 19:59 ` Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2020-08-12 20:25 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/0c02f845eabfbc276ee5989520a3c77fc47289ab

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...e_resource_manager.-h-c-fix-build-wi.patch | 57 +++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 package/bellagio/0006-src-omx_reference_resource_manager.-h-c-fix-build-wi.patch

diff --git a/package/bellagio/0006-src-omx_reference_resource_manager.-h-c-fix-build-wi.patch b/package/bellagio/0006-src-omx_reference_resource_manager.-h-c-fix-build-wi.patch
new file mode 100644
index 0000000000..1a2777cb18
--- /dev/null
+++ b/package/bellagio/0006-src-omx_reference_resource_manager.-h-c-fix-build-wi.patch
@@ -0,0 +1,57 @@
+From be9f72bc5fa05de466f9151ac399c17027b58b24 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Wed, 12 Aug 2020 21:38:51 +0200
+Subject: [PATCH] src/omx_reference_resource_manager.{h,c}: fix build with gcc
+ 10
+
+Move globalIndex, listOfcomponentRegistered, globalComponentList and
+globalWaitingComponentList from header to source file to fix the build
+with gcc 10 which default to -fno-common:
+https://gcc.gnu.org/gcc-10/porting_to.html
+
+Fixes:
+ - http://autobuild.buildroot.org/results/0c02f845eabfbc276ee5989520a3c77fc47289ab
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://sourceforge.net/p/omxil/bugs/63]
+---
+ src/omx_reference_resource_manager.c | 5 +++++
+ src/omx_reference_resource_manager.h | 6 ------
+ 2 files changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/src/omx_reference_resource_manager.c b/src/omx_reference_resource_manager.c
+index ee7766b..5983611 100644
+--- a/src/omx_reference_resource_manager.c
++++ b/src/omx_reference_resource_manager.c
+@@ -30,6 +30,11 @@
+ #include "base/omx_base_component.h"
+ #include "queue.h"
+ 
++int globalIndex;
++NameIndexType *listOfcomponentRegistered;
++ComponentListType **globalComponentList;
++ComponentListType **globalWaitingComponentList;
++
+ /**
+  * This is the static base pointer of the list
+  */
+diff --git a/src/omx_reference_resource_manager.h b/src/omx_reference_resource_manager.h
+index ba8dad9..75e4f93 100644
+--- a/src/omx_reference_resource_manager.h
++++ b/src/omx_reference_resource_manager.h
+@@ -48,12 +48,6 @@ struct NameIndexType {
+ 	int max_components;
+ };
+ 
+-
+-int globalIndex;
+-NameIndexType *listOfcomponentRegistered;
+-ComponentListType **globalComponentList;
+-ComponentListType **globalWaitingComponentList;
+-
+ OMX_ERRORTYPE RM_RegisterComponent(char *name, int max_components);
+ OMX_ERRORTYPE addElemToList(ComponentListType **list, OMX_COMPONENTTYPE *openmaxStandComp, int index, OMX_BOOL bIsWaiting);
+ OMX_ERRORTYPE removeElemFromList(ComponentListType **list, OMX_COMPONENTTYPE *openmaxStandComp);
+-- 
+2.27.0
+
-- 
2.27.0

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

* [Buildroot] [PATCH 1/1] package/bellagio: fix build with gcc 10
  2020-08-12 20:25 [Buildroot] [PATCH 1/1] package/bellagio: fix build with gcc 10 Fabrice Fontaine
@ 2020-08-13 19:58 ` Thomas Petazzoni
  2020-08-13 19:59 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2020-08-13 19:58 UTC (permalink / raw)
  To: buildroot

On Wed, 12 Aug 2020 22:25:08 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fixes:
>  - http://autobuild.buildroot.org/results/0c02f845eabfbc276ee5989520a3c77fc47289ab
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...e_resource_manager.-h-c-fix-build-wi.patch | 57 +++++++++++++++++++
>  1 file changed, 57 insertions(+)
>  create mode 100644 package/bellagio/0006-src-omx_reference_resource_manager.-h-c-fix-build-wi.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

* [Buildroot] [PATCH 1/1] package/bellagio: fix build with gcc 10
  2020-08-12 20:25 [Buildroot] [PATCH 1/1] package/bellagio: fix build with gcc 10 Fabrice Fontaine
  2020-08-13 19:58 ` Thomas Petazzoni
@ 2020-08-13 19:59 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2020-08-13 19:59 UTC (permalink / raw)
  To: buildroot

On Wed, 12 Aug 2020 22:25:08 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> +diff --git a/src/omx_reference_resource_manager.c b/src/omx_reference_resource_manager.c
> +index ee7766b..5983611 100644
> +--- a/src/omx_reference_resource_manager.c
> ++++ b/src/omx_reference_resource_manager.c
> +@@ -30,6 +30,11 @@
> + #include "base/omx_base_component.h"
> + #include "queue.h"
> + 
> ++int globalIndex;
> ++NameIndexType *listOfcomponentRegistered;
> ++ComponentListType **globalComponentList;
> ++ComponentListType **globalWaitingComponentList;

If these symbols are really only used in this file, then they should
preferably be declared with the static qualifier.

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:[~2020-08-13 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 20:25 [Buildroot] [PATCH 1/1] package/bellagio: fix build with gcc 10 Fabrice Fontaine
2020-08-13 19:58 ` Thomas Petazzoni
2020-08-13 19:59 ` 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.