Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] gdb: MIPS plus musl build fix + minor cleanup
@ 2016-02-08 19:35 Andre McCurdy
  2016-02-08 19:35 ` [PATCH 1/2] gdb: build fix for MIPS + musl libc Andre McCurdy
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andre McCurdy @ 2016-02-08 19:35 UTC (permalink / raw)
  To: openembedded-core

Andre McCurdy (2):
  gdb: build fix for MIPS + musl libc
  gdb: drop unnecessary CC_FOR_BUILD etc exports

 meta/recipes-devtools/gdb/gdb-common.inc           |  7 +----
 meta/recipes-devtools/gdb/gdb.inc                  |  1 +
 .../gdb/gdb/0001-use-asm-sgidefs.h.patch           | 35 ++++++++++++++++++++++
 3 files changed, 37 insertions(+), 6 deletions(-)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0001-use-asm-sgidefs.h.patch

-- 
1.9.1



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

* [PATCH 1/2] gdb: build fix for MIPS + musl libc
  2016-02-08 19:35 [PATCH 0/2] gdb: MIPS plus musl build fix + minor cleanup Andre McCurdy
@ 2016-02-08 19:35 ` Andre McCurdy
  2016-02-08 19:35 ` [PATCH 2/2] gdb: drop unnecessary CC_FOR_BUILD etc exports Andre McCurdy
  2016-02-08 19:49 ` [PATCH 0/2] gdb: MIPS plus musl build fix + minor cleanup Khem Raj
  2 siblings, 0 replies; 7+ messages in thread
From: Andre McCurdy @ 2016-02-08 19:35 UTC (permalink / raw)
  To: openembedded-core

The MIPS specific header <sgidefs.h> is provided by glibc and uclibc
but not by musl. Regardless of the libc, the kernel headers provide
<asm/sgidefs.h> which provides the same definitions, so use that
instead.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
 meta/recipes-devtools/gdb/gdb.inc                  |  1 +
 .../gdb/gdb/0001-use-asm-sgidefs.h.patch           | 35 ++++++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 meta/recipes-devtools/gdb/gdb/0001-use-asm-sgidefs.h.patch

diff --git a/meta/recipes-devtools/gdb/gdb.inc b/meta/recipes-devtools/gdb/gdb.inc
index 4ea14c1..1dd6551 100644
--- a/meta/recipes-devtools/gdb/gdb.inc
+++ b/meta/recipes-devtools/gdb/gdb.inc
@@ -6,6 +6,7 @@ SRC_URI += "file://0002-Change-order-of-CFLAGS.patch \
             file://0003-Add-support-for-Renesas-SH-sh4-architecture.patch \
             file://0001-Use-exported-definitions-of-SIGRTMIN.patch \
             file://0001-include-sys-types.h-for-mode_t.patch \
+            file://0001-use-asm-sgidefs.h.patch \
            "
 #LDFLAGS_append = " -s"
 #export CFLAGS_append=" -L${STAGING_LIBDIR}"
diff --git a/meta/recipes-devtools/gdb/gdb/0001-use-asm-sgidefs.h.patch b/meta/recipes-devtools/gdb/gdb/0001-use-asm-sgidefs.h.patch
new file mode 100644
index 0000000..eaec390
--- /dev/null
+++ b/meta/recipes-devtools/gdb/gdb/0001-use-asm-sgidefs.h.patch
@@ -0,0 +1,35 @@
+From 677b5b56135141c0d259e370aacd0e11c810aa15 Mon Sep 17 00:00:00 2001
+From: Andre McCurdy <armccurdy@gmail.com>
+Date: Fri, 5 Feb 2016 14:00:00 -0800
+Subject: [PATCH] use <asm/sgidefs.h>
+
+Build fix for MIPS with musl libc
+
+The MIPS specific header <sgidefs.h> is provided by glibc and uclibc
+but not by musl. Regardless of the libc, the kernel headers provide
+<asm/sgidefs.h> which provides the same definitions, so use that
+instead.
+
+Upstream-Status: Pending
+
+Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
+---
+ gdb/mips-linux-nat.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
+index a36bb63..fd5c705 100644
+--- a/gdb/mips-linux-nat.c
++++ b/gdb/mips-linux-nat.c
+@@ -31,7 +31,7 @@
+ #include "gdb_proc_service.h"
+ #include "gregset.h"
+ 
+-#include <sgidefs.h>
++#include <asm/sgidefs.h>
+ #include <sys/ptrace.h>
+ #include <asm/ptrace.h>
+ 
+-- 
+1.9.1
+
-- 
1.9.1



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

* [PATCH 2/2] gdb: drop unnecessary CC_FOR_BUILD etc exports
  2016-02-08 19:35 [PATCH 0/2] gdb: MIPS plus musl build fix + minor cleanup Andre McCurdy
  2016-02-08 19:35 ` [PATCH 1/2] gdb: build fix for MIPS + musl libc Andre McCurdy
@ 2016-02-08 19:35 ` Andre McCurdy
  2016-02-08 19:48   ` Khem Raj
  2016-02-08 19:49 ` [PATCH 0/2] gdb: MIPS plus musl build fix + minor cleanup Khem Raj
  2 siblings, 1 reply; 7+ messages in thread
From: Andre McCurdy @ 2016-02-08 19:35 UTC (permalink / raw)
  To: openembedded-core

These exports are all provided by autotool.bbclass

  http://git.openembedded.org/openembedded-core/commit/?id=edf30561184ec42e5692a55fdf93304fac0fdb1b

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
 meta/recipes-devtools/gdb/gdb-common.inc | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index 6baeb0b..06272a9 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -22,16 +22,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
 		file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \
 		file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
 		file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6"
+
 inherit autotools texinfo
 
 SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
           "
-export CC_FOR_BUILD = "${BUILD_CC}"
-export CXX_FOR_BUILD = "${BUILD_CXX}"
-export CPP_FOR_BUILD = "${BUILD_CPP}"
-export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
-export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
-export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
 
 B = "${WORKDIR}/build-${TARGET_SYS}"
 
-- 
1.9.1



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

* Re: [PATCH 2/2] gdb: drop unnecessary CC_FOR_BUILD etc exports
  2016-02-08 19:35 ` [PATCH 2/2] gdb: drop unnecessary CC_FOR_BUILD etc exports Andre McCurdy
@ 2016-02-08 19:48   ` Khem Raj
  2016-02-08 19:55     ` Andre McCurdy
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2016-02-08 19:48 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: Patches and discussions about the oe-core layer

On Mon, Feb 8, 2016 at 11:35 AM, Andre McCurdy <armccurdy@gmail.com> wrote:
> These exports are all provided by autotool.bbclass
>
>   http://git.openembedded.org/openembedded-core/commit/?id=edf30561184ec42e5692a55fdf93304fac0fdb1b
>
> Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
> ---
>  meta/recipes-devtools/gdb/gdb-common.inc | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
> index 6baeb0b..06272a9 100644
> --- a/meta/recipes-devtools/gdb/gdb-common.inc
> +++ b/meta/recipes-devtools/gdb/gdb-common.inc
> @@ -22,16 +22,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
>                 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \
>                 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
>                 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6"
> +
>  inherit autotools texinfo
>
>  SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
>            "
> -export CC_FOR_BUILD = "${BUILD_CC}"
> -export CXX_FOR_BUILD = "${BUILD_CXX}"
> -export CPP_FOR_BUILD = "${BUILD_CPP}"
> -export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
> -export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
> -export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
>

you should build all flavours of gdb recipes for one architectures
including mutlilib combination to test this out.

>  B = "${WORKDIR}/build-${TARGET_SYS}"
>
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH 0/2] gdb: MIPS plus musl build fix + minor cleanup
  2016-02-08 19:35 [PATCH 0/2] gdb: MIPS plus musl build fix + minor cleanup Andre McCurdy
  2016-02-08 19:35 ` [PATCH 1/2] gdb: build fix for MIPS + musl libc Andre McCurdy
  2016-02-08 19:35 ` [PATCH 2/2] gdb: drop unnecessary CC_FOR_BUILD etc exports Andre McCurdy
@ 2016-02-08 19:49 ` Khem Raj
  2 siblings, 0 replies; 7+ messages in thread
From: Khem Raj @ 2016-02-08 19:49 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: Patches and discussions about the oe-core layer

On Mon, Feb 8, 2016 at 11:35 AM, Andre McCurdy <armccurdy@gmail.com> wrote:
> Andre McCurdy (2):
>   gdb: build fix for MIPS + musl libc
>   gdb: drop unnecessary CC_FOR_BUILD etc exports
>

looks ok conditionally I have pulled it into my tree.
https://github.com/kraj/openembedded-core/tree/kraj/master

>  meta/recipes-devtools/gdb/gdb-common.inc           |  7 +----
>  meta/recipes-devtools/gdb/gdb.inc                  |  1 +
>  .../gdb/gdb/0001-use-asm-sgidefs.h.patch           | 35 ++++++++++++++++++++++
>  3 files changed, 37 insertions(+), 6 deletions(-)
>  create mode 100644 meta/recipes-devtools/gdb/gdb/0001-use-asm-sgidefs.h.patch
>
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH 2/2] gdb: drop unnecessary CC_FOR_BUILD etc exports
  2016-02-08 19:48   ` Khem Raj
@ 2016-02-08 19:55     ` Andre McCurdy
  2016-02-08 19:58       ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Andre McCurdy @ 2016-02-08 19:55 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

On Mon, Feb 8, 2016 at 11:48 AM, Khem Raj <raj.khem@gmail.com> wrote:
> On Mon, Feb 8, 2016 at 11:35 AM, Andre McCurdy <armccurdy@gmail.com> wrote:
>> These exports are all provided by autotool.bbclass
>>
>>   http://git.openembedded.org/openembedded-core/commit/?id=edf30561184ec42e5692a55fdf93304fac0fdb1b
>>
>> Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
>> ---
>>  meta/recipes-devtools/gdb/gdb-common.inc | 7 +------
>>  1 file changed, 1 insertion(+), 6 deletions(-)
>>
>> diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
>> index 6baeb0b..06272a9 100644
>> --- a/meta/recipes-devtools/gdb/gdb-common.inc
>> +++ b/meta/recipes-devtools/gdb/gdb-common.inc
>> @@ -22,16 +22,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
>>                 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \
>>                 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
>>                 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6"
>> +
>>  inherit autotools texinfo
>>
>>  SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
>>            "
>> -export CC_FOR_BUILD = "${BUILD_CC}"
>> -export CXX_FOR_BUILD = "${BUILD_CXX}"
>> -export CPP_FOR_BUILD = "${BUILD_CPP}"
>> -export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
>> -export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
>> -export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
>>
>
> you should build all flavours of gdb recipes for one architectures
> including mutlilib combination to test this out.

I checked that these exports all exactly match the ones in
autotools.bbclass so it's not clear what could go wrong.

Is there a combination which you suspect will have trouble with this patch?


>>  B = "${WORKDIR}/build-${TARGET_SYS}"
>>
>> --
>> 1.9.1
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH 2/2] gdb: drop unnecessary CC_FOR_BUILD etc exports
  2016-02-08 19:55     ` Andre McCurdy
@ 2016-02-08 19:58       ` Khem Raj
  0 siblings, 0 replies; 7+ messages in thread
From: Khem Raj @ 2016-02-08 19:58 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: Patches and discussions about the oe-core layer

On Mon, Feb 8, 2016 at 11:55 AM, Andre McCurdy <armccurdy@gmail.com> wrote:
> On Mon, Feb 8, 2016 at 11:48 AM, Khem Raj <raj.khem@gmail.com> wrote:
>> On Mon, Feb 8, 2016 at 11:35 AM, Andre McCurdy <armccurdy@gmail.com> wrote:
>>> These exports are all provided by autotool.bbclass
>>>
>>>   http://git.openembedded.org/openembedded-core/commit/?id=edf30561184ec42e5692a55fdf93304fac0fdb1b
>>>
>>> Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
>>> ---
>>>  meta/recipes-devtools/gdb/gdb-common.inc | 7 +------
>>>  1 file changed, 1 insertion(+), 6 deletions(-)
>>>
>>> diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
>>> index 6baeb0b..06272a9 100644
>>> --- a/meta/recipes-devtools/gdb/gdb-common.inc
>>> +++ b/meta/recipes-devtools/gdb/gdb-common.inc
>>> @@ -22,16 +22,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
>>>                 file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \
>>>                 file://COPYING3;md5=d32239bcb673463ab874e80d47fae504 \
>>>                 file://COPYING3.LIB;md5=6a6a8e020838b23406c81b19c1d46df6"
>>> +
>>>  inherit autotools texinfo
>>>
>>>  SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.gz \
>>>            "
>>> -export CC_FOR_BUILD = "${BUILD_CC}"
>>> -export CXX_FOR_BUILD = "${BUILD_CXX}"
>>> -export CPP_FOR_BUILD = "${BUILD_CPP}"
>>> -export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
>>> -export CXXFLAGS_FOR_BUILD = "${BUILD_CXXFLAGS}"
>>> -export CPPFLAGS_FOR_BUILD = "${BUILD_CPPFLAGS}"
>>>
>>
>> you should build all flavours of gdb recipes for one architectures
>> including mutlilib combination to test this out.
>
> I checked that these exports all exactly match the ones in
> autotools.bbclass so it's not clear what could go wrong.

These flags get overridden when morphing into native/cross/crosssdk and ilk.

>
> Is there a combination which you suspect will have trouble with this patch?
>
build crosssdk or cross-canadian recipes e.g.


>
>>>  B = "${WORKDIR}/build-${TARGET_SYS}"
>>>
>>> --
>>> 1.9.1
>>>
>>> --
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

end of thread, other threads:[~2016-02-08 19:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-08 19:35 [PATCH 0/2] gdb: MIPS plus musl build fix + minor cleanup Andre McCurdy
2016-02-08 19:35 ` [PATCH 1/2] gdb: build fix for MIPS + musl libc Andre McCurdy
2016-02-08 19:35 ` [PATCH 2/2] gdb: drop unnecessary CC_FOR_BUILD etc exports Andre McCurdy
2016-02-08 19:48   ` Khem Raj
2016-02-08 19:55     ` Andre McCurdy
2016-02-08 19:58       ` Khem Raj
2016-02-08 19:49 ` [PATCH 0/2] gdb: MIPS plus musl build fix + minor cleanup Khem Raj

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