Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] libunwind: Use -fcommon option to compile
@ 2020-08-05  6:14 Khem Raj
  2020-08-05  6:14 ` [PATCH 2/2] dhcp: Use -fcommon compiler option Khem Raj
  2020-08-05  9:26 ` [OE-core] [PATCH 1/2] libunwind: Use -fcommon option to compile Adrian Bunk
  0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2020-08-05  6:14 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

defaults for gcc is to use -fno-common this ensures that it keeps using
-fcommon until the real issue is fixed

Fixes
src/arm/Ginit.c:60: multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:/usr/src/debug/libunwind/1.4.0-r0/build/src/../../libunwind-1.4.0/src/mi/dyn-info-list.c:28: first defined here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-support/libunwind/libunwind_1.4.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-support/libunwind/libunwind_1.4.0.bb b/meta/recipes-support/libunwind/libunwind_1.4.0.bb
index 34c2249e91..a0bfec90b5 100644
--- a/meta/recipes-support/libunwind/libunwind_1.4.0.bb
+++ b/meta/recipes-support/libunwind/libunwind_1.4.0.bb
@@ -23,3 +23,5 @@ ARM_INSTRUCTION_SET_armv5 = "arm"
 LDFLAGS += "-Wl,-z,relro,-z,now ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
 
 SECURITY_LDFLAGS_append_libc-musl = " -lssp_nonshared"
+
+CFLAGS += "-fcommon"
-- 
2.28.0


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

* [PATCH 2/2] dhcp: Use -fcommon compiler option
  2020-08-05  6:14 [PATCH 1/2] libunwind: Use -fcommon option to compile Khem Raj
@ 2020-08-05  6:14 ` Khem Raj
  2020-08-05  9:26 ` [OE-core] [PATCH 1/2] libunwind: Use -fcommon option to compile Adrian Bunk
  1 sibling, 0 replies; 4+ messages in thread
From: Khem Raj @ 2020-08-05  6:14 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

This ensures -fcommon is still used when compiler defaults to
-fno-common in gcc10 and clang11

Fixes
dhcp-4.4.2/server/mdb.c:70: multiple definition of `dhcp_type_host'; dhcpd-omapi.o:/usr/src/debug/dhcp/4.4.2-r0/dhcp-4.4.2/server/omapi.c:50: first defined here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-connectivity/dhcp/dhcp_4.4.2.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.4.2.bb b/meta/recipes-connectivity/dhcp/dhcp_4.4.2.bb
index b56a204821..cf4af82609 100644
--- a/meta/recipes-connectivity/dhcp/dhcp_4.4.2.bb
+++ b/meta/recipes-connectivity/dhcp/dhcp_4.4.2.bb
@@ -19,3 +19,5 @@ LDFLAGS_append = " -pthread"
 
 PACKAGECONFIG ?= ""
 PACKAGECONFIG[bind-httpstats] = "--with-libxml2,--without-libxml2,libxml2"
+
+CFLAGS += "-fcommon"
-- 
2.28.0


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

* Re: [OE-core] [PATCH 1/2] libunwind: Use -fcommon option to compile
  2020-08-05  6:14 [PATCH 1/2] libunwind: Use -fcommon option to compile Khem Raj
  2020-08-05  6:14 ` [PATCH 2/2] dhcp: Use -fcommon compiler option Khem Raj
@ 2020-08-05  9:26 ` Adrian Bunk
  2020-08-05 16:53   ` Khem Raj
  1 sibling, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2020-08-05  9:26 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

On Tue, Aug 04, 2020 at 11:14:48PM -0700, Khem Raj wrote:
> defaults for gcc is to use -fno-common this ensures that it keeps using
> -fcommon until the real issue is fixed
> 
> Fixes
> src/arm/Ginit.c:60: multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:/usr/src/debug/libunwind/1.4.0-r0/build/src/../../libunwind-1.4.0/src/mi/dyn-info-list.c:28: first defined here
>...

The upstream fix is
https://github.com/libunwind/libunwind/commit/29e17d8d2ccbca07c423e3089a6d5ae8a1c9cb6e

cu
Adrian

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

* Re: [OE-core] [PATCH 1/2] libunwind: Use -fcommon option to compile
  2020-08-05  9:26 ` [OE-core] [PATCH 1/2] libunwind: Use -fcommon option to compile Adrian Bunk
@ 2020-08-05 16:53   ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2020-08-05 16:53 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Patches and discussions about the oe-core layer

On Wed, Aug 5, 2020 at 2:26 AM Adrian Bunk <bunk@stusta.de> wrote:
>
> On Tue, Aug 04, 2020 at 11:14:48PM -0700, Khem Raj wrote:
> > defaults for gcc is to use -fno-common this ensures that it keeps using
> > -fcommon until the real issue is fixed
> >
> > Fixes
> > src/arm/Ginit.c:60: multiple definition of `_U_dyn_info_list'; mi/.libs/dyn-info-list.o:/usr/src/debug/libunwind/1.4.0-r0/build/src/../../libunwind-1.4.0/src/mi/dyn-info-list.c:28: first defined here
> >...
>
> The upstream fix is
> https://github.com/libunwind/libunwind/commit/29e17d8d2ccbca07c423e3089a6d5ae8a1c9cb6e
>

Thanks for suggesting this, I have sent a v2

> cu
> Adrian

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

end of thread, other threads:[~2020-08-05 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-05  6:14 [PATCH 1/2] libunwind: Use -fcommon option to compile Khem Raj
2020-08-05  6:14 ` [PATCH 2/2] dhcp: Use -fcommon compiler option Khem Raj
2020-08-05  9:26 ` [OE-core] [PATCH 1/2] libunwind: Use -fcommon option to compile Adrian Bunk
2020-08-05 16:53   ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox