Skip to contentSkip to conversation

package/diffutils: fix build on arceb

PATCH Applied Fabrice Fontaine 3 participants 3 messages Apr 16, 2022 – May 24, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/diffutils: fix build on arceb

Fix the following build failure raised since bump to version 3.8 in commit 1f89c80417ad03127650b22c41ec4e30d42c549f:

sigsegv.c: In function 'sigsegv_handler':
sigsegv.c:979:28: error: 'struct vma_struct' has no member named 'is_near_this'
979 | : vma.is_near_this (addr, &vma))
| ^

Fixes:
- http://autobuild.buildroot.org/results/8c5b8b37eb3c2667c75666079b056df7e0023e05

---
 ...-Fix-compilation-error-on-arceb-CPUs.patch | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 package/diffutils/0004-sigsegv-Fix-compilation-error-on-arceb-CPUs.patch
package/diffutils/0004-sigsegv-Fix-compilation-error-on-arceb-CPUs.patch new file +41 -0
new file mode 100644
index 0000000000..20db798f3a
@@ -0,0 +1,41 @@
+From 1957bb5113a2bf02c7ecf0815125eec04b9476d2 Mon Sep 17 00:00:00 2001
+From: Bruno Haible <[email protected]>
+Date: Sat, 16 Apr 2022 03:01:51 +0200
+Subject: sigsegv: Fix compilation error on arceb CPUs.
+
+Reported by Fabrice Fontaine <[email protected]> in
+<https://lists.gnu.org/archive/html/bug-gnulib/2022-04/msg00028.html>.
+
+* m4/stack-direction.m4 (SV_STACK_DIRECTION): Treat the 'arc' variants
+like 'arc'.
+
+[Retrieved (and backported) from:
+https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=1957bb5113a2bf02c7ecf0815125eec04b9476d2]
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ ChangeLog             | 8 ++++++++
+ m4/stack-direction.m4 | 4 ++--
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/m4/stack-direction.m4 b/m4/stack-direction.m4
+index 1df823e..924c5de 100644
+--- a/m4/stack-direction.m4
++++ b/m4/stack-direction.m4
+@@ -1,4 +1,4 @@
+-# stack-direction.m4 serial 7
++# stack-direction.m4 serial 11
+ dnl Copyright (C) 2002-2021 Free Software Foundation, Inc.
+ dnl This file is free software, distributed under the terms of the GNU
+ dnl General Public License.  As a special exception to the GNU General
+@@ -18,7 +18,7 @@ AC_DEFUN([SV_STACK_DIRECTION],
+       a29k | \
+       aarch64* | \
+       alpha* | \
+-      arc | \
++      arc | arceb | arc32 | arc64 | \
+       arm* | strongarm* | xscale* | \
+       avr | avr32 | \
+       bfin | \
+-- 
+cgit v1.1
+
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · Fabrice Fontaine

Fix the following build failure raised since bump to version 3.8 in commit 1f89c80417ad03127650b22c41ec4e30d42c549f:

sigsegv.c: In function 'sigsegv_handler':
sigsegv.c:979:28: error: 'struct vma_struct' has no member named 'is_near_this'
979 | : vma.is_near_this (addr, &vma))
| ^

Quoted 4 lines

Fixes:
- http://autobuild.buildroot.org/results/8c5b8b37eb3c2667c75666079b056df7e0023e05

Applied to master, thanks.

Regards,
Arnout

Quoted 42 lines
---
  ...-Fix-compilation-error-on-arceb-CPUs.patch | 41 +++++++++++++++++++
  1 file changed, 41 insertions(+)

create mode 100644 package/diffutils/0004-sigsegv-Fix-compilation-error-on-arceb-CPUs.patch

package/diffutils/0004-sigsegv-Fix-compilation-error-on-arceb-CPUs.patch new file +31 -0
new file mode 100644
index 0000000000..20db798f3a
@@ -0,0 +1,41 @@
+From 1957bb5113a2bf02c7ecf0815125eec04b9476d2 Mon Sep 17 00:00:00 2001
+From: Bruno Haible <[email protected]>
+Date: Sat, 16 Apr 2022 03:01:51 +0200
+Subject: sigsegv: Fix compilation error on arceb CPUs.
+
+Reported by Fabrice Fontaine <[email protected]> in
+<https://lists.gnu.org/archive/html/bug-gnulib/2022-04/msg00028.html>.
+
+* m4/stack-direction.m4 (SV_STACK_DIRECTION): Treat the 'arc' variants
+like 'arc'.
+
+[Retrieved (and backported) from:
+https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=1957bb5113a2bf02c7ecf0815125eec04b9476d2]
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ ChangeLog             | 8 ++++++++
+ m4/stack-direction.m4 | 4 ++--
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/m4/stack-direction.m4 b/m4/stack-direction.m4
+index 1df823e..924c5de 100644
+--- a/m4/stack-direction.m4
++++ b/m4/stack-direction.m4
+@@ -1,4 +1,4 @@
+-# stack-direction.m4 serial 7
++# stack-direction.m4 serial 11
+ dnl Copyright (C) 2002-2021 Free Software Foundation, Inc.
+ dnl This file is free software, distributed under the terms of the GNU
+ dnl General Public License.  As a special exception to the GNU General
+@@ -18,7 +18,7 @@ AC_DEFUN([SV_STACK_DIRECTION],
+       a29k | \

package/diffutils/0004-sigsegv-Fix-compilation-error-on-arceb-CPUs.patch line 41

Quoted 10 lines
package/diffutils/0004-sigsegv-Fix-compilation-error-on-arceb-CPUs.patch new file +10 -0
+       aarch64* | \
+       alpha* | \
+-      arc | \
++      arc | arceb | arc32 | arc64 | \
+       arm* | strongarm* | xscale* | \
+       avr | avr32 | \
+       bfin | \
+--
+cgit v1.1
+

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Fabrice Fontaine
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Fix the following build failure raised since bump to version 3.8 in commit 1f89c80417ad03127650b22c41ec4e30d42c549f:

sigsegv.c: In function 'sigsegv_handler':
sigsegv.c:979:28: error: 'struct vma_struct' has no member named 'is_near_this'
979 | : vma.is_near_this (addr, &vma))
| ^

Quoted 4 lines

Fixes:
- http://autobuild.buildroot.org/results/8c5b8b37eb3c2667c75666079b056df7e0023e05

Committed to 2022.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot