* [PATCH 2/9] alsa-tools: Update to 1.1.6
2018-05-09 20:24 [PATCH 1/9] pbzip2: Fix C++11 warnings found with clang Khem Raj
@ 2018-05-09 20:24 ` Khem Raj
2018-05-09 20:24 ` [PATCH 3/9] alsa-lib: Upgrade " Khem Raj
` (6 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: Khem Raj @ 2018-05-09 20:24 UTC (permalink / raw)
To: openembedded-core
License-Update: FSF address updated in hdsploader/COPYING and ld10k1/COPYING.LIB
Fix built with clang along the way
Package python dependent tools into a separate package
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
...served-user-defined-literal-warnings.patch | 28 +++++++++++++
.../alsa/alsa-tools/autotools.patch | 42 ++++++++++++-------
...lsa-tools_1.1.5.bb => alsa-tools_1.1.6.bb} | 25 ++++++++---
3 files changed, 75 insertions(+), 20 deletions(-)
create mode 100644 meta/recipes-multimedia/alsa/alsa-tools/0002-Fix-clang-Wreserved-user-defined-literal-warnings.patch
rename meta/recipes-multimedia/alsa/{alsa-tools_1.1.5.bb => alsa-tools_1.1.6.bb} (62%)
diff --git a/meta/recipes-multimedia/alsa/alsa-tools/0002-Fix-clang-Wreserved-user-defined-literal-warnings.patch b/meta/recipes-multimedia/alsa/alsa-tools/0002-Fix-clang-Wreserved-user-defined-literal-warnings.patch
new file mode 100644
index 0000000000..2290915eab
--- /dev/null
+++ b/meta/recipes-multimedia/alsa/alsa-tools/0002-Fix-clang-Wreserved-user-defined-literal-warnings.patch
@@ -0,0 +1,28 @@
+From 2e48e4045e1e951433da0ca4b1e49798eedde14f Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Tue, 24 Apr 2018 12:21:18 -0700
+Subject: [PATCH] Fix clang -Wreserved-user-defined-literal warnings
+
+| us428control.cc:66:18: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
+| printf("usage: "PROGNAME" [-v verbosity_level 0..2] [-c card] [-D device] [-u usb-device] [-m mode]\n");
+| ^
+
+Upstream-Status: Submitted [https://patchwork.kernel.org/patch/10360805/]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ us428control/us428control.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/us428control/us428control.cc b/us428control/us428control.cc
+index e839bf4..8cb3c42 100644
+--- a/us428control/us428control.cc
++++ b/us428control/us428control.cc
+@@ -63,7 +63,7 @@ static void usage(void)
+ {
+ printf("Tascam US-428 Control\n");
+ printf("version %s\n", VERSION);
+- printf("usage: "PROGNAME" [-v verbosity_level 0..2] [-c card] [-D device] [-u usb-device] [-m mode]\n");
++ printf("usage: " PROGNAME " [-v verbosity_level 0..2] [-c card] [-D device] [-u usb-device] [-m mode]\n");
+ printf("mode is one of (us224, us428, mixxx)\n");
+ }
+ /*
diff --git a/meta/recipes-multimedia/alsa/alsa-tools/autotools.patch b/meta/recipes-multimedia/alsa/alsa-tools/autotools.patch
index 2e74963c89..c85834a593 100644
--- a/meta/recipes-multimedia/alsa/alsa-tools/autotools.patch
+++ b/meta/recipes-multimedia/alsa/alsa-tools/autotools.patch
@@ -1,3 +1,8 @@
+From b9a65bf3ba5628cfe8cfd2d10ce2dcf11a606775 Mon Sep 17 00:00:00 2001
+From: Dongxiao Xu <dongxiao.xu@intel.com>
+Date: Thu, 14 Jul 2011 15:40:36 +0800
+Subject: [PATCH] alsa-tools: Fix recipe build error.
+
Add parameters to autoreconf to support cross compile.
Remove some sub-components which needs further recipe support.
@@ -5,22 +10,17 @@ Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Upstream-Status: Inappropriate [configuration]
-diff -ruN alsa-tools-1.0.24.1-orig//ld10k1/gitcompile alsa-tools-1.0.24.1/ld10k1/gitcompile
---- alsa-tools-1.0.24.1-orig//ld10k1/gitcompile 2011-07-06 11:27:40.227665002 +0800
-+++ alsa-tools-1.0.24.1/ld10k1/gitcompile 2011-07-14 13:26:18.017665004 +0800
-@@ -1,6 +1,6 @@
- #!/bin/bash
-
--autoreconf -fi || exit 1
-+autoreconf $ACLOCAL_FLAGS -fi || exit 1
- export CFLAGS='-O2 -Wall -pipe -g'
- echo "CFLAGS=$CFLAGS"
- echo "./configure $@"
-diff -ruN alsa-tools-1.0.24.1-orig//Makefile alsa-tools-1.0.24.1/Makefile
---- alsa-tools-1.0.24.1-orig//Makefile 2011-07-06 11:27:40.207665000 +0800
-+++ alsa-tools-1.0.24.1/Makefile 2011-07-14 15:08:08.877665009 +0800
+---
+ Makefile | 4 ++--
+ ld10k1/gitcompile | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index c32bf25..1119372 100644
+--- a/Makefile
++++ b/Makefile
@@ -1,8 +1,8 @@
- VERSION = 1.1.5
+ VERSION = 1.1.6
TOP = .
-SUBDIRS = as10k1 envy24control hdsploader hdspconf hdspmixer \
+SUBDIRS = as10k1 envy24control \
@@ -30,3 +30,15 @@ diff -ruN alsa-tools-1.0.24.1-orig//Makefile alsa-tools-1.0.24.1/Makefile
hwmixvolume hdajackretask hda-verb hdajacksensetest
all:
+diff --git a/ld10k1/gitcompile b/ld10k1/gitcompile
+index 99429ac..20005d9 100755
+--- a/ld10k1/gitcompile
++++ b/ld10k1/gitcompile
+@@ -1,6 +1,6 @@
+ #!/bin/bash
+
+-autoreconf -fi || exit 1
++autoreconf $ACLOCAL_FLAGS -fi || exit 1
+ export CFLAGS='-O2 -Wall -pipe -g'
+ echo "CFLAGS=$CFLAGS"
+ echo "./configure $@"
diff --git a/meta/recipes-multimedia/alsa/alsa-tools_1.1.5.bb b/meta/recipes-multimedia/alsa/alsa-tools_1.1.6.bb
similarity index 62%
rename from meta/recipes-multimedia/alsa/alsa-tools_1.1.5.bb
rename to meta/recipes-multimedia/alsa/alsa-tools_1.1.6.bb
index 1be43aa6e7..e065eec6b8 100644
--- a/meta/recipes-multimedia/alsa/alsa-tools_1.1.5.bb
+++ b/meta/recipes-multimedia/alsa/alsa-tools_1.1.6.bb
@@ -5,17 +5,19 @@ SECTION = "console/utils"
LICENSE = "GPLv2 & LGPLv2+"
DEPENDS = "alsa-lib ncurses glib-2.0"
-LIC_FILES_CHKSUM = "file://hdsploader/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
- file://ld10k1/COPYING.LIB;md5=7fbc338309ac38fefcd64b04bb903e34"
+LIC_FILES_CHKSUM = "file://hdsploader/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
+ file://ld10k1/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7 \
+ "
SRC_URI = "ftp://ftp.alsa-project.org/pub/tools/${BP}.tar.bz2 \
file://autotools.patch \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'file://makefile_no_gtk.patch', d)} \
file://gitcompile_hdajacksensetest \
+ file://0002-Fix-clang-Wreserved-user-defined-literal-warnings.patch \
"
-SRC_URI[md5sum] = "3afb92eb1b4f2edc8691498e57c3ec78"
-SRC_URI[sha256sum] = "bc3c6567de835223ee7d69487b8c22fb395a2e8c613341b0c96e6a5f6a2bd534"
+SRC_URI[md5sum] = "5ca8c9437ae779997cd62fb2815fef19"
+SRC_URI[sha256sum] = "d69c4dc2fb641a974d9903e9eb78c94cb0c7ac6c45bae664f0c9d6c0a1593227"
inherit autotools-brokensep pkgconfig
@@ -37,4 +39,17 @@ do_compile_prepend () {
cp ${WORKDIR}/gitcompile_hdajacksensetest ${S}/hdajacksensetest/gitcompile
}
-FILES_${PN} += "${datadir}/ld10k1"
+do_install_append() {
+ sed -i -e "s|/usr/bin/python2|/usr/bin/env python2|g" ${D}${bindir}/hwmixvolume
+}
+
+PACKAGES =+ "${PN}-hwmixvolume"
+
+FILES_${PN}-hwmixvolume = "${bindir}/hwmixvolume"
+
+FILES_${PN} += "${datadir}/ld10k1 \
+ ${datadir}/icons/hicolor \
+ "
+
+RDEPENDS_${PN}-hwmixvolume += "python"
+
--
2.17.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH 3/9] alsa-lib: Upgrade to 1.1.6
2018-05-09 20:24 [PATCH 1/9] pbzip2: Fix C++11 warnings found with clang Khem Raj
2018-05-09 20:24 ` [PATCH 2/9] alsa-tools: Update to 1.1.6 Khem Raj
@ 2018-05-09 20:24 ` Khem Raj
2018-05-09 20:24 ` [PATCH V2 4/9] mdadm: Fix build with gcc8 Khem Raj
` (5 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: Khem Raj @ 2018-05-09 20:24 UTC (permalink / raw)
To: openembedded-core
License-Update: FSF address updated
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../alsa/{alsa-lib_1.1.5.bb => alsa-lib_1.1.6.bb} | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
rename meta/recipes-multimedia/alsa/{alsa-lib_1.1.5.bb => alsa-lib_1.1.6.bb} (75%)
diff --git a/meta/recipes-multimedia/alsa/alsa-lib_1.1.5.bb b/meta/recipes-multimedia/alsa/alsa-lib_1.1.6.bb
similarity index 75%
rename from meta/recipes-multimedia/alsa/alsa-lib_1.1.5.bb
rename to meta/recipes-multimedia/alsa/alsa-lib_1.1.6.bb
index fb6b4fb501..6364e9eafa 100644
--- a/meta/recipes-multimedia/alsa/alsa-lib_1.1.5.bb
+++ b/meta/recipes-multimedia/alsa/alsa-lib_1.1.6.bb
@@ -3,12 +3,13 @@ HOMEPAGE = "http://www.alsa-project.org"
BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
SECTION = "libs/multimedia"
LICENSE = "LGPLv2.1 & GPLv2+"
-LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34 \
- file://src/socket.c;beginline=1;endline=26;md5=11ff89a8a7a4a690a5c78effe8159545"
+LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7 \
+ file://src/socket.c;md5=dd1bc7f44872690224d89c1a9806e495;beginline=1;endline=26 \
+ "
SRC_URI = "ftp://ftp.alsa-project.org/pub/lib/${BP}.tar.bz2"
-SRC_URI[md5sum] = "a2b465c3a5265d8a57f3ff39c6c4fc29"
-SRC_URI[sha256sum] = "f4f68ad3c6da36b0b5241ac3c798a7a71e0e97d51f972e9f723b3f20a9650ae6"
+SRC_URI[md5sum] = "2f981a8f7897c59ec2ddc44916d33788"
+SRC_URI[sha256sum] = "5f2cd274b272cae0d0d111e8a9e363f08783329157e8dd68b3de0c096de6d724"
inherit autotools pkgconfig
--
2.17.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH V2 4/9] mdadm: Fix build with gcc8
2018-05-09 20:24 [PATCH 1/9] pbzip2: Fix C++11 warnings found with clang Khem Raj
2018-05-09 20:24 ` [PATCH 2/9] alsa-tools: Update to 1.1.6 Khem Raj
2018-05-09 20:24 ` [PATCH 3/9] alsa-lib: Upgrade " Khem Raj
@ 2018-05-09 20:24 ` Khem Raj
2018-05-09 20:24 ` [PATCH 5/9] Disable using GST_GL if gst does not enable it Khem Raj
` (4 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: Khem Raj @ 2018-05-09 20:24 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Changes since v1:
- Fix build with gcc < 8 too
.../files/0001-Disable-gcc8-warnings.patch | 130 ++++++++++++++++++
...tead-of-memcpy-on-overlapping-region.patch | 31 +++++
meta/recipes-extended/mdadm/mdadm_4.0.bb | 2 +
3 files changed, 163 insertions(+)
create mode 100644 meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch
create mode 100644 meta/recipes-extended/mdadm/files/0001-use-memmove-instead-of-memcpy-on-overlapping-region.patch
diff --git a/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch b/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch
new file mode 100644
index 0000000000..8cf52406c4
--- /dev/null
+++ b/meta/recipes-extended/mdadm/files/0001-Disable-gcc8-warnings.patch
@@ -0,0 +1,130 @@
+From b83218de2623c0bbe9af355a81ae8385d7f30cfc Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Wed, 9 May 2018 12:56:41 -0700
+Subject: [PATCH] Disable gcc8 warnings
+
+This is needed until
+https://bugzilla.redhat.com/show_bug.cgi?id=1553958
+
+Upstream-Status: Inappropriate [Workaround]
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+---
+ Monitor.c | 4 +++-
+ mdopen.c | 4 ++++
+ super-ddf.c | 4 ++++
+ super-intel.c | 6 ++++++
+ super1.c | 5 +++++
+ 5 files changed, 22 insertions(+), 1 deletion(-)
+
+diff --git a/Monitor.c b/Monitor.c
+index 802a9d9..23b246b 100644
+--- a/Monitor.c
++++ b/Monitor.c
+@@ -441,7 +441,8 @@ static void alert(char *event, char *dev, char *disc, struct alert_info *info)
+ event, dev);
+ }
+ }
+-
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wformat-truncation"
+ static int check_array(struct state *st, struct mdstat_ent *mdstat,
+ int test, struct alert_info *ainfo,
+ int increments, char *prefer)
+@@ -683,6 +684,7 @@ static int check_array(struct state *st, struct mdstat_ent *mdstat,
+ return 1;
+ return 0;
+ }
++#pragma GCC diagnostic pop
+
+ static int add_new_arrays(struct mdstat_ent *mdstat, struct state **statelist,
+ int test, struct alert_info *info)
+diff --git a/mdopen.c b/mdopen.c
+index 685ca32..406aba4 100644
+--- a/mdopen.c
++++ b/mdopen.c
+@@ -26,6 +26,9 @@
+ #include "md_p.h"
+ #include <ctype.h>
+
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wformat-truncation"
++
+ void make_parts(char *dev, int cnt)
+ {
+ /* make 'cnt' partition devices for 'dev'
+@@ -99,6 +102,7 @@ void make_parts(char *dev, int cnt)
+ }
+ free(name);
+ }
++#pragma GCC diagnostic pop
+
+ /*
+ * We need a new md device to assemble/build/create an array.
+diff --git a/super-ddf.c b/super-ddf.c
+index 1707ad1..e08d289 100644
+--- a/super-ddf.c
++++ b/super-ddf.c
+@@ -2846,6 +2846,9 @@ static void _set_config_size(struct phys_disk_entry *pde, const struct dl *dl)
+ (unsigned long long)cfs, (unsigned long long)(dl->size-cfs));
+ }
+
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wformat-overflow"
++
+ /* Add a device to a container, either while creating it or while
+ * expanding a pre-existing container
+ */
+@@ -2981,6 +2984,7 @@ static int add_to_super_ddf(struct supertype *st,
+
+ return 0;
+ }
++#pragma GCC diagnostic pop
+
+ static int remove_from_super_ddf(struct supertype *st, mdu_disk_info_t *dk)
+ {
+diff --git a/super-intel.c b/super-intel.c
+index 00a2925..44fbead 100644
+--- a/super-intel.c
++++ b/super-intel.c
+@@ -298,6 +298,11 @@ struct md_list {
+ };
+
+ #define pr_vrb(fmt, arg...) (void) (verbose && pr_err(fmt, ##arg))
++#pragma GCC diagnostic push
++# if __GNUC__ == 8
++# pragma GCC diagnostic ignored "-Wstringop-truncation"
++# endif
++#pragma GCC diagnostic ignored "-Wformat-truncation"
+
+ static __u8 migr_type(struct imsm_dev *dev)
+ {
+@@ -11618,3 +11623,4 @@ struct superswitch super_imsm = {
+ .get_bad_blocks = imsm_get_badblocks,
+ #endif /* MDASSEMBLE */
+ };
++#pragma GCC diagnostic pop
+diff --git a/super1.c b/super1.c
+index 87a74cb..71c515f 100644
+--- a/super1.c
++++ b/super1.c
+@@ -1091,6 +1091,10 @@ static struct mdinfo *container_content1(struct supertype *st, char *subarray)
+ return info;
+ }
+
++#pragma GCC diagnostic push
++# if __GNUC__ == 8
++# pragma GCC diagnostic ignored "-Wstringop-truncation"
++#endif
+ static int update_super1(struct supertype *st, struct mdinfo *info,
+ char *update,
+ char *devname, int verbose,
+@@ -1473,6 +1477,7 @@ static int init_super1(struct supertype *st, mdu_array_info_t *info,
+
+ return 1;
+ }
++#pragma GCC diagnostic pop
+
+ struct devinfo {
+ int fd;
diff --git a/meta/recipes-extended/mdadm/files/0001-use-memmove-instead-of-memcpy-on-overlapping-region.patch b/meta/recipes-extended/mdadm/files/0001-use-memmove-instead-of-memcpy-on-overlapping-region.patch
new file mode 100644
index 0000000000..44351b6569
--- /dev/null
+++ b/meta/recipes-extended/mdadm/files/0001-use-memmove-instead-of-memcpy-on-overlapping-region.patch
@@ -0,0 +1,31 @@
+From ab18f04cf89ef4e8521c81c50477e1363b2d333b Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 28 Apr 2018 09:46:12 -0700
+Subject: [PATCH] use memmove instead of memcpy on overlapping region
+
+Fixes
+super0.c:526:3: error: 'memcpy' accessing 3936 bytes at offsets 156 and 160 overlaps 3932 bytes at offset 160 [-Werror=restrict]
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ super0.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/super0.c b/super0.c
+index f5b4507..264b598 100644
+--- a/super0.c
++++ b/super0.c
+@@ -523,7 +523,7 @@ static int update_super0(struct supertype *st, struct mdinfo *info,
+ * up 4 bytes before continuing
+ */
+ __u32 *sb32 = (__u32*)sb;
+- memcpy(sb32+MD_SB_GENERIC_CONSTANT_WORDS+7,
++ memmove(sb32+MD_SB_GENERIC_CONSTANT_WORDS+7,
+ sb32+MD_SB_GENERIC_CONSTANT_WORDS+7+1,
+ (MD_SB_WORDS - (MD_SB_GENERIC_CONSTANT_WORDS+7+1))*4);
+ if (verbose >= 0)
+--
+2.17.0
+
diff --git a/meta/recipes-extended/mdadm/mdadm_4.0.bb b/meta/recipes-extended/mdadm/mdadm_4.0.bb
index dc098f19b6..226b974352 100644
--- a/meta/recipes-extended/mdadm/mdadm_4.0.bb
+++ b/meta/recipes-extended/mdadm/mdadm_4.0.bb
@@ -22,6 +22,8 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \
file://0004-mdadm-Forced-type-conversion-to-avoid-truncation.patch \
file://0005-Add-a-comment-to-indicate-valid-fallthrough.patch \
file://0001-Use-CC-to-check-for-implicit-fallthrough-warning-sup.patch \
+ file://0001-use-memmove-instead-of-memcpy-on-overlapping-region.patch \
+ file://0001-Disable-gcc8-warnings.patch \
"
SRC_URI[md5sum] = "2cb4feffea9167ba71b5f346a0c0a40d"
SRC_URI[sha256sum] = "1d6ae7f24ced3a0fa7b5613b32f4a589bb4881e3946a5a2c3724056254ada3a9"
--
2.17.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH 5/9] Disable using GST_GL if gst does not enable it
2018-05-09 20:24 [PATCH 1/9] pbzip2: Fix C++11 warnings found with clang Khem Raj
` (2 preceding siblings ...)
2018-05-09 20:24 ` [PATCH V2 4/9] mdadm: Fix build with gcc8 Khem Raj
@ 2018-05-09 20:24 ` Khem Raj
2018-05-09 20:24 ` [PATCH 6/9] strace: Upgrade to 4.22 Khem Raj
` (3 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: Khem Raj @ 2018-05-09 20:24 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../webkitgtk/detect-gstreamer-gl.patch | 20 +++++++++++++++++++
meta/recipes-sato/webkit/webkitgtk_2.20.1.bb | 1 +
2 files changed, 21 insertions(+)
create mode 100644 meta/recipes-sato/webkit/webkitgtk/detect-gstreamer-gl.patch
diff --git a/meta/recipes-sato/webkit/webkitgtk/detect-gstreamer-gl.patch b/meta/recipes-sato/webkit/webkitgtk/detect-gstreamer-gl.patch
new file mode 100644
index 0000000000..57ae48c141
--- /dev/null
+++ b/meta/recipes-sato/webkit/webkitgtk/detect-gstreamer-gl.patch
@@ -0,0 +1,20 @@
+From: Alberto Garcia <berto@igalia.com>
+Subject: Disable USE_GSTREAMER_GL is the package is not found
+Forwarded: no
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Index: webkitgtk/Source/cmake/GStreamerChecks.cmake
+===================================================================
+--- webkitgtk.orig/Source/cmake/GStreamerChecks.cmake
++++ webkitgtk/Source/cmake/GStreamerChecks.cmake
+@@ -43,7 +43,8 @@ if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
+ message(FATAL_ERROR "GStreamer 1.10 is needed for USE_GSTREAMER_GL.")
+ else ()
+ if (NOT PC_GSTREAMER_GL_FOUND)
+- message(FATAL_ERROR "GStreamerGL is needed for USE_GSTREAMER_GL.")
++ set(USE_GSTREAMER_GL OFF)
++ message(STATUS "GStreamerGL is needed for USE_GSTREAMER_GL.")
+ endif ()
+ endif ()
+ endif ()
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.20.1.bb b/meta/recipes-sato/webkit/webkitgtk_2.20.1.bb
index 1e5def090c..360ab8e69b 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.20.1.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.20.1.bb
@@ -20,6 +20,7 @@ SRC_URI = "http://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
file://detect-atomics-during-configure.patch \
file://0001-WebKitMacros-Append-to-I-and-not-to-isystem.patch \
file://0001-Fix-build-with-musl.patch \
+ file://detect-gstreamer-gl.patch \
"
SRC_URI[md5sum] = "0cd9b9ae1f48c04de5314f77806eceb4"
--
2.17.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH 6/9] strace: Upgrade to 4.22
2018-05-09 20:24 [PATCH 1/9] pbzip2: Fix C++11 warnings found with clang Khem Raj
` (3 preceding siblings ...)
2018-05-09 20:24 ` [PATCH 5/9] Disable using GST_GL if gst does not enable it Khem Raj
@ 2018-05-09 20:24 ` Khem Raj
2018-05-10 22:29 ` [PATCH] strace: remove -fno-omit-frame-pointer from DEBUG_OPTIMIZATION when ptest is enabled Martin Jansa
2018-05-09 20:24 ` [PATCH 7/9] gdb: Upgrade to 8.1 release Khem Raj
` (2 subsequent siblings)
7 siblings, 1 reply; 12+ messages in thread
From: Khem Raj @ 2018-05-09 20:24 UTC (permalink / raw)
To: openembedded-core
License-Update: Update Copyright years
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../strace/disable-git-version-gen.patch | 12 +++++-----
...st-test-for-m32-mx32-compile-support.patch | 22 +++++++++----------
.../strace/{strace_4.20.bb => strace_4.22.bb} | 11 ++++++----
3 files changed, 23 insertions(+), 22 deletions(-)
rename meta/recipes-devtools/strace/{strace_4.20.bb => strace_4.22.bb} (85%)
diff --git a/meta/recipes-devtools/strace/strace/disable-git-version-gen.patch b/meta/recipes-devtools/strace/strace/disable-git-version-gen.patch
index 76daf3a3b7..47b1139c53 100644
--- a/meta/recipes-devtools/strace/strace/disable-git-version-gen.patch
+++ b/meta/recipes-devtools/strace/strace/disable-git-version-gen.patch
@@ -5,16 +5,16 @@ Upstream-Status: Inappropriate [configuration]
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
-diff --git a/configure.ac b/configure.ac
-index 7004bd3..b2b03c6 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -31,7 +31,7 @@
+Index: strace-4.22/configure.ac
+===================================================================
+--- strace-4.22.orig/configure.ac
++++ strace-4.22/configure.ac
+@@ -32,7 +32,7 @@
AC_PREREQ(2.57)
AC_INIT([strace],
- m4_esyscmd([./git-version-gen .tarball-version]),
+ m4_esyscmd_s([cat .tarball-version]),
- [strace-devel@lists.sourceforge.net],
+ [strace-devel@lists.strace.io],
[strace],
[https://strace.io])
diff --git a/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch b/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch
index 756cd8bb82..3d4913d68e 100644
--- a/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch
+++ b/meta/recipes-devtools/strace/strace/more-robust-test-for-m32-mx32-compile-support.patch
@@ -22,25 +22,23 @@ Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
m4/mpers.m4 | 2 ++
1 file changed, 2 insertions(+)
-diff --git a/m4/mpers.m4 b/m4/mpers.m4
-index 1fe8a8e..d72c717 100644
---- a/m4/mpers.m4
-+++ b/m4/mpers.m4
-@@ -53,12 +53,14 @@ case "$arch" in
- CFLAGS="$CFLAGS CFLAG $IFLAG"
- AC_CACHE_CHECK([for CFLAG compile support], [st_cv_cc],
+Index: strace-4.22/m4/mpers.m4
+===================================================================
+--- strace-4.22.orig/m4/mpers.m4
++++ strace-4.22/m4/mpers.m4
+@@ -108,6 +108,7 @@ case "$arch" in
+ CFLAGS="$CFLAGS MPERS_CFLAGS $IFLAG"
+ AC_CACHE_CHECK([for mpers_name personality compile support], [st_cv_cc],
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdint.h>
+ #include <sys/syscall.h>
int main(){return 0;}]])],
[st_cv_cc=yes],
[st_cv_cc=no])])
- if test $st_cv_cc = yes; then
- AC_CACHE_CHECK([for CFLAG runtime support], [st_cv_runtime],
+@@ -115,6 +116,7 @@ case "$arch" in
+ AC_CACHE_CHECK([for mpers_name personality runtime support],
+ [st_cv_runtime],
[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdint.h>
+ #include <sys/syscall.h>
int main(){return 0;}]])],
[st_cv_runtime=yes],
[st_cv_runtime=no],
---
-1.9.1
-
diff --git a/meta/recipes-devtools/strace/strace_4.20.bb b/meta/recipes-devtools/strace/strace_4.22.bb
similarity index 85%
rename from meta/recipes-devtools/strace/strace_4.20.bb
rename to meta/recipes-devtools/strace/strace_4.22.bb
index 869c12f65a..196c9d8587 100644
--- a/meta/recipes-devtools/strace/strace_4.20.bb
+++ b/meta/recipes-devtools/strace/strace_4.22.bb
@@ -2,7 +2,7 @@ SUMMARY = "System call tracing tool"
HOMEPAGE = "http://strace.io"
SECTION = "console/utils"
LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://COPYING;md5=f132b4d2adfccc63da4139a609367711"
+LIC_FILES_CHKSUM = "file://COPYING;md5=6ddb91734b9c705f3e87362e97e5f64b"
SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
file://disable-git-version-gen.patch \
@@ -15,12 +15,15 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \
file://0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch \
"
-
-SRC_URI[md5sum] = "f2271ab0fac49ebee9cbd7f3469227cb"
-SRC_URI[sha256sum] = "5bf3148dd17306a42566f7da17368fdd781afa147db05ea63a4ca2b50f58c523"
+SRC_URI[md5sum] = "7a2a7d7715da6e6834bc65bd09bace1c"
+SRC_URI[sha256sum] = "068cd09264c95e4d591bbcd3ea08f99a693ed8663cd5169b0fdad72eb5bdb39d"
inherit autotools ptest bluetooth
+EXTRA_OECONF += "--enable-mpers=no"
+
+CFLAGS_append_libc-musl = " -Dsigcontext_struct=sigcontext"
+
RDEPENDS_${PN}-ptest += "make coreutils grep gawk sed"
PACKAGECONFIG_class-target ??= "\
--
2.17.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH 7/9] gdb: Upgrade to 8.1 release
2018-05-09 20:24 [PATCH 1/9] pbzip2: Fix C++11 warnings found with clang Khem Raj
` (4 preceding siblings ...)
2018-05-09 20:24 ` [PATCH 6/9] strace: Upgrade to 4.22 Khem Raj
@ 2018-05-09 20:24 ` Khem Raj
2018-05-10 11:13 ` Burton, Ross
2018-05-09 20:24 ` [PATCH 8/9] libgpg-error: Upgrade 1.28 -> 1.31 Khem Raj
2018-05-09 20:24 ` [PATCH 9/9] swig: Replace strncpy with memcpy Khem Raj
7 siblings, 1 reply; 12+ messages in thread
From: Khem Raj @ 2018-05-09 20:24 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/conf/distro/include/tcmode-default.inc | 2 +-
.../gdb/{gdb-8.0.1.inc => gdb-8.1.inc} | 5 +-
...ian_8.0.1.bb => gdb-cross-canadian_8.1.bb} | 0
.../{gdb-cross_8.0.1.bb => gdb-cross_8.1.bb} | 0
.../0001-include-sys-types.h-for-mode_t.patch | 12 +-
...port-for-Renesas-SH-sh4-architecture.patch | 153 ++++++++----------
...0012-Unbreak-GDBserver-build-for-x32.patch | 101 ------------
.../gdb/{gdb_8.0.1.bb => gdb_8.1.bb} | 0
8 files changed, 80 insertions(+), 193 deletions(-)
rename meta/recipes-devtools/gdb/{gdb-8.0.1.inc => gdb-8.1.inc} (85%)
rename meta/recipes-devtools/gdb/{gdb-cross-canadian_8.0.1.bb => gdb-cross-canadian_8.1.bb} (100%)
rename meta/recipes-devtools/gdb/{gdb-cross_8.0.1.bb => gdb-cross_8.1.bb} (100%)
delete mode 100644 meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
rename meta/recipes-devtools/gdb/{gdb_8.0.1.bb => gdb_8.1.bb} (100%)
diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
index 6dd0224812..5271b41860 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -25,7 +25,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
GCCVERSION ?= "8.%"
SDKGCCVERSION ?= "${GCCVERSION}"
BINUVERSION ?= "2.30%"
-GDBVERSION ?= "8.0%"
+GDBVERSION ?= "8.1%"
GLIBCVERSION ?= "2.27%"
LINUXLIBCVERSION ?= "4.15%"
QEMUVERSION ?= "2.12%"
diff --git a/meta/recipes-devtools/gdb/gdb-8.0.1.inc b/meta/recipes-devtools/gdb/gdb-8.1.inc
similarity index 85%
rename from meta/recipes-devtools/gdb/gdb-8.0.1.inc
rename to meta/recipes-devtools/gdb/gdb-8.1.inc
index 4a5299b73f..4d9faa2d4b 100644
--- a/meta/recipes-devtools/gdb/gdb-8.0.1.inc
+++ b/meta/recipes-devtools/gdb/gdb-8.1.inc
@@ -16,9 +16,8 @@ SRC_URI = "http://ftp.gnu.org/gnu/gdb/gdb-${PV}.tar.xz \
file://0009-Change-order-of-CFLAGS.patch \
file://0010-resolve-restrict-keyword-conflict.patch \
file://package_devel_gdb_patches_120-sigprocmask-invalid-call.patch \
- file://0012-Unbreak-GDBserver-build-for-x32.patch \
file://gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch \
"
-SRC_URI[md5sum] = "48cac527e6f3018b865ece021e9723ac"
-SRC_URI[sha256sum] = "3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3"
+SRC_URI[md5sum] = "f46487561f9a16916a8102316f7fd105"
+SRC_URI[sha256sum] = "af61a0263858e69c5dce51eab26662ff3d2ad9aa68da9583e8143b5426be4b34"
diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian_8.0.1.bb b/meta/recipes-devtools/gdb/gdb-cross-canadian_8.1.bb
similarity index 100%
rename from meta/recipes-devtools/gdb/gdb-cross-canadian_8.0.1.bb
rename to meta/recipes-devtools/gdb/gdb-cross-canadian_8.1.bb
diff --git a/meta/recipes-devtools/gdb/gdb-cross_8.0.1.bb b/meta/recipes-devtools/gdb/gdb-cross_8.1.bb
similarity index 100%
rename from meta/recipes-devtools/gdb/gdb-cross_8.0.1.bb
rename to meta/recipes-devtools/gdb/gdb-cross_8.1.bb
diff --git a/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch b/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
index 4f06d46d70..5d19380e30 100644
--- a/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
+++ b/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
@@ -1,7 +1,7 @@
-From 91da0458b333249eb9c2f4c1f1e53fa4bc085cc9 Mon Sep 17 00:00:00 2001
+From ff37f9360ab6f841f28ced9f23f66542febcc0f6 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 19 Jan 2016 18:18:52 -0800
-Subject: [PATCH 01/10] include sys/types.h for mode_t
+Subject: [PATCH 01/11] include sys/types.h for mode_t
mode_t is used in target.h, so we need to include sys/types.h to get the
defintion
@@ -14,17 +14,17 @@ Upstream-Status: Pending
1 file changed, 1 insertion(+)
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h
-index 3cc2bc4bab..e6b19b06b9 100644
+index 25accd2207..7f6bca8aa4 100644
--- a/gdb/gdbserver/target.h
+++ b/gdb/gdbserver/target.h
-@@ -28,6 +28,7 @@
- #include "target/waitstatus.h"
+@@ -29,6 +29,7 @@
#include "mem-break.h"
#include "btrace-common.h"
+ #include <vector>
+#include <sys/types.h>
struct emit_ops;
struct buffer;
--
-2.13.1
+2.17.0
diff --git a/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch b/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
index cb1b7abd07..f678598284 100644
--- a/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
+++ b/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
@@ -1,7 +1,7 @@
-From 60ac68f601885ea6480229a5c8a89a0257da376c Mon Sep 17 00:00:00 2001
+From 8757b36be6109f6d7ea0bd8dafbaed647e0d2192 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 2 Mar 2015 02:31:12 +0000
-Subject: [PATCH 05/10] Add support for Renesas SH (sh4) architecture.
+Subject: [PATCH 05/11] Add support for Renesas SH (sh4) architecture.
gdb (7.4-1~cvs20111117.2) experimental; urgency=low
.
@@ -15,35 +15,35 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
gdb/Makefile.in | 2 +
gdb/configure.host | 1 +
- gdb/sh-linux-tdep.c | 519 +++++++++++++++++++++++++++++++++++
- gdb/sh-tdep.c | 54 ++--
- gdb/sh-tdep.h | 49 ++++
+ gdb/sh-linux-tdep.c | 519 +++++++++++++++++++++++++++
+ gdb/sh-tdep.c | 53 ++-
+ gdb/sh-tdep.h | 49 +++
gdb/testsuite/gdb.asm/asm-source.exp | 5 +
gdb/testsuite/gdb.asm/sh.inc | 3 +-
gdb/testsuite/gdb.base/annota1.c | 3 +
gdb/testsuite/gdb.base/annota3.c | 4 +
gdb/testsuite/gdb.base/sigall.c | 3 +
gdb/testsuite/gdb.base/signals.c | 4 +
- 11 files changed, 618 insertions(+), 29 deletions(-)
+ 11 files changed, 617 insertions(+), 29 deletions(-)
-diff --git a/gdb/Makefile.in b/gdb/Makefile.in
-index 8be73ba423..e287ff6a2e 100644
---- a/gdb/Makefile.in
-+++ b/gdb/Makefile.in
-@@ -2638,6 +2638,8 @@ ALLDEPFILES = \
- sh-nbsd-tdep.c \
- sh-tdep.c \
- sh64-tdep.c \
-+ sh-linux-tdep.c \
-+ sh-linux-nat.c \
- sol2-tdep.c \
- solib-aix.c \
- solib-spu.c \
-diff --git a/gdb/configure.host b/gdb/configure.host
-index d74fd04934..be12de1446 100644
---- a/gdb/configure.host
-+++ b/gdb/configure.host
-@@ -150,6 +150,7 @@ powerpc*-*-linux*) gdb_host=linux ;;
+Index: gdb-8.1/gdb/Makefile.in
+===================================================================
+--- gdb-8.1.orig/gdb/Makefile.in
++++ gdb-8.1/gdb/Makefile.in
+@@ -758,6 +758,8 @@ ALL_TARGET_OBS = \
+ sh-linux-tdep.o \
+ sh-nbsd-tdep.o \
+ sh-tdep.o \
++ sh-linux-tdep.o \
++ sh-linux-nat.o \
+ sh64-tdep.o \
+ sol2-tdep.o \
+ solib-aix.o \
+Index: gdb-8.1/gdb/configure.host
+===================================================================
+--- gdb-8.1.orig/gdb/configure.host
++++ gdb-8.1/gdb/configure.host
+@@ -152,6 +152,7 @@ powerpc*-*-linux*) gdb_host=linux ;;
s390*-*-linux*) gdb_host=linux ;;
@@ -51,10 +51,10 @@ index d74fd04934..be12de1446 100644
sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
gdb_host=nbsd ;;
sh*-*-openbsd*) gdb_host=nbsd ;;
-diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c
-index c5c745d218..84e539aad3 100644
---- a/gdb/sh-linux-tdep.c
-+++ b/gdb/sh-linux-tdep.c
+Index: gdb-8.1/gdb/sh-linux-tdep.c
+===================================================================
+--- gdb-8.1.orig/gdb/sh-linux-tdep.c
++++ gdb-8.1/gdb/sh-linux-tdep.c
@@ -18,14 +18,37 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
@@ -93,7 +93,7 @@ index c5c745d218..84e539aad3 100644
#include "glibc-tdep.h"
#include "sh-tdep.h"
#include "linux-tdep.h"
-@@ -180,9 +203,505 @@ static struct tramp_frame sh_linux_rt_sigreturn_tramp_frame = {
+@@ -180,9 +203,505 @@ static struct tramp_frame sh_linux_rt_si
sh_linux_rt_sigreturn_init
};
@@ -599,10 +599,10 @@ index c5c745d218..84e539aad3 100644
linux_init_abi (info, gdbarch);
/* GNU/Linux uses SVR4-style shared libraries. */
-diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
-index 2c2b26847d..14f5281ed4 100644
---- a/gdb/sh-tdep.c
-+++ b/gdb/sh-tdep.c
+Index: gdb-8.1/gdb/sh-tdep.c
+===================================================================
+--- gdb-8.1.orig/gdb/sh-tdep.c
++++ gdb-8.1/gdb/sh-tdep.c
@@ -21,6 +21,9 @@
sac@cygnus.com. */
@@ -613,15 +613,7 @@ index 2c2b26847d..14f5281ed4 100644
#include "frame.h"
#include "frame-base.h"
#include "frame-unwind.h"
-@@ -35,6 +38,7 @@
- #include "arch-utils.h"
- #include "floatformat.h"
- #include "regcache.h"
-+#include "regset.h"
- #include "doublest.h"
- #include "osabi.h"
- #include "reggroups.h"
-@@ -68,23 +72,6 @@ static const char *const sh_cc_enum[] = {
+@@ -67,23 +70,6 @@ static const char *const sh_cc_enum[] =
static const char *sh_active_calling_convention = sh_cc_gcc;
@@ -645,7 +637,7 @@ index 2c2b26847d..14f5281ed4 100644
static int
sh_is_renesas_calling_convention (struct type *func_type)
{
-@@ -1052,7 +1039,7 @@ sh_treat_as_flt_p (struct type *type)
+@@ -1051,7 +1037,7 @@ sh_treat_as_flt_p (struct type *type)
return 0;
/* Otherwise if the type of that member is float, the whole type is
treated as float. */
@@ -654,7 +646,7 @@ index 2c2b26847d..14f5281ed4 100644
return 1;
/* Otherwise it's not treated as float. */
return 0;
-@@ -1102,7 +1089,7 @@ sh_push_dummy_call_fpu (struct gdbarch *gdbarch,
+@@ -1101,7 +1087,7 @@ sh_push_dummy_call_fpu (struct gdbarch *
in four registers available. Loop thru args from first to last. */
for (argnum = 0; argnum < nargs; argnum++)
{
@@ -663,7 +655,7 @@ index 2c2b26847d..14f5281ed4 100644
len = TYPE_LENGTH (type);
val = sh_justify_value_in_reg (gdbarch, args[argnum], len);
-@@ -1828,7 +1815,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum,
+@@ -1835,7 +1821,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch
reg->how = DWARF2_FRAME_REG_UNDEFINED;
}
@@ -672,7 +664,7 @@ index 2c2b26847d..14f5281ed4 100644
sh_alloc_frame_cache (void)
{
struct sh_frame_cache *cache;
-@@ -1855,7 +1842,7 @@ sh_alloc_frame_cache (void)
+@@ -1862,7 +1848,7 @@ sh_alloc_frame_cache (void)
return cache;
}
@@ -681,7 +673,7 @@ index 2c2b26847d..14f5281ed4 100644
sh_frame_cache (struct frame_info *this_frame, void **this_cache)
{
struct gdbarch *gdbarch = get_frame_arch (this_frame);
-@@ -1922,9 +1909,9 @@ sh_frame_cache (struct frame_info *this_frame, void **this_cache)
+@@ -1929,9 +1915,9 @@ sh_frame_cache (struct frame_info *this_
return cache;
}
@@ -694,7 +686,7 @@ index 2c2b26847d..14f5281ed4 100644
{
struct gdbarch *gdbarch = get_frame_arch (this_frame);
struct sh_frame_cache *cache = sh_frame_cache (this_frame, this_cache);
-@@ -1938,7 +1925,7 @@ sh_frame_prev_register (struct frame_info *this_frame,
+@@ -1945,7 +1931,7 @@ sh_frame_prev_register (struct frame_inf
the current frame. Frob regnum so that we pull the value from
the correct place. */
if (regnum == gdbarch_pc_regnum (gdbarch))
@@ -703,7 +695,7 @@ index 2c2b26847d..14f5281ed4 100644
if (regnum < SH_NUM_REGS && cache->saved_regs[regnum] != -1)
return frame_unwind_got_memory (this_frame, regnum,
-@@ -2247,8 +2234,8 @@ sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
+@@ -2254,8 +2240,8 @@ sh_return_in_first_hidden_param_p (struc
static struct gdbarch *
sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
{
@@ -713,7 +705,7 @@ index 2c2b26847d..14f5281ed4 100644
/* SH5 is handled entirely in sh64-tdep.c. */
if (info.bfd_arch_info->mach == bfd_mach_sh5)
-@@ -2264,6 +2251,18 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
+@@ -2271,6 +2257,18 @@ sh_gdbarch_init (struct gdbarch_info inf
tdep = XCNEW (struct gdbarch_tdep);
gdbarch = gdbarch_alloc (&info, tdep);
@@ -732,7 +724,7 @@ index 2c2b26847d..14f5281ed4 100644
set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT);
set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT);
set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT);
-@@ -2418,10 +2417,11 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
+@@ -2425,10 +2423,11 @@ sh_gdbarch_init (struct gdbarch_info inf
break;
}
@@ -745,10 +737,10 @@ index 2c2b26847d..14f5281ed4 100644
frame_unwind_append_unwinder (gdbarch, &sh_stub_unwind);
frame_unwind_append_unwinder (gdbarch, &sh_frame_unwind);
-diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h
-index d15ef050e0..c4642cefa4 100644
---- a/gdb/sh-tdep.h
-+++ b/gdb/sh-tdep.h
+Index: gdb-8.1/gdb/sh-tdep.h
+===================================================================
+--- gdb-8.1.orig/gdb/sh-tdep.h
++++ gdb-8.1/gdb/sh-tdep.h
@@ -21,6 +21,12 @@
/* Contributed by Steve Chamberlain sac@cygnus.com. */
@@ -828,10 +820,10 @@ index d15ef050e0..c4642cefa4 100644
/* Non-NULL when debugging from a core file. Provides the offset
where each general-purpose register is stored inside the associated
core file section. */
-diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
-index e07e5543f2..f5e60e1002 100644
---- a/gdb/testsuite/gdb.asm/asm-source.exp
-+++ b/gdb/testsuite/gdb.asm/asm-source.exp
+Index: gdb-8.1/gdb/testsuite/gdb.asm/asm-source.exp
+===================================================================
+--- gdb-8.1.orig/gdb/testsuite/gdb.asm/asm-source.exp
++++ gdb-8.1/gdb/testsuite/gdb.asm/asm-source.exp
@@ -116,6 +116,11 @@ switch -glob -- [istarget] {
append link-flags " -m elf32ppc"
}
@@ -844,10 +836,10 @@ index e07e5543f2..f5e60e1002 100644
"sh*-*-*" {
set asm-arch sh
set debug-flags "-gdwarf-2"
-diff --git a/gdb/testsuite/gdb.asm/sh.inc b/gdb/testsuite/gdb.asm/sh.inc
-index a4a5fc545e..89efed7795 100644
---- a/gdb/testsuite/gdb.asm/sh.inc
-+++ b/gdb/testsuite/gdb.asm/sh.inc
+Index: gdb-8.1/gdb/testsuite/gdb.asm/sh.inc
+===================================================================
+--- gdb-8.1.orig/gdb/testsuite/gdb.asm/sh.inc
++++ gdb-8.1/gdb/testsuite/gdb.asm/sh.inc
@@ -40,9 +40,8 @@
mov.l .Lconst\@,r1
bra .Lafterconst\@
@@ -859,10 +851,10 @@ index a4a5fc545e..89efed7795 100644
.long \subr
.align 1
.Lafterconst\@:
-diff --git a/gdb/testsuite/gdb.base/annota1.c b/gdb/testsuite/gdb.base/annota1.c
-index 424e1b8327..0de2e7b633 100644
---- a/gdb/testsuite/gdb.base/annota1.c
-+++ b/gdb/testsuite/gdb.base/annota1.c
+Index: gdb-8.1/gdb/testsuite/gdb.base/annota1.c
+===================================================================
+--- gdb-8.1.orig/gdb/testsuite/gdb.base/annota1.c
++++ gdb-8.1/gdb/testsuite/gdb.base/annota1.c
@@ -1,6 +1,9 @@
#include <stdio.h>
#include <signal.h>
@@ -873,10 +865,10 @@ index 424e1b8327..0de2e7b633 100644
void
handle_USR1 (int sig)
-diff --git a/gdb/testsuite/gdb.base/annota3.c b/gdb/testsuite/gdb.base/annota3.c
-index 424e1b8327..952aaf218a 100644
---- a/gdb/testsuite/gdb.base/annota3.c
-+++ b/gdb/testsuite/gdb.base/annota3.c
+Index: gdb-8.1/gdb/testsuite/gdb.base/annota3.c
+===================================================================
+--- gdb-8.1.orig/gdb/testsuite/gdb.base/annota3.c
++++ gdb-8.1/gdb/testsuite/gdb.base/annota3.c
@@ -1,6 +1,10 @@
#include <stdio.h>
#include <signal.h>
@@ -888,10 +880,10 @@ index 424e1b8327..952aaf218a 100644
void
handle_USR1 (int sig)
-diff --git a/gdb/testsuite/gdb.base/sigall.c b/gdb/testsuite/gdb.base/sigall.c
-index 81f3b08d6b..1574b2d6cb 100644
---- a/gdb/testsuite/gdb.base/sigall.c
-+++ b/gdb/testsuite/gdb.base/sigall.c
+Index: gdb-8.1/gdb/testsuite/gdb.base/sigall.c
+===================================================================
+--- gdb-8.1.orig/gdb/testsuite/gdb.base/sigall.c
++++ gdb-8.1/gdb/testsuite/gdb.base/sigall.c
@@ -1,6 +1,9 @@
#include <signal.h>
#include <unistd.h>
@@ -902,10 +894,10 @@ index 81f3b08d6b..1574b2d6cb 100644
/* Signal handlers, we set breakpoints in them to make sure that the
signals really get delivered. */
-diff --git a/gdb/testsuite/gdb.base/signals.c b/gdb/testsuite/gdb.base/signals.c
-index 756606880f..1205a9bc9c 100644
---- a/gdb/testsuite/gdb.base/signals.c
-+++ b/gdb/testsuite/gdb.base/signals.c
+Index: gdb-8.1/gdb/testsuite/gdb.base/signals.c
+===================================================================
+--- gdb-8.1.orig/gdb/testsuite/gdb.base/signals.c
++++ gdb-8.1/gdb/testsuite/gdb.base/signals.c
@@ -3,6 +3,10 @@
#include <signal.h>
#include <unistd.h>
@@ -917,6 +909,3 @@ index 756606880f..1205a9bc9c 100644
static int count = 0;
---
-2.13.1
-
diff --git a/meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch b/meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
deleted file mode 100644
index 18a3ce3d63..0000000000
--- a/meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
+++ /dev/null
@@ -1,101 +0,0 @@
-From 3e1e401053ea5f02a9e9c65abddd31a03baa1bd1 Mon Sep 17 00:00:00 2001
-From: Yao Qi <yao.qi@linaro.org>
-Date: Fri, 29 Dec 2017 12:57:25 +0800
-Subject: [PATCH] Unbreak GDBserver build for x32
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-When I verify my target description changes, I build GDB and GDBserver for
-x32, but it failed.
-
-/../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c
-../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c: In function ‘const target_desc* get_ipa_tdesc(int)’:
-../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c:184:10: error: ‘X86_TDESC_AVX512’ was not declared in this scope
- case X86_TDESC_AVX512:
- ^
-../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c:185:14: error: ‘tdesc_x32_avx512_linux’ was not declared in this scope
- return tdesc_x32_avx512_linux;
- ^
-../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c: In function ‘void initialize_low_tracepoint()’:
-../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c:282:36: error: ‘init_registers_x32_avx512_linux’ was not declared in this scope
- init_registers_x32_avx512_linux ();
- ^
-
-ipa_x32_linux_regobj use to be there, but removed by
-22049425ce40324139be82d9a6ec518c46b65815 by mistake.
-
-gdb/gdbserver:
-
-2017-08-04 Yao Qi <yao.qi@linaro.org>
-
- * configure.srv (ipa_x32_linux_regobj): New.
- * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
- instead of X86_TDESC_AVX512.
- (initialize_low_tracepoint): Call
- init_registers_x32_avx_avx512_linux.
-
-Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=f02fd7745d003d65fd3b981618e07b874b721d79]
-
-Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
----
- ChangeLog | 8 ++++++++
- gdb/gdbserver/configure.srv | 1 +
- gdb/gdbserver/linux-amd64-ipa.c | 6 +++---
- 3 files changed, 12 insertions(+), 3 deletions(-)
-
-diff --git a/ChangeLog b/ChangeLog
-index 4ac2d63..b5b8228 100644
---- a/ChangeLog
-+++ b/ChangeLog
-@@ -1,3 +1,11 @@
-+ 2017-08-04 Yao Qi <yao.qi@linaro.org>
-+
-+ * configure.srv (ipa_x32_linux_regobj): New.
-+ * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
-+ instead of X86_TDESC_AVX512.
-+ (initialize_low_tracepoint): Call
-+ init_registers_x32_avx_avx512_linux.
-+
- 2017-04-13 Andrew Jenner <andrew@codesourcery.com>
-
- * config.sub: Sync with master version in config project.
-diff --git a/gdb/gdbserver/configure.srv b/gdb/gdbserver/configure.srv
-index d00d9e2..56951c8 100644
---- a/gdb/gdbserver/configure.srv
-+++ b/gdb/gdbserver/configure.srv
-@@ -31,6 +31,7 @@ srv_amd64_linux_regobj="amd64-linux.o amd64-avx-linux.o amd64-avx-avx512-linux.o
-
- ipa_i386_linux_regobj="i386-linux-ipa.o i386-avx-linux-ipa.o i386-avx-mpx-linux-ipa.o i386-avx-avx512-linux-ipa.o i386-avx-mpx-avx512-pku-linux-ipa.o i386-mpx-linux-ipa.o i386-mmx-linux-ipa.o"
- ipa_amd64_linux_regobj="amd64-linux-ipa.o amd64-avx-linux-ipa.o amd64-avx-mpx-linux-ipa.o amd64-avx-avx512-linux-ipa.o amd64-avx-mpx-avx512-pku-linux-ipa.o amd64-mpx-linux-ipa.o"
-+ipa_x32_linux_regobj="x32-linux-ipa.o x32-avx-linux-ipa.o x32-avx-avx512-linux-ipa.o"
- ipa_ppc_linux_regobj="powerpc-32l-ipa.o powerpc-altivec32l-ipa.o powerpc-cell32l-ipa.o powerpc-vsx32l-ipa.o powerpc-isa205-32l-ipa.o powerpc-isa205-altivec32l-ipa.o powerpc-isa205-vsx32l-ipa.o powerpc-e500l-ipa.o powerpc-64l-ipa.o powerpc-altivec64l-ipa.o powerpc-cell64l-ipa.o powerpc-vsx64l-ipa.o powerpc-isa205-64l-ipa.o powerpc-isa205-altivec64l-ipa.o powerpc-isa205-vsx64l-ipa.o"
-
- srv_i386_32bit_xmlfiles="i386/32bit-core.xml i386/32bit-sse.xml i386/32bit-avx.xml i386/32bit-avx512.xml i386/32bit-mpx.xml i386/32bit-pkeys.xml"
-diff --git a/gdb/gdbserver/linux-amd64-ipa.c b/gdb/gdbserver/linux-amd64-ipa.c
-index 67f36c2..683339b 100644
---- a/gdb/gdbserver/linux-amd64-ipa.c
-+++ b/gdb/gdbserver/linux-amd64-ipa.c
-@@ -181,8 +181,8 @@ get_ipa_tdesc (int idx)
- return tdesc_x32_linux;
- case X86_TDESC_AVX:
- return tdesc_x32_avx_linux;
-- case X86_TDESC_AVX512:
-- return tdesc_x32_avx512_linux;
-+ case X86_TDESC_AVX_AVX512:
-+ return tdesc_x32_avx_avx512_linux;
- default:
- break;
- }
-@@ -279,7 +279,7 @@ initialize_low_tracepoint (void)
- #if defined __ILP32__
- init_registers_x32_linux ();
- init_registers_x32_avx_linux ();
-- init_registers_x32_avx512_linux ();
-+ init_registers_x32_avx_avx512_linux ();
- #else
- init_registers_amd64_linux ();
- init_registers_amd64_avx_linux ();
---
-2.7.4
-
diff --git a/meta/recipes-devtools/gdb/gdb_8.0.1.bb b/meta/recipes-devtools/gdb/gdb_8.1.bb
similarity index 100%
rename from meta/recipes-devtools/gdb/gdb_8.0.1.bb
rename to meta/recipes-devtools/gdb/gdb_8.1.bb
--
2.17.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH 7/9] gdb: Upgrade to 8.1 release
2018-05-09 20:24 ` [PATCH 7/9] gdb: Upgrade to 8.1 release Khem Raj
@ 2018-05-10 11:13 ` Burton, Ross
2018-05-10 16:59 ` Khem Raj
0 siblings, 1 reply; 12+ messages in thread
From: Burton, Ross @ 2018-05-10 11:13 UTC (permalink / raw)
To: Khem Raj; +Cc: OE-core
Breaks on the i586/musl autobuilder:
/usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:7218:
undefined reference to `rpl_strerror'
/usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:7230:
undefined reference to `rpl_strerror'
tracepoint-ipa.o: In function `init_named_socket':
/usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:6913:
undefined reference to `rpl_strerror'
/usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:6905:
undefined reference to `rpl_strerror'
/usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:6879:
undefined reference to `rpl_strerror'
tracepoint-ipa.o:/usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:6895:
more undefined references to `rpl_strerror' follow
http://errors.yoctoproject.org/Errors/Details/178302/
Ross
On 9 May 2018 at 21:24, Khem Raj <raj.khem@gmail.com> wrote:
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> meta/conf/distro/include/tcmode-default.inc | 2 +-
> .../gdb/{gdb-8.0.1.inc => gdb-8.1.inc} | 5 +-
> ...ian_8.0.1.bb => gdb-cross-canadian_8.1.bb} | 0
> .../{gdb-cross_8.0.1.bb => gdb-cross_8.1.bb} | 0
> .../0001-include-sys-types.h-for-mode_t.patch | 12 +-
> ...port-for-Renesas-SH-sh4-architecture.patch | 153 ++++++++----------
> ...0012-Unbreak-GDBserver-build-for-x32.patch | 101 ------------
> .../gdb/{gdb_8.0.1.bb => gdb_8.1.bb} | 0
> 8 files changed, 80 insertions(+), 193 deletions(-)
> rename meta/recipes-devtools/gdb/{gdb-8.0.1.inc => gdb-8.1.inc} (85%)
> rename meta/recipes-devtools/gdb/{gdb-cross-canadian_8.0.1.bb => gdb-cross-canadian_8.1.bb} (100%)
> rename meta/recipes-devtools/gdb/{gdb-cross_8.0.1.bb => gdb-cross_8.1.bb} (100%)
> delete mode 100644 meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
> rename meta/recipes-devtools/gdb/{gdb_8.0.1.bb => gdb_8.1.bb} (100%)
>
> diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
> index 6dd0224812..5271b41860 100644
> --- a/meta/conf/distro/include/tcmode-default.inc
> +++ b/meta/conf/distro/include/tcmode-default.inc
> @@ -25,7 +25,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
> GCCVERSION ?= "8.%"
> SDKGCCVERSION ?= "${GCCVERSION}"
> BINUVERSION ?= "2.30%"
> -GDBVERSION ?= "8.0%"
> +GDBVERSION ?= "8.1%"
> GLIBCVERSION ?= "2.27%"
> LINUXLIBCVERSION ?= "4.15%"
> QEMUVERSION ?= "2.12%"
> diff --git a/meta/recipes-devtools/gdb/gdb-8.0.1.inc b/meta/recipes-devtools/gdb/gdb-8.1.inc
> similarity index 85%
> rename from meta/recipes-devtools/gdb/gdb-8.0.1.inc
> rename to meta/recipes-devtools/gdb/gdb-8.1.inc
> index 4a5299b73f..4d9faa2d4b 100644
> --- a/meta/recipes-devtools/gdb/gdb-8.0.1.inc
> +++ b/meta/recipes-devtools/gdb/gdb-8.1.inc
> @@ -16,9 +16,8 @@ SRC_URI = "http://ftp.gnu.org/gnu/gdb/gdb-${PV}.tar.xz \
> file://0009-Change-order-of-CFLAGS.patch \
> file://0010-resolve-restrict-keyword-conflict.patch \
> file://package_devel_gdb_patches_120-sigprocmask-invalid-call.patch \
> - file://0012-Unbreak-GDBserver-build-for-x32.patch \
> file://gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch \
> "
> -SRC_URI[md5sum] = "48cac527e6f3018b865ece021e9723ac"
> -SRC_URI[sha256sum] = "3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3"
> +SRC_URI[md5sum] = "f46487561f9a16916a8102316f7fd105"
> +SRC_URI[sha256sum] = "af61a0263858e69c5dce51eab26662ff3d2ad9aa68da9583e8143b5426be4b34"
>
> diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian_8.0.1.bb b/meta/recipes-devtools/gdb/gdb-cross-canadian_8.1.bb
> similarity index 100%
> rename from meta/recipes-devtools/gdb/gdb-cross-canadian_8.0.1.bb
> rename to meta/recipes-devtools/gdb/gdb-cross-canadian_8.1.bb
> diff --git a/meta/recipes-devtools/gdb/gdb-cross_8.0.1.bb b/meta/recipes-devtools/gdb/gdb-cross_8.1.bb
> similarity index 100%
> rename from meta/recipes-devtools/gdb/gdb-cross_8.0.1.bb
> rename to meta/recipes-devtools/gdb/gdb-cross_8.1.bb
> diff --git a/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch b/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
> index 4f06d46d70..5d19380e30 100644
> --- a/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
> +++ b/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
> @@ -1,7 +1,7 @@
> -From 91da0458b333249eb9c2f4c1f1e53fa4bc085cc9 Mon Sep 17 00:00:00 2001
> +From ff37f9360ab6f841f28ced9f23f66542febcc0f6 Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Tue, 19 Jan 2016 18:18:52 -0800
> -Subject: [PATCH 01/10] include sys/types.h for mode_t
> +Subject: [PATCH 01/11] include sys/types.h for mode_t
>
> mode_t is used in target.h, so we need to include sys/types.h to get the
> defintion
> @@ -14,17 +14,17 @@ Upstream-Status: Pending
> 1 file changed, 1 insertion(+)
>
> diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h
> -index 3cc2bc4bab..e6b19b06b9 100644
> +index 25accd2207..7f6bca8aa4 100644
> --- a/gdb/gdbserver/target.h
> +++ b/gdb/gdbserver/target.h
> -@@ -28,6 +28,7 @@
> - #include "target/waitstatus.h"
> +@@ -29,6 +29,7 @@
> #include "mem-break.h"
> #include "btrace-common.h"
> + #include <vector>
> +#include <sys/types.h>
>
> struct emit_ops;
> struct buffer;
> --
> -2.13.1
> +2.17.0
>
> diff --git a/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch b/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
> index cb1b7abd07..f678598284 100644
> --- a/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
> +++ b/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
> @@ -1,7 +1,7 @@
> -From 60ac68f601885ea6480229a5c8a89a0257da376c Mon Sep 17 00:00:00 2001
> +From 8757b36be6109f6d7ea0bd8dafbaed647e0d2192 Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Mon, 2 Mar 2015 02:31:12 +0000
> -Subject: [PATCH 05/10] Add support for Renesas SH (sh4) architecture.
> +Subject: [PATCH 05/11] Add support for Renesas SH (sh4) architecture.
>
> gdb (7.4-1~cvs20111117.2) experimental; urgency=low
> .
> @@ -15,35 +15,35 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> gdb/Makefile.in | 2 +
> gdb/configure.host | 1 +
> - gdb/sh-linux-tdep.c | 519 +++++++++++++++++++++++++++++++++++
> - gdb/sh-tdep.c | 54 ++--
> - gdb/sh-tdep.h | 49 ++++
> + gdb/sh-linux-tdep.c | 519 +++++++++++++++++++++++++++
> + gdb/sh-tdep.c | 53 ++-
> + gdb/sh-tdep.h | 49 +++
> gdb/testsuite/gdb.asm/asm-source.exp | 5 +
> gdb/testsuite/gdb.asm/sh.inc | 3 +-
> gdb/testsuite/gdb.base/annota1.c | 3 +
> gdb/testsuite/gdb.base/annota3.c | 4 +
> gdb/testsuite/gdb.base/sigall.c | 3 +
> gdb/testsuite/gdb.base/signals.c | 4 +
> - 11 files changed, 618 insertions(+), 29 deletions(-)
> + 11 files changed, 617 insertions(+), 29 deletions(-)
>
> -diff --git a/gdb/Makefile.in b/gdb/Makefile.in
> -index 8be73ba423..e287ff6a2e 100644
> ---- a/gdb/Makefile.in
> -+++ b/gdb/Makefile.in
> -@@ -2638,6 +2638,8 @@ ALLDEPFILES = \
> - sh-nbsd-tdep.c \
> - sh-tdep.c \
> - sh64-tdep.c \
> -+ sh-linux-tdep.c \
> -+ sh-linux-nat.c \
> - sol2-tdep.c \
> - solib-aix.c \
> - solib-spu.c \
> -diff --git a/gdb/configure.host b/gdb/configure.host
> -index d74fd04934..be12de1446 100644
> ---- a/gdb/configure.host
> -+++ b/gdb/configure.host
> -@@ -150,6 +150,7 @@ powerpc*-*-linux*) gdb_host=linux ;;
> +Index: gdb-8.1/gdb/Makefile.in
> +===================================================================
> +--- gdb-8.1.orig/gdb/Makefile.in
> ++++ gdb-8.1/gdb/Makefile.in
> +@@ -758,6 +758,8 @@ ALL_TARGET_OBS = \
> + sh-linux-tdep.o \
> + sh-nbsd-tdep.o \
> + sh-tdep.o \
> ++ sh-linux-tdep.o \
> ++ sh-linux-nat.o \
> + sh64-tdep.o \
> + sol2-tdep.o \
> + solib-aix.o \
> +Index: gdb-8.1/gdb/configure.host
> +===================================================================
> +--- gdb-8.1.orig/gdb/configure.host
> ++++ gdb-8.1/gdb/configure.host
> +@@ -152,6 +152,7 @@ powerpc*-*-linux*) gdb_host=linux ;;
>
> s390*-*-linux*) gdb_host=linux ;;
>
> @@ -51,10 +51,10 @@ index d74fd04934..be12de1446 100644
> sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
> gdb_host=nbsd ;;
> sh*-*-openbsd*) gdb_host=nbsd ;;
> -diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c
> -index c5c745d218..84e539aad3 100644
> ---- a/gdb/sh-linux-tdep.c
> -+++ b/gdb/sh-linux-tdep.c
> +Index: gdb-8.1/gdb/sh-linux-tdep.c
> +===================================================================
> +--- gdb-8.1.orig/gdb/sh-linux-tdep.c
> ++++ gdb-8.1/gdb/sh-linux-tdep.c
> @@ -18,14 +18,37 @@
> along with this program. If not, see <http://www.gnu.org/licenses/>. */
>
> @@ -93,7 +93,7 @@ index c5c745d218..84e539aad3 100644
> #include "glibc-tdep.h"
> #include "sh-tdep.h"
> #include "linux-tdep.h"
> -@@ -180,9 +203,505 @@ static struct tramp_frame sh_linux_rt_sigreturn_tramp_frame = {
> +@@ -180,9 +203,505 @@ static struct tramp_frame sh_linux_rt_si
> sh_linux_rt_sigreturn_init
> };
>
> @@ -599,10 +599,10 @@ index c5c745d218..84e539aad3 100644
> linux_init_abi (info, gdbarch);
>
> /* GNU/Linux uses SVR4-style shared libraries. */
> -diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
> -index 2c2b26847d..14f5281ed4 100644
> ---- a/gdb/sh-tdep.c
> -+++ b/gdb/sh-tdep.c
> +Index: gdb-8.1/gdb/sh-tdep.c
> +===================================================================
> +--- gdb-8.1.orig/gdb/sh-tdep.c
> ++++ gdb-8.1/gdb/sh-tdep.c
> @@ -21,6 +21,9 @@
> sac@cygnus.com. */
>
> @@ -613,15 +613,7 @@ index 2c2b26847d..14f5281ed4 100644
> #include "frame.h"
> #include "frame-base.h"
> #include "frame-unwind.h"
> -@@ -35,6 +38,7 @@
> - #include "arch-utils.h"
> - #include "floatformat.h"
> - #include "regcache.h"
> -+#include "regset.h"
> - #include "doublest.h"
> - #include "osabi.h"
> - #include "reggroups.h"
> -@@ -68,23 +72,6 @@ static const char *const sh_cc_enum[] = {
> +@@ -67,23 +70,6 @@ static const char *const sh_cc_enum[] =
>
> static const char *sh_active_calling_convention = sh_cc_gcc;
>
> @@ -645,7 +637,7 @@ index 2c2b26847d..14f5281ed4 100644
> static int
> sh_is_renesas_calling_convention (struct type *func_type)
> {
> -@@ -1052,7 +1039,7 @@ sh_treat_as_flt_p (struct type *type)
> +@@ -1051,7 +1037,7 @@ sh_treat_as_flt_p (struct type *type)
> return 0;
> /* Otherwise if the type of that member is float, the whole type is
> treated as float. */
> @@ -654,7 +646,7 @@ index 2c2b26847d..14f5281ed4 100644
> return 1;
> /* Otherwise it's not treated as float. */
> return 0;
> -@@ -1102,7 +1089,7 @@ sh_push_dummy_call_fpu (struct gdbarch *gdbarch,
> +@@ -1101,7 +1087,7 @@ sh_push_dummy_call_fpu (struct gdbarch *
> in four registers available. Loop thru args from first to last. */
> for (argnum = 0; argnum < nargs; argnum++)
> {
> @@ -663,7 +655,7 @@ index 2c2b26847d..14f5281ed4 100644
> len = TYPE_LENGTH (type);
> val = sh_justify_value_in_reg (gdbarch, args[argnum], len);
>
> -@@ -1828,7 +1815,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum,
> +@@ -1835,7 +1821,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch
> reg->how = DWARF2_FRAME_REG_UNDEFINED;
> }
>
> @@ -672,7 +664,7 @@ index 2c2b26847d..14f5281ed4 100644
> sh_alloc_frame_cache (void)
> {
> struct sh_frame_cache *cache;
> -@@ -1855,7 +1842,7 @@ sh_alloc_frame_cache (void)
> +@@ -1862,7 +1848,7 @@ sh_alloc_frame_cache (void)
> return cache;
> }
>
> @@ -681,7 +673,7 @@ index 2c2b26847d..14f5281ed4 100644
> sh_frame_cache (struct frame_info *this_frame, void **this_cache)
> {
> struct gdbarch *gdbarch = get_frame_arch (this_frame);
> -@@ -1922,9 +1909,9 @@ sh_frame_cache (struct frame_info *this_frame, void **this_cache)
> +@@ -1929,9 +1915,9 @@ sh_frame_cache (struct frame_info *this_
> return cache;
> }
>
> @@ -694,7 +686,7 @@ index 2c2b26847d..14f5281ed4 100644
> {
> struct gdbarch *gdbarch = get_frame_arch (this_frame);
> struct sh_frame_cache *cache = sh_frame_cache (this_frame, this_cache);
> -@@ -1938,7 +1925,7 @@ sh_frame_prev_register (struct frame_info *this_frame,
> +@@ -1945,7 +1931,7 @@ sh_frame_prev_register (struct frame_inf
> the current frame. Frob regnum so that we pull the value from
> the correct place. */
> if (regnum == gdbarch_pc_regnum (gdbarch))
> @@ -703,7 +695,7 @@ index 2c2b26847d..14f5281ed4 100644
>
> if (regnum < SH_NUM_REGS && cache->saved_regs[regnum] != -1)
> return frame_unwind_got_memory (this_frame, regnum,
> -@@ -2247,8 +2234,8 @@ sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
> +@@ -2254,8 +2240,8 @@ sh_return_in_first_hidden_param_p (struc
> static struct gdbarch *
> sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
> {
> @@ -713,7 +705,7 @@ index 2c2b26847d..14f5281ed4 100644
>
> /* SH5 is handled entirely in sh64-tdep.c. */
> if (info.bfd_arch_info->mach == bfd_mach_sh5)
> -@@ -2264,6 +2251,18 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
> +@@ -2271,6 +2257,18 @@ sh_gdbarch_init (struct gdbarch_info inf
> tdep = XCNEW (struct gdbarch_tdep);
> gdbarch = gdbarch_alloc (&info, tdep);
>
> @@ -732,7 +724,7 @@ index 2c2b26847d..14f5281ed4 100644
> set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT);
> set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT);
> set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT);
> -@@ -2418,10 +2417,11 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
> +@@ -2425,10 +2423,11 @@ sh_gdbarch_init (struct gdbarch_info inf
> break;
> }
>
> @@ -745,10 +737,10 @@ index 2c2b26847d..14f5281ed4 100644
> frame_unwind_append_unwinder (gdbarch, &sh_stub_unwind);
> frame_unwind_append_unwinder (gdbarch, &sh_frame_unwind);
>
> -diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h
> -index d15ef050e0..c4642cefa4 100644
> ---- a/gdb/sh-tdep.h
> -+++ b/gdb/sh-tdep.h
> +Index: gdb-8.1/gdb/sh-tdep.h
> +===================================================================
> +--- gdb-8.1.orig/gdb/sh-tdep.h
> ++++ gdb-8.1/gdb/sh-tdep.h
> @@ -21,6 +21,12 @@
>
> /* Contributed by Steve Chamberlain sac@cygnus.com. */
> @@ -828,10 +820,10 @@ index d15ef050e0..c4642cefa4 100644
> /* Non-NULL when debugging from a core file. Provides the offset
> where each general-purpose register is stored inside the associated
> core file section. */
> -diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
> -index e07e5543f2..f5e60e1002 100644
> ---- a/gdb/testsuite/gdb.asm/asm-source.exp
> -+++ b/gdb/testsuite/gdb.asm/asm-source.exp
> +Index: gdb-8.1/gdb/testsuite/gdb.asm/asm-source.exp
> +===================================================================
> +--- gdb-8.1.orig/gdb/testsuite/gdb.asm/asm-source.exp
> ++++ gdb-8.1/gdb/testsuite/gdb.asm/asm-source.exp
> @@ -116,6 +116,11 @@ switch -glob -- [istarget] {
> append link-flags " -m elf32ppc"
> }
> @@ -844,10 +836,10 @@ index e07e5543f2..f5e60e1002 100644
> "sh*-*-*" {
> set asm-arch sh
> set debug-flags "-gdwarf-2"
> -diff --git a/gdb/testsuite/gdb.asm/sh.inc b/gdb/testsuite/gdb.asm/sh.inc
> -index a4a5fc545e..89efed7795 100644
> ---- a/gdb/testsuite/gdb.asm/sh.inc
> -+++ b/gdb/testsuite/gdb.asm/sh.inc
> +Index: gdb-8.1/gdb/testsuite/gdb.asm/sh.inc
> +===================================================================
> +--- gdb-8.1.orig/gdb/testsuite/gdb.asm/sh.inc
> ++++ gdb-8.1/gdb/testsuite/gdb.asm/sh.inc
> @@ -40,9 +40,8 @@
> mov.l .Lconst\@,r1
> bra .Lafterconst\@
> @@ -859,10 +851,10 @@ index a4a5fc545e..89efed7795 100644
> .long \subr
> .align 1
> .Lafterconst\@:
> -diff --git a/gdb/testsuite/gdb.base/annota1.c b/gdb/testsuite/gdb.base/annota1.c
> -index 424e1b8327..0de2e7b633 100644
> ---- a/gdb/testsuite/gdb.base/annota1.c
> -+++ b/gdb/testsuite/gdb.base/annota1.c
> +Index: gdb-8.1/gdb/testsuite/gdb.base/annota1.c
> +===================================================================
> +--- gdb-8.1.orig/gdb/testsuite/gdb.base/annota1.c
> ++++ gdb-8.1/gdb/testsuite/gdb.base/annota1.c
> @@ -1,6 +1,9 @@
> #include <stdio.h>
> #include <signal.h>
> @@ -873,10 +865,10 @@ index 424e1b8327..0de2e7b633 100644
>
> void
> handle_USR1 (int sig)
> -diff --git a/gdb/testsuite/gdb.base/annota3.c b/gdb/testsuite/gdb.base/annota3.c
> -index 424e1b8327..952aaf218a 100644
> ---- a/gdb/testsuite/gdb.base/annota3.c
> -+++ b/gdb/testsuite/gdb.base/annota3.c
> +Index: gdb-8.1/gdb/testsuite/gdb.base/annota3.c
> +===================================================================
> +--- gdb-8.1.orig/gdb/testsuite/gdb.base/annota3.c
> ++++ gdb-8.1/gdb/testsuite/gdb.base/annota3.c
> @@ -1,6 +1,10 @@
> #include <stdio.h>
> #include <signal.h>
> @@ -888,10 +880,10 @@ index 424e1b8327..952aaf218a 100644
>
> void
> handle_USR1 (int sig)
> -diff --git a/gdb/testsuite/gdb.base/sigall.c b/gdb/testsuite/gdb.base/sigall.c
> -index 81f3b08d6b..1574b2d6cb 100644
> ---- a/gdb/testsuite/gdb.base/sigall.c
> -+++ b/gdb/testsuite/gdb.base/sigall.c
> +Index: gdb-8.1/gdb/testsuite/gdb.base/sigall.c
> +===================================================================
> +--- gdb-8.1.orig/gdb/testsuite/gdb.base/sigall.c
> ++++ gdb-8.1/gdb/testsuite/gdb.base/sigall.c
> @@ -1,6 +1,9 @@
> #include <signal.h>
> #include <unistd.h>
> @@ -902,10 +894,10 @@ index 81f3b08d6b..1574b2d6cb 100644
>
> /* Signal handlers, we set breakpoints in them to make sure that the
> signals really get delivered. */
> -diff --git a/gdb/testsuite/gdb.base/signals.c b/gdb/testsuite/gdb.base/signals.c
> -index 756606880f..1205a9bc9c 100644
> ---- a/gdb/testsuite/gdb.base/signals.c
> -+++ b/gdb/testsuite/gdb.base/signals.c
> +Index: gdb-8.1/gdb/testsuite/gdb.base/signals.c
> +===================================================================
> +--- gdb-8.1.orig/gdb/testsuite/gdb.base/signals.c
> ++++ gdb-8.1/gdb/testsuite/gdb.base/signals.c
> @@ -3,6 +3,10 @@
> #include <signal.h>
> #include <unistd.h>
> @@ -917,6 +909,3 @@ index 756606880f..1205a9bc9c 100644
>
> static int count = 0;
>
> ---
> -2.13.1
> -
> diff --git a/meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch b/meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
> deleted file mode 100644
> index 18a3ce3d63..0000000000
> --- a/meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
> +++ /dev/null
> @@ -1,101 +0,0 @@
> -From 3e1e401053ea5f02a9e9c65abddd31a03baa1bd1 Mon Sep 17 00:00:00 2001
> -From: Yao Qi <yao.qi@linaro.org>
> -Date: Fri, 29 Dec 2017 12:57:25 +0800
> -Subject: [PATCH] Unbreak GDBserver build for x32
> -MIME-Version: 1.0
> -Content-Type: text/plain; charset=UTF-8
> -Content-Transfer-Encoding: 8bit
> -
> -When I verify my target description changes, I build GDB and GDBserver for
> -x32, but it failed.
> -
> -/../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c
> -../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c: In function ‘const target_desc* get_ipa_tdesc(int)’:
> -../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c:184:10: error: ‘X86_TDESC_AVX512’ was not declared in this scope
> - case X86_TDESC_AVX512:
> - ^
> -../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c:185:14: error: ‘tdesc_x32_avx512_linux’ was not declared in this scope
> - return tdesc_x32_avx512_linux;
> - ^
> -../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c: In function ‘void initialize_low_tracepoint()’:
> -../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c:282:36: error: ‘init_registers_x32_avx512_linux’ was not declared in this scope
> - init_registers_x32_avx512_linux ();
> - ^
> -
> -ipa_x32_linux_regobj use to be there, but removed by
> -22049425ce40324139be82d9a6ec518c46b65815 by mistake.
> -
> -gdb/gdbserver:
> -
> -2017-08-04 Yao Qi <yao.qi@linaro.org>
> -
> - * configure.srv (ipa_x32_linux_regobj): New.
> - * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
> - instead of X86_TDESC_AVX512.
> - (initialize_low_tracepoint): Call
> - init_registers_x32_avx_avx512_linux.
> -
> -Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=f02fd7745d003d65fd3b981618e07b874b721d79]
> -
> -Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
> ----
> - ChangeLog | 8 ++++++++
> - gdb/gdbserver/configure.srv | 1 +
> - gdb/gdbserver/linux-amd64-ipa.c | 6 +++---
> - 3 files changed, 12 insertions(+), 3 deletions(-)
> -
> -diff --git a/ChangeLog b/ChangeLog
> -index 4ac2d63..b5b8228 100644
> ---- a/ChangeLog
> -+++ b/ChangeLog
> -@@ -1,3 +1,11 @@
> -+ 2017-08-04 Yao Qi <yao.qi@linaro.org>
> -+
> -+ * configure.srv (ipa_x32_linux_regobj): New.
> -+ * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
> -+ instead of X86_TDESC_AVX512.
> -+ (initialize_low_tracepoint): Call
> -+ init_registers_x32_avx_avx512_linux.
> -+
> - 2017-04-13 Andrew Jenner <andrew@codesourcery.com>
> -
> - * config.sub: Sync with master version in config project.
> -diff --git a/gdb/gdbserver/configure.srv b/gdb/gdbserver/configure.srv
> -index d00d9e2..56951c8 100644
> ---- a/gdb/gdbserver/configure.srv
> -+++ b/gdb/gdbserver/configure.srv
> -@@ -31,6 +31,7 @@ srv_amd64_linux_regobj="amd64-linux.o amd64-avx-linux.o amd64-avx-avx512-linux.o
> -
> - ipa_i386_linux_regobj="i386-linux-ipa.o i386-avx-linux-ipa.o i386-avx-mpx-linux-ipa.o i386-avx-avx512-linux-ipa.o i386-avx-mpx-avx512-pku-linux-ipa.o i386-mpx-linux-ipa.o i386-mmx-linux-ipa.o"
> - ipa_amd64_linux_regobj="amd64-linux-ipa.o amd64-avx-linux-ipa.o amd64-avx-mpx-linux-ipa.o amd64-avx-avx512-linux-ipa.o amd64-avx-mpx-avx512-pku-linux-ipa.o amd64-mpx-linux-ipa.o"
> -+ipa_x32_linux_regobj="x32-linux-ipa.o x32-avx-linux-ipa.o x32-avx-avx512-linux-ipa.o"
> - ipa_ppc_linux_regobj="powerpc-32l-ipa.o powerpc-altivec32l-ipa.o powerpc-cell32l-ipa.o powerpc-vsx32l-ipa.o powerpc-isa205-32l-ipa.o powerpc-isa205-altivec32l-ipa.o powerpc-isa205-vsx32l-ipa.o powerpc-e500l-ipa.o powerpc-64l-ipa.o powerpc-altivec64l-ipa.o powerpc-cell64l-ipa.o powerpc-vsx64l-ipa.o powerpc-isa205-64l-ipa.o powerpc-isa205-altivec64l-ipa.o powerpc-isa205-vsx64l-ipa.o"
> -
> - srv_i386_32bit_xmlfiles="i386/32bit-core.xml i386/32bit-sse.xml i386/32bit-avx.xml i386/32bit-avx512.xml i386/32bit-mpx.xml i386/32bit-pkeys.xml"
> -diff --git a/gdb/gdbserver/linux-amd64-ipa.c b/gdb/gdbserver/linux-amd64-ipa.c
> -index 67f36c2..683339b 100644
> ---- a/gdb/gdbserver/linux-amd64-ipa.c
> -+++ b/gdb/gdbserver/linux-amd64-ipa.c
> -@@ -181,8 +181,8 @@ get_ipa_tdesc (int idx)
> - return tdesc_x32_linux;
> - case X86_TDESC_AVX:
> - return tdesc_x32_avx_linux;
> -- case X86_TDESC_AVX512:
> -- return tdesc_x32_avx512_linux;
> -+ case X86_TDESC_AVX_AVX512:
> -+ return tdesc_x32_avx_avx512_linux;
> - default:
> - break;
> - }
> -@@ -279,7 +279,7 @@ initialize_low_tracepoint (void)
> - #if defined __ILP32__
> - init_registers_x32_linux ();
> - init_registers_x32_avx_linux ();
> -- init_registers_x32_avx512_linux ();
> -+ init_registers_x32_avx_avx512_linux ();
> - #else
> - init_registers_amd64_linux ();
> - init_registers_amd64_avx_linux ();
> ---
> -2.7.4
> -
> diff --git a/meta/recipes-devtools/gdb/gdb_8.0.1.bb b/meta/recipes-devtools/gdb/gdb_8.1.bb
> similarity index 100%
> rename from meta/recipes-devtools/gdb/gdb_8.0.1.bb
> rename to meta/recipes-devtools/gdb/gdb_8.1.bb
> --
> 2.17.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH 7/9] gdb: Upgrade to 8.1 release
2018-05-10 11:13 ` Burton, Ross
@ 2018-05-10 16:59 ` Khem Raj
0 siblings, 0 replies; 12+ messages in thread
From: Khem Raj @ 2018-05-10 16:59 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE-core
On 5/10/18 4:13 AM, Burton, Ross wrote:
> Breaks on the i586/musl autobuilder:
>
> /usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:7218:
> undefined reference to `rpl_strerror'
> /usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:7230:
> undefined reference to `rpl_strerror'
> tracepoint-ipa.o: In function `init_named_socket':
> /usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:6913:
> undefined reference to `rpl_strerror'
> /usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:6905:
> undefined reference to `rpl_strerror'
> /usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:6879:
> undefined reference to `rpl_strerror'
> tracepoint-ipa.o:/usr/src/debug/gdb/8.1-r0/gdb-8.1/gdb/gdbserver/tracepoint.c:6895:
> more undefined references to `rpl_strerror' follow
>
> http://errors.yoctoproject.org/Errors/Details/178302/
Thanks Ross, I can reproduce it here as well.
>
> Ross
>
> On 9 May 2018 at 21:24, Khem Raj <raj.khem@gmail.com> wrote:
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> ---
>> meta/conf/distro/include/tcmode-default.inc | 2 +-
>> .../gdb/{gdb-8.0.1.inc => gdb-8.1.inc} | 5 +-
>> ...ian_8.0.1.bb => gdb-cross-canadian_8.1.bb} | 0
>> .../{gdb-cross_8.0.1.bb => gdb-cross_8.1.bb} | 0
>> .../0001-include-sys-types.h-for-mode_t.patch | 12 +-
>> ...port-for-Renesas-SH-sh4-architecture.patch | 153 ++++++++----------
>> ...0012-Unbreak-GDBserver-build-for-x32.patch | 101 ------------
>> .../gdb/{gdb_8.0.1.bb => gdb_8.1.bb} | 0
>> 8 files changed, 80 insertions(+), 193 deletions(-)
>> rename meta/recipes-devtools/gdb/{gdb-8.0.1.inc => gdb-8.1.inc} (85%)
>> rename meta/recipes-devtools/gdb/{gdb-cross-canadian_8.0.1.bb => gdb-cross-canadian_8.1.bb} (100%)
>> rename meta/recipes-devtools/gdb/{gdb-cross_8.0.1.bb => gdb-cross_8.1.bb} (100%)
>> delete mode 100644 meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
>> rename meta/recipes-devtools/gdb/{gdb_8.0.1.bb => gdb_8.1.bb} (100%)
>>
>> diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
>> index 6dd0224812..5271b41860 100644
>> --- a/meta/conf/distro/include/tcmode-default.inc
>> +++ b/meta/conf/distro/include/tcmode-default.inc
>> @@ -25,7 +25,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
>> GCCVERSION ?= "8.%"
>> SDKGCCVERSION ?= "${GCCVERSION}"
>> BINUVERSION ?= "2.30%"
>> -GDBVERSION ?= "8.0%"
>> +GDBVERSION ?= "8.1%"
>> GLIBCVERSION ?= "2.27%"
>> LINUXLIBCVERSION ?= "4.15%"
>> QEMUVERSION ?= "2.12%"
>> diff --git a/meta/recipes-devtools/gdb/gdb-8.0.1.inc b/meta/recipes-devtools/gdb/gdb-8.1.inc
>> similarity index 85%
>> rename from meta/recipes-devtools/gdb/gdb-8.0.1.inc
>> rename to meta/recipes-devtools/gdb/gdb-8.1.inc
>> index 4a5299b73f..4d9faa2d4b 100644
>> --- a/meta/recipes-devtools/gdb/gdb-8.0.1.inc
>> +++ b/meta/recipes-devtools/gdb/gdb-8.1.inc
>> @@ -16,9 +16,8 @@ SRC_URI = "http://ftp.gnu.org/gnu/gdb/gdb-${PV}.tar.xz \
>> file://0009-Change-order-of-CFLAGS.patch \
>> file://0010-resolve-restrict-keyword-conflict.patch \
>> file://package_devel_gdb_patches_120-sigprocmask-invalid-call.patch \
>> - file://0012-Unbreak-GDBserver-build-for-x32.patch \
>> file://gdb-Fix-ia64-defining-TRAP_HWBKPT-before-including-g.patch \
>> "
>> -SRC_URI[md5sum] = "48cac527e6f3018b865ece021e9723ac"
>> -SRC_URI[sha256sum] = "3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3"
>> +SRC_URI[md5sum] = "f46487561f9a16916a8102316f7fd105"
>> +SRC_URI[sha256sum] = "af61a0263858e69c5dce51eab26662ff3d2ad9aa68da9583e8143b5426be4b34"
>>
>> diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian_8.0.1.bb b/meta/recipes-devtools/gdb/gdb-cross-canadian_8.1.bb
>> similarity index 100%
>> rename from meta/recipes-devtools/gdb/gdb-cross-canadian_8.0.1.bb
>> rename to meta/recipes-devtools/gdb/gdb-cross-canadian_8.1.bb
>> diff --git a/meta/recipes-devtools/gdb/gdb-cross_8.0.1.bb b/meta/recipes-devtools/gdb/gdb-cross_8.1.bb
>> similarity index 100%
>> rename from meta/recipes-devtools/gdb/gdb-cross_8.0.1.bb
>> rename to meta/recipes-devtools/gdb/gdb-cross_8.1.bb
>> diff --git a/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch b/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
>> index 4f06d46d70..5d19380e30 100644
>> --- a/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
>> +++ b/meta/recipes-devtools/gdb/gdb/0001-include-sys-types.h-for-mode_t.patch
>> @@ -1,7 +1,7 @@
>> -From 91da0458b333249eb9c2f4c1f1e53fa4bc085cc9 Mon Sep 17 00:00:00 2001
>> +From ff37f9360ab6f841f28ced9f23f66542febcc0f6 Mon Sep 17 00:00:00 2001
>> From: Khem Raj <raj.khem@gmail.com>
>> Date: Tue, 19 Jan 2016 18:18:52 -0800
>> -Subject: [PATCH 01/10] include sys/types.h for mode_t
>> +Subject: [PATCH 01/11] include sys/types.h for mode_t
>>
>> mode_t is used in target.h, so we need to include sys/types.h to get the
>> defintion
>> @@ -14,17 +14,17 @@ Upstream-Status: Pending
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h
>> -index 3cc2bc4bab..e6b19b06b9 100644
>> +index 25accd2207..7f6bca8aa4 100644
>> --- a/gdb/gdbserver/target.h
>> +++ b/gdb/gdbserver/target.h
>> -@@ -28,6 +28,7 @@
>> - #include "target/waitstatus.h"
>> +@@ -29,6 +29,7 @@
>> #include "mem-break.h"
>> #include "btrace-common.h"
>> + #include <vector>
>> +#include <sys/types.h>
>>
>> struct emit_ops;
>> struct buffer;
>> --
>> -2.13.1
>> +2.17.0
>>
>> diff --git a/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch b/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
>> index cb1b7abd07..f678598284 100644
>> --- a/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
>> +++ b/meta/recipes-devtools/gdb/gdb/0005-Add-support-for-Renesas-SH-sh4-architecture.patch
>> @@ -1,7 +1,7 @@
>> -From 60ac68f601885ea6480229a5c8a89a0257da376c Mon Sep 17 00:00:00 2001
>> +From 8757b36be6109f6d7ea0bd8dafbaed647e0d2192 Mon Sep 17 00:00:00 2001
>> From: Khem Raj <raj.khem@gmail.com>
>> Date: Mon, 2 Mar 2015 02:31:12 +0000
>> -Subject: [PATCH 05/10] Add support for Renesas SH (sh4) architecture.
>> +Subject: [PATCH 05/11] Add support for Renesas SH (sh4) architecture.
>>
>> gdb (7.4-1~cvs20111117.2) experimental; urgency=low
>> .
>> @@ -15,35 +15,35 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> ---
>> gdb/Makefile.in | 2 +
>> gdb/configure.host | 1 +
>> - gdb/sh-linux-tdep.c | 519 +++++++++++++++++++++++++++++++++++
>> - gdb/sh-tdep.c | 54 ++--
>> - gdb/sh-tdep.h | 49 ++++
>> + gdb/sh-linux-tdep.c | 519 +++++++++++++++++++++++++++
>> + gdb/sh-tdep.c | 53 ++-
>> + gdb/sh-tdep.h | 49 +++
>> gdb/testsuite/gdb.asm/asm-source.exp | 5 +
>> gdb/testsuite/gdb.asm/sh.inc | 3 +-
>> gdb/testsuite/gdb.base/annota1.c | 3 +
>> gdb/testsuite/gdb.base/annota3.c | 4 +
>> gdb/testsuite/gdb.base/sigall.c | 3 +
>> gdb/testsuite/gdb.base/signals.c | 4 +
>> - 11 files changed, 618 insertions(+), 29 deletions(-)
>> + 11 files changed, 617 insertions(+), 29 deletions(-)
>>
>> -diff --git a/gdb/Makefile.in b/gdb/Makefile.in
>> -index 8be73ba423..e287ff6a2e 100644
>> ---- a/gdb/Makefile.in
>> -+++ b/gdb/Makefile.in
>> -@@ -2638,6 +2638,8 @@ ALLDEPFILES = \
>> - sh-nbsd-tdep.c \
>> - sh-tdep.c \
>> - sh64-tdep.c \
>> -+ sh-linux-tdep.c \
>> -+ sh-linux-nat.c \
>> - sol2-tdep.c \
>> - solib-aix.c \
>> - solib-spu.c \
>> -diff --git a/gdb/configure.host b/gdb/configure.host
>> -index d74fd04934..be12de1446 100644
>> ---- a/gdb/configure.host
>> -+++ b/gdb/configure.host
>> -@@ -150,6 +150,7 @@ powerpc*-*-linux*) gdb_host=linux ;;
>> +Index: gdb-8.1/gdb/Makefile.in
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/Makefile.in
>> ++++ gdb-8.1/gdb/Makefile.in
>> +@@ -758,6 +758,8 @@ ALL_TARGET_OBS = \
>> + sh-linux-tdep.o \
>> + sh-nbsd-tdep.o \
>> + sh-tdep.o \
>> ++ sh-linux-tdep.o \
>> ++ sh-linux-nat.o \
>> + sh64-tdep.o \
>> + sol2-tdep.o \
>> + solib-aix.o \
>> +Index: gdb-8.1/gdb/configure.host
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/configure.host
>> ++++ gdb-8.1/gdb/configure.host
>> +@@ -152,6 +152,7 @@ powerpc*-*-linux*) gdb_host=linux ;;
>>
>> s390*-*-linux*) gdb_host=linux ;;
>>
>> @@ -51,10 +51,10 @@ index d74fd04934..be12de1446 100644
>> sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
>> gdb_host=nbsd ;;
>> sh*-*-openbsd*) gdb_host=nbsd ;;
>> -diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c
>> -index c5c745d218..84e539aad3 100644
>> ---- a/gdb/sh-linux-tdep.c
>> -+++ b/gdb/sh-linux-tdep.c
>> +Index: gdb-8.1/gdb/sh-linux-tdep.c
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/sh-linux-tdep.c
>> ++++ gdb-8.1/gdb/sh-linux-tdep.c
>> @@ -18,14 +18,37 @@
>> along with this program. If not, see <http://www.gnu.org/licenses/>. */
>>
>> @@ -93,7 +93,7 @@ index c5c745d218..84e539aad3 100644
>> #include "glibc-tdep.h"
>> #include "sh-tdep.h"
>> #include "linux-tdep.h"
>> -@@ -180,9 +203,505 @@ static struct tramp_frame sh_linux_rt_sigreturn_tramp_frame = {
>> +@@ -180,9 +203,505 @@ static struct tramp_frame sh_linux_rt_si
>> sh_linux_rt_sigreturn_init
>> };
>>
>> @@ -599,10 +599,10 @@ index c5c745d218..84e539aad3 100644
>> linux_init_abi (info, gdbarch);
>>
>> /* GNU/Linux uses SVR4-style shared libraries. */
>> -diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
>> -index 2c2b26847d..14f5281ed4 100644
>> ---- a/gdb/sh-tdep.c
>> -+++ b/gdb/sh-tdep.c
>> +Index: gdb-8.1/gdb/sh-tdep.c
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/sh-tdep.c
>> ++++ gdb-8.1/gdb/sh-tdep.c
>> @@ -21,6 +21,9 @@
>> sac@cygnus.com. */
>>
>> @@ -613,15 +613,7 @@ index 2c2b26847d..14f5281ed4 100644
>> #include "frame.h"
>> #include "frame-base.h"
>> #include "frame-unwind.h"
>> -@@ -35,6 +38,7 @@
>> - #include "arch-utils.h"
>> - #include "floatformat.h"
>> - #include "regcache.h"
>> -+#include "regset.h"
>> - #include "doublest.h"
>> - #include "osabi.h"
>> - #include "reggroups.h"
>> -@@ -68,23 +72,6 @@ static const char *const sh_cc_enum[] = {
>> +@@ -67,23 +70,6 @@ static const char *const sh_cc_enum[] =
>>
>> static const char *sh_active_calling_convention = sh_cc_gcc;
>>
>> @@ -645,7 +637,7 @@ index 2c2b26847d..14f5281ed4 100644
>> static int
>> sh_is_renesas_calling_convention (struct type *func_type)
>> {
>> -@@ -1052,7 +1039,7 @@ sh_treat_as_flt_p (struct type *type)
>> +@@ -1051,7 +1037,7 @@ sh_treat_as_flt_p (struct type *type)
>> return 0;
>> /* Otherwise if the type of that member is float, the whole type is
>> treated as float. */
>> @@ -654,7 +646,7 @@ index 2c2b26847d..14f5281ed4 100644
>> return 1;
>> /* Otherwise it's not treated as float. */
>> return 0;
>> -@@ -1102,7 +1089,7 @@ sh_push_dummy_call_fpu (struct gdbarch *gdbarch,
>> +@@ -1101,7 +1087,7 @@ sh_push_dummy_call_fpu (struct gdbarch *
>> in four registers available. Loop thru args from first to last. */
>> for (argnum = 0; argnum < nargs; argnum++)
>> {
>> @@ -663,7 +655,7 @@ index 2c2b26847d..14f5281ed4 100644
>> len = TYPE_LENGTH (type);
>> val = sh_justify_value_in_reg (gdbarch, args[argnum], len);
>>
>> -@@ -1828,7 +1815,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum,
>> +@@ -1835,7 +1821,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch
>> reg->how = DWARF2_FRAME_REG_UNDEFINED;
>> }
>>
>> @@ -672,7 +664,7 @@ index 2c2b26847d..14f5281ed4 100644
>> sh_alloc_frame_cache (void)
>> {
>> struct sh_frame_cache *cache;
>> -@@ -1855,7 +1842,7 @@ sh_alloc_frame_cache (void)
>> +@@ -1862,7 +1848,7 @@ sh_alloc_frame_cache (void)
>> return cache;
>> }
>>
>> @@ -681,7 +673,7 @@ index 2c2b26847d..14f5281ed4 100644
>> sh_frame_cache (struct frame_info *this_frame, void **this_cache)
>> {
>> struct gdbarch *gdbarch = get_frame_arch (this_frame);
>> -@@ -1922,9 +1909,9 @@ sh_frame_cache (struct frame_info *this_frame, void **this_cache)
>> +@@ -1929,9 +1915,9 @@ sh_frame_cache (struct frame_info *this_
>> return cache;
>> }
>>
>> @@ -694,7 +686,7 @@ index 2c2b26847d..14f5281ed4 100644
>> {
>> struct gdbarch *gdbarch = get_frame_arch (this_frame);
>> struct sh_frame_cache *cache = sh_frame_cache (this_frame, this_cache);
>> -@@ -1938,7 +1925,7 @@ sh_frame_prev_register (struct frame_info *this_frame,
>> +@@ -1945,7 +1931,7 @@ sh_frame_prev_register (struct frame_inf
>> the current frame. Frob regnum so that we pull the value from
>> the correct place. */
>> if (regnum == gdbarch_pc_regnum (gdbarch))
>> @@ -703,7 +695,7 @@ index 2c2b26847d..14f5281ed4 100644
>>
>> if (regnum < SH_NUM_REGS && cache->saved_regs[regnum] != -1)
>> return frame_unwind_got_memory (this_frame, regnum,
>> -@@ -2247,8 +2234,8 @@ sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
>> +@@ -2254,8 +2240,8 @@ sh_return_in_first_hidden_param_p (struc
>> static struct gdbarch *
>> sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
>> {
>> @@ -713,7 +705,7 @@ index 2c2b26847d..14f5281ed4 100644
>>
>> /* SH5 is handled entirely in sh64-tdep.c. */
>> if (info.bfd_arch_info->mach == bfd_mach_sh5)
>> -@@ -2264,6 +2251,18 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
>> +@@ -2271,6 +2257,18 @@ sh_gdbarch_init (struct gdbarch_info inf
>> tdep = XCNEW (struct gdbarch_tdep);
>> gdbarch = gdbarch_alloc (&info, tdep);
>>
>> @@ -732,7 +724,7 @@ index 2c2b26847d..14f5281ed4 100644
>> set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT);
>> set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT);
>> set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT);
>> -@@ -2418,10 +2417,11 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
>> +@@ -2425,10 +2423,11 @@ sh_gdbarch_init (struct gdbarch_info inf
>> break;
>> }
>>
>> @@ -745,10 +737,10 @@ index 2c2b26847d..14f5281ed4 100644
>> frame_unwind_append_unwinder (gdbarch, &sh_stub_unwind);
>> frame_unwind_append_unwinder (gdbarch, &sh_frame_unwind);
>>
>> -diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h
>> -index d15ef050e0..c4642cefa4 100644
>> ---- a/gdb/sh-tdep.h
>> -+++ b/gdb/sh-tdep.h
>> +Index: gdb-8.1/gdb/sh-tdep.h
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/sh-tdep.h
>> ++++ gdb-8.1/gdb/sh-tdep.h
>> @@ -21,6 +21,12 @@
>>
>> /* Contributed by Steve Chamberlain sac@cygnus.com. */
>> @@ -828,10 +820,10 @@ index d15ef050e0..c4642cefa4 100644
>> /* Non-NULL when debugging from a core file. Provides the offset
>> where each general-purpose register is stored inside the associated
>> core file section. */
>> -diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
>> -index e07e5543f2..f5e60e1002 100644
>> ---- a/gdb/testsuite/gdb.asm/asm-source.exp
>> -+++ b/gdb/testsuite/gdb.asm/asm-source.exp
>> +Index: gdb-8.1/gdb/testsuite/gdb.asm/asm-source.exp
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/testsuite/gdb.asm/asm-source.exp
>> ++++ gdb-8.1/gdb/testsuite/gdb.asm/asm-source.exp
>> @@ -116,6 +116,11 @@ switch -glob -- [istarget] {
>> append link-flags " -m elf32ppc"
>> }
>> @@ -844,10 +836,10 @@ index e07e5543f2..f5e60e1002 100644
>> "sh*-*-*" {
>> set asm-arch sh
>> set debug-flags "-gdwarf-2"
>> -diff --git a/gdb/testsuite/gdb.asm/sh.inc b/gdb/testsuite/gdb.asm/sh.inc
>> -index a4a5fc545e..89efed7795 100644
>> ---- a/gdb/testsuite/gdb.asm/sh.inc
>> -+++ b/gdb/testsuite/gdb.asm/sh.inc
>> +Index: gdb-8.1/gdb/testsuite/gdb.asm/sh.inc
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/testsuite/gdb.asm/sh.inc
>> ++++ gdb-8.1/gdb/testsuite/gdb.asm/sh.inc
>> @@ -40,9 +40,8 @@
>> mov.l .Lconst\@,r1
>> bra .Lafterconst\@
>> @@ -859,10 +851,10 @@ index a4a5fc545e..89efed7795 100644
>> .long \subr
>> .align 1
>> .Lafterconst\@:
>> -diff --git a/gdb/testsuite/gdb.base/annota1.c b/gdb/testsuite/gdb.base/annota1.c
>> -index 424e1b8327..0de2e7b633 100644
>> ---- a/gdb/testsuite/gdb.base/annota1.c
>> -+++ b/gdb/testsuite/gdb.base/annota1.c
>> +Index: gdb-8.1/gdb/testsuite/gdb.base/annota1.c
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/testsuite/gdb.base/annota1.c
>> ++++ gdb-8.1/gdb/testsuite/gdb.base/annota1.c
>> @@ -1,6 +1,9 @@
>> #include <stdio.h>
>> #include <signal.h>
>> @@ -873,10 +865,10 @@ index 424e1b8327..0de2e7b633 100644
>>
>> void
>> handle_USR1 (int sig)
>> -diff --git a/gdb/testsuite/gdb.base/annota3.c b/gdb/testsuite/gdb.base/annota3.c
>> -index 424e1b8327..952aaf218a 100644
>> ---- a/gdb/testsuite/gdb.base/annota3.c
>> -+++ b/gdb/testsuite/gdb.base/annota3.c
>> +Index: gdb-8.1/gdb/testsuite/gdb.base/annota3.c
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/testsuite/gdb.base/annota3.c
>> ++++ gdb-8.1/gdb/testsuite/gdb.base/annota3.c
>> @@ -1,6 +1,10 @@
>> #include <stdio.h>
>> #include <signal.h>
>> @@ -888,10 +880,10 @@ index 424e1b8327..952aaf218a 100644
>>
>> void
>> handle_USR1 (int sig)
>> -diff --git a/gdb/testsuite/gdb.base/sigall.c b/gdb/testsuite/gdb.base/sigall.c
>> -index 81f3b08d6b..1574b2d6cb 100644
>> ---- a/gdb/testsuite/gdb.base/sigall.c
>> -+++ b/gdb/testsuite/gdb.base/sigall.c
>> +Index: gdb-8.1/gdb/testsuite/gdb.base/sigall.c
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/testsuite/gdb.base/sigall.c
>> ++++ gdb-8.1/gdb/testsuite/gdb.base/sigall.c
>> @@ -1,6 +1,9 @@
>> #include <signal.h>
>> #include <unistd.h>
>> @@ -902,10 +894,10 @@ index 81f3b08d6b..1574b2d6cb 100644
>>
>> /* Signal handlers, we set breakpoints in them to make sure that the
>> signals really get delivered. */
>> -diff --git a/gdb/testsuite/gdb.base/signals.c b/gdb/testsuite/gdb.base/signals.c
>> -index 756606880f..1205a9bc9c 100644
>> ---- a/gdb/testsuite/gdb.base/signals.c
>> -+++ b/gdb/testsuite/gdb.base/signals.c
>> +Index: gdb-8.1/gdb/testsuite/gdb.base/signals.c
>> +===================================================================
>> +--- gdb-8.1.orig/gdb/testsuite/gdb.base/signals.c
>> ++++ gdb-8.1/gdb/testsuite/gdb.base/signals.c
>> @@ -3,6 +3,10 @@
>> #include <signal.h>
>> #include <unistd.h>
>> @@ -917,6 +909,3 @@ index 756606880f..1205a9bc9c 100644
>>
>> static int count = 0;
>>
>> ---
>> -2.13.1
>> -
>> diff --git a/meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch b/meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
>> deleted file mode 100644
>> index 18a3ce3d63..0000000000
>> --- a/meta/recipes-devtools/gdb/gdb/0012-Unbreak-GDBserver-build-for-x32.patch
>> +++ /dev/null
>> @@ -1,101 +0,0 @@
>> -From 3e1e401053ea5f02a9e9c65abddd31a03baa1bd1 Mon Sep 17 00:00:00 2001
>> -From: Yao Qi <yao.qi@linaro.org>
>> -Date: Fri, 29 Dec 2017 12:57:25 +0800
>> -Subject: [PATCH] Unbreak GDBserver build for x32
>> -MIME-Version: 1.0
>> -Content-Type: text/plain; charset=UTF-8
>> -Content-Transfer-Encoding: 8bit
>> -
>> -When I verify my target description changes, I build GDB and GDBserver for
>> -x32, but it failed.
>> -
>> -/../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c
>> -../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c: In function ‘const target_desc* get_ipa_tdesc(int)’:
>> -../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c:184:10: error: ‘X86_TDESC_AVX512’ was not declared in this scope
>> - case X86_TDESC_AVX512:
>> - ^
>> -../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c:185:14: error: ‘tdesc_x32_avx512_linux’ was not declared in this scope
>> - return tdesc_x32_avx512_linux;
>> - ^
>> -../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c: In function ‘void initialize_low_tracepoint()’:
>> -../../../binutils-gdb/gdb/gdbserver/linux-amd64-ipa.c:282:36: error: ‘init_registers_x32_avx512_linux’ was not declared in this scope
>> - init_registers_x32_avx512_linux ();
>> - ^
>> -
>> -ipa_x32_linux_regobj use to be there, but removed by
>> -22049425ce40324139be82d9a6ec518c46b65815 by mistake.
>> -
>> -gdb/gdbserver:
>> -
>> -2017-08-04 Yao Qi <yao.qi@linaro.org>
>> -
>> - * configure.srv (ipa_x32_linux_regobj): New.
>> - * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
>> - instead of X86_TDESC_AVX512.
>> - (initialize_low_tracepoint): Call
>> - init_registers_x32_avx_avx512_linux.
>> -
>> -Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=f02fd7745d003d65fd3b981618e07b874b721d79]
>> -
>> -Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
>> ----
>> - ChangeLog | 8 ++++++++
>> - gdb/gdbserver/configure.srv | 1 +
>> - gdb/gdbserver/linux-amd64-ipa.c | 6 +++---
>> - 3 files changed, 12 insertions(+), 3 deletions(-)
>> -
>> -diff --git a/ChangeLog b/ChangeLog
>> -index 4ac2d63..b5b8228 100644
>> ---- a/ChangeLog
>> -+++ b/ChangeLog
>> -@@ -1,3 +1,11 @@
>> -+ 2017-08-04 Yao Qi <yao.qi@linaro.org>
>> -+
>> -+ * configure.srv (ipa_x32_linux_regobj): New.
>> -+ * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
>> -+ instead of X86_TDESC_AVX512.
>> -+ (initialize_low_tracepoint): Call
>> -+ init_registers_x32_avx_avx512_linux.
>> -+
>> - 2017-04-13 Andrew Jenner <andrew@codesourcery.com>
>> -
>> - * config.sub: Sync with master version in config project.
>> -diff --git a/gdb/gdbserver/configure.srv b/gdb/gdbserver/configure.srv
>> -index d00d9e2..56951c8 100644
>> ---- a/gdb/gdbserver/configure.srv
>> -+++ b/gdb/gdbserver/configure.srv
>> -@@ -31,6 +31,7 @@ srv_amd64_linux_regobj="amd64-linux.o amd64-avx-linux.o amd64-avx-avx512-linux.o
>> -
>> - ipa_i386_linux_regobj="i386-linux-ipa.o i386-avx-linux-ipa.o i386-avx-mpx-linux-ipa.o i386-avx-avx512-linux-ipa.o i386-avx-mpx-avx512-pku-linux-ipa.o i386-mpx-linux-ipa.o i386-mmx-linux-ipa.o"
>> - ipa_amd64_linux_regobj="amd64-linux-ipa.o amd64-avx-linux-ipa.o amd64-avx-mpx-linux-ipa.o amd64-avx-avx512-linux-ipa.o amd64-avx-mpx-avx512-pku-linux-ipa.o amd64-mpx-linux-ipa.o"
>> -+ipa_x32_linux_regobj="x32-linux-ipa.o x32-avx-linux-ipa.o x32-avx-avx512-linux-ipa.o"
>> - ipa_ppc_linux_regobj="powerpc-32l-ipa.o powerpc-altivec32l-ipa.o powerpc-cell32l-ipa.o powerpc-vsx32l-ipa.o powerpc-isa205-32l-ipa.o powerpc-isa205-altivec32l-ipa.o powerpc-isa205-vsx32l-ipa.o powerpc-e500l-ipa.o powerpc-64l-ipa.o powerpc-altivec64l-ipa.o powerpc-cell64l-ipa.o powerpc-vsx64l-ipa.o powerpc-isa205-64l-ipa.o powerpc-isa205-altivec64l-ipa.o powerpc-isa205-vsx64l-ipa.o"
>> -
>> - srv_i386_32bit_xmlfiles="i386/32bit-core.xml i386/32bit-sse.xml i386/32bit-avx.xml i386/32bit-avx512.xml i386/32bit-mpx.xml i386/32bit-pkeys.xml"
>> -diff --git a/gdb/gdbserver/linux-amd64-ipa.c b/gdb/gdbserver/linux-amd64-ipa.c
>> -index 67f36c2..683339b 100644
>> ---- a/gdb/gdbserver/linux-amd64-ipa.c
>> -+++ b/gdb/gdbserver/linux-amd64-ipa.c
>> -@@ -181,8 +181,8 @@ get_ipa_tdesc (int idx)
>> - return tdesc_x32_linux;
>> - case X86_TDESC_AVX:
>> - return tdesc_x32_avx_linux;
>> -- case X86_TDESC_AVX512:
>> -- return tdesc_x32_avx512_linux;
>> -+ case X86_TDESC_AVX_AVX512:
>> -+ return tdesc_x32_avx_avx512_linux;
>> - default:
>> - break;
>> - }
>> -@@ -279,7 +279,7 @@ initialize_low_tracepoint (void)
>> - #if defined __ILP32__
>> - init_registers_x32_linux ();
>> - init_registers_x32_avx_linux ();
>> -- init_registers_x32_avx512_linux ();
>> -+ init_registers_x32_avx_avx512_linux ();
>> - #else
>> - init_registers_amd64_linux ();
>> - init_registers_amd64_avx_linux ();
>> ---
>> -2.7.4
>> -
>> diff --git a/meta/recipes-devtools/gdb/gdb_8.0.1.bb b/meta/recipes-devtools/gdb/gdb_8.1.bb
>> similarity index 100%
>> rename from meta/recipes-devtools/gdb/gdb_8.0.1.bb
>> rename to meta/recipes-devtools/gdb/gdb_8.1.bb
>> --
>> 2.17.0
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 8/9] libgpg-error: Upgrade 1.28 -> 1.31
2018-05-09 20:24 [PATCH 1/9] pbzip2: Fix C++11 warnings found with clang Khem Raj
` (5 preceding siblings ...)
2018-05-09 20:24 ` [PATCH 7/9] gdb: Upgrade to 8.1 release Khem Raj
@ 2018-05-09 20:24 ` Khem Raj
2018-05-09 20:24 ` [PATCH 9/9] swig: Replace strncpy with memcpy Khem Raj
7 siblings, 0 replies; 12+ messages in thread
From: Khem Raj @ 2018-05-09 20:24 UTC (permalink / raw)
To: openembedded-core
License-Update: Check 19 lines of gpg-error.h.in only, more lines are not representing license text
Drop upstreamed patch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
...ion-on-arm64-due-to-invalid-use-of-v.patch | 61 -------------------
...gpg-error_1.28.bb => libgpg-error_1.31.bb} | 10 ++-
2 files changed, 4 insertions(+), 67 deletions(-)
delete mode 100644 meta/recipes-support/libgpg-error/libgpg-error/0001-core-Fix-regression-on-arm64-due-to-invalid-use-of-v.patch
rename meta/recipes-support/libgpg-error/{libgpg-error_1.28.bb => libgpg-error_1.31.bb} (82%)
diff --git a/meta/recipes-support/libgpg-error/libgpg-error/0001-core-Fix-regression-on-arm64-due-to-invalid-use-of-v.patch b/meta/recipes-support/libgpg-error/libgpg-error/0001-core-Fix-regression-on-arm64-due-to-invalid-use-of-v.patch
deleted file mode 100644
index c35e7240b4..0000000000
--- a/meta/recipes-support/libgpg-error/libgpg-error/0001-core-Fix-regression-on-arm64-due-to-invalid-use-of-v.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-From 791177de023574223eddf7288eb7c5a0721ac623 Mon Sep 17 00:00:00 2001
-From: Werner Koch <wk@gnupg.org>
-Date: Sun, 18 Mar 2018 17:39:43 +0100
-Subject: [PATCH] core: Fix regression on arm64 due to invalid use of va_list.
-
-* src/logging.c (_gpgrt_log_printhex): Provide a dummy arg instead of
-NULL.
---
-
-Fix
-Suggested-by: Jakub Wilk <jwilk@jwilk.net>
-
-Signed-off-by: Werner Koch <wk@gnupg.org>
-
-Upstream-Status: Backport
-
-Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-
----
- src/logging.c | 18 ++++++++++++++----
- 1 file changed, 14 insertions(+), 4 deletions(-)
-
-diff --git a/src/logging.c b/src/logging.c
-index 1a4f620..d01f974 100644
---- a/src/logging.c
-+++ b/src/logging.c
-@@ -1090,9 +1090,10 @@ _gpgrt_log_flush (void)
-
-
- /* Print a hexdump of (BUFFER,LENGTH). With FMT passed as NULL print
-- * just the raw dump, with FMT being an empty string, print a trailing
-- * linefeed, otherwise print an entire debug line with the expanded
-- * FMT followed by a possible wrapped hexdump and a final LF. */
-+ * just the raw dump (in this case ARG_PTR is not used), with FMT
-+ * being an empty string, print a trailing linefeed, otherwise print
-+ * an entire debug line with the expanded FMT followed by a possible
-+ * wrapped hexdump and a final LF. */
- void
- _gpgrt_logv_printhex (const void *buffer, size_t length,
- const char *fmt, va_list arg_ptr)
-@@ -1150,7 +1151,16 @@ _gpgrt_log_printhex (const void *buffer, size_t length,
- va_end (arg_ptr);
- }
- else
-- _gpgrt_logv_printhex (buffer, length, NULL, NULL);
-+ {
-+ /* va_list is not necessary a pointer and thus we can't use NULL
-+ * because that would conflict with platforms using a straight
-+ * struct for it (e.g. arm64). We use a dummy variable instead;
-+ * the static is a simple way zero it out so to not get
-+ * complains about uninitialized use. */
-+ static va_list dummy_argptr;
-+
-+ _gpgrt_logv_printhex (buffer, length, NULL, dummy_argptr);
-+ }
- }
-
-
---
-2.7.4
-
diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.28.bb b/meta/recipes-support/libgpg-error/libgpg-error_1.31.bb
similarity index 82%
rename from meta/recipes-support/libgpg-error/libgpg-error_1.28.bb
rename to meta/recipes-support/libgpg-error/libgpg-error_1.31.bb
index 71f4c3a388..5dd861501e 100644
--- a/meta/recipes-support/libgpg-error/libgpg-error_1.28.bb
+++ b/meta/recipes-support/libgpg-error/libgpg-error_1.31.bb
@@ -5,7 +5,7 @@ BUGTRACKER = "https://bugs.g10code.com/gnupg/index"
LICENSE = "GPLv2+ & LGPLv2.1+"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
- file://src/gpg-error.h.in;endline=23;md5=fc7423b56d5f7163a9a2acf9fe2f8d6b \
+ file://src/gpg-error.h.in;endline=19;md5=e9be7dd9dc7686d91b5421a091c212cc \
file://src/init.c;endline=20;md5=872b2389fe9bae7ffb80d2b91225afbc"
@@ -14,11 +14,9 @@ SECTION = "libs"
UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
SRC_URI = "${GNUPG_MIRROR}/libgpg-error/libgpg-error-${PV}.tar.bz2 \
file://pkgconfig.patch \
- file://0001-core-Fix-regression-on-arm64-due-to-invalid-use-of-v.patch \
"
-
-SRC_URI[md5sum] = "2b072f6194eb22d48cd4c7c77e59b5af"
-SRC_URI[sha256sum] = "3edb957744905412f30de3e25da18682cbe509541e18cd3b8f9df695a075da49"
+SRC_URI[md5sum] = "5cc6df0fea27832e9cdbafc60f51561b"
+SRC_URI[sha256sum] = "40d0a823c9329478063903192a1f82496083b277265904878f4bc09e0db7a4ef"
BINCONFIG = "${bindir}/gpg-error-config"
@@ -42,7 +40,7 @@ do_compile_prepend() {
mips*el) TUPLE=mipsel-unknown-linux-gnu ;;
mips*) TUPLE=mips-unknown-linux-gnu ;;
x86_64) TUPLE=x86_64-pc-linux-gnu ;;
- *) TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;;
+ *) TUPLE=${TARGET_ARCH}-unknown-linux-gnu ;;
esac
if [ -n "$TARGET_FILE" ]; then
--
2.17.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH 9/9] swig: Replace strncpy with memcpy
2018-05-09 20:24 [PATCH 1/9] pbzip2: Fix C++11 warnings found with clang Khem Raj
` (6 preceding siblings ...)
2018-05-09 20:24 ` [PATCH 8/9] libgpg-error: Upgrade 1.28 -> 1.31 Khem Raj
@ 2018-05-09 20:24 ` Khem Raj
7 siblings, 0 replies; 12+ messages in thread
From: Khem Raj @ 2018-05-09 20:24 UTC (permalink / raw)
To: openembedded-core
gcc8 is detecting string truncations when swig is
used in other packages
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
...ue-reported-for-SWIG_Python_FixMetho.patch | 36 +++++++++++++++++++
meta/recipes-devtools/swig/swig_3.0.12.bb | 1 +
2 files changed, 37 insertions(+)
create mode 100644 meta/recipes-devtools/swig/swig/swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch
diff --git a/meta/recipes-devtools/swig/swig/swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch b/meta/recipes-devtools/swig/swig/swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch
new file mode 100644
index 0000000000..eab50fc7ef
--- /dev/null
+++ b/meta/recipes-devtools/swig/swig/swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch
@@ -0,0 +1,36 @@
+From 9825fcbab5c4ddd867432f9922bebfbec7b78af0 Mon Sep 17 00:00:00 2001
+From: Mark Dufour <m.dufour@kopano.com>
+Date: Tue, 14 Feb 2017 10:34:37 +0100
+Subject: [PATCH] [Coverity] fix issue reported for SWIG_Python_FixMethods
+
+Fix Coverity issue reported for SWIG_Python_FixMethods:
+
+"buffer_size: Calling strncpy with a source string whose length
+(10 chars) is greater than or equal to the size argument (10)
+will fail to null-terminate buff."
+
+The issue is only reported for the "swig_ptr: " line, but for
+consistency we replace both occurrences of strncpy with memcpy.
+---
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Status: Backport [https://github.com/swig/swig/pull/898]
+
+ Lib/python/pyinit.swg | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: swig-3.0.12/Lib/python/pyinit.swg
+===================================================================
+--- swig-3.0.12.orig/Lib/python/pyinit.swg
++++ swig-3.0.12/Lib/python/pyinit.swg
+@@ -306,9 +306,9 @@ SWIG_Python_FixMethods(PyMethodDef *meth
+ char *ndoc = (char*)malloc(ldoc + lptr + 10);
+ if (ndoc) {
+ char *buff = ndoc;
+- strncpy(buff, methods[i].ml_doc, ldoc);
++ memcpy(buff, methods[i].ml_doc, ldoc);
+ buff += ldoc;
+- strncpy(buff, "swig_ptr: ", 10);
++ memcpy(buff, "swig_ptr: ", 10);
+ buff += 10;
+ SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
+ methods[i].ml_doc = ndoc;
diff --git a/meta/recipes-devtools/swig/swig_3.0.12.bb b/meta/recipes-devtools/swig/swig_3.0.12.bb
index 15f7348681..429840bde1 100644
--- a/meta/recipes-devtools/swig/swig_3.0.12.bb
+++ b/meta/recipes-devtools/swig/swig_3.0.12.bb
@@ -3,6 +3,7 @@ require ${BPN}.inc
SRC_URI += "file://0001-Use-proc-self-exe-for-swig-swiglib-on-non-Win32-plat.patch \
file://0001-configure-use-pkg-config-for-pcre-detection.patch \
file://0001-Add-Node-7.x-aka-V8-5.2-support.patch \
+ file://swig-3.0.12-Coverity-fix-issue-reported-for-SWIG_Python_FixMetho.patch \
"
SRC_URI[md5sum] = "82133dfa7bba75ff9ad98a7046be687c"
SRC_URI[sha256sum] = "7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d"
--
2.17.0
^ permalink raw reply related [flat|nested] 12+ messages in thread