Skip to contentSkip to conversation

libsigsegv: fix avr32 build

PATCH New spdawson at gmail.com 2 participants 3 messages Nov 4, 2013 – Nov 5, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsigsegv: fix avr32 build

From: Simon Dawson <[email protected]>

The libsigsegv configure step fails to correctly figure out the direction of stack growth for avr32. This leads to a zero STACK_DIRECTION definition, and build failures such as the following.

http://autobuild.buildroot.net/results/a3fe938f9376533b4777d79deb7a2ee83ed5ce33

---
 .../libsigsegv-0001-fix-avr32-build.patch          | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch
package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch new file +32 -0
new file mode 100644
index 0000000..daccabb
@@ -0,0 +1,32 @@
+The libsigsegv configure step fails to correctly figure out the direction of
+stack growth for avr32. This leads to a zero STACK_DIRECTION definition, and
+build failures such as the following.
+
+  http://autobuild.buildroot.net/results/a3fe938f9376533b4777d79deb7a2ee83ed5ce33
+
+Signed-off-by: Simon Dawson <[email protected]>
+
+diff -Nurp a/configure b/configure
+--- a/configure	2011-04-03 16:50:50.000000000 +0100
++++ b/configure	2013-11-04 09:29:21.990050318 +0000
+@@ -14504,7 +14504,7 @@ else
+       alpha* | \
+       arc | \
+       arm* | strongarm* | xscale* | \
+-      avr | \
++      avr | avr32 | \
+       c1 | c2 | c32 | c34 | c38 | \
+       clipper | \
+       cris | \
+diff -Nurp a/m4/stack-direction.m4 b/m4/stack-direction.m4
+--- a/m4/stack-direction.m4	2009-11-21 12:22:45.000000000 +0000
++++ b/m4/stack-direction.m4	2013-11-04 09:29:27.558036038 +0000
+@@ -16,7 +16,7 @@ AC_DEFUN([SV_STACK_DIRECTION],
+       alpha* | \
+       arc | \
+       arm* | strongarm* | xscale* | \
+-      avr | \
++      avr | avr32 | \
+       c1 | c2 | c32 | c34 | c38 | \
+       clipper | \
+       cris | \
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 libsigsegv: fix avr32 build

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"spdawson" == spdawson <[email protected]> writes:

From: Simon Dawson <[email protected]>
The libsigsegv configure step fails to correctly figure out the direction of stack growth for avr32. This leads to a zero STACK_DIRECTION definition, and build failures such as the following.

http://autobuild.buildroot.net/results/a3fe938f9376533b4777d79deb7a2ee83ed5ce33

---
 .../libsigsegv-0001-fix-avr32-build.patch          | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch
package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch new file +0 -0
new file mode 100644
index 0000000..daccabb

package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch line 9

Quoted 9 lines
package/libsigsegv/libsigsegv-0001-fix-avr32-build.patch new file +9 -0
@@ -0,0 +1,32 @@
+The libsigsegv configure step fails to correctly figure out the direction of
+stack growth for avr32. This leads to a zero STACK_DIRECTION definition, and
+build failures such as the following.
+
+  http://autobuild.buildroot.net/results/a3fe938f9376533b4777d79deb7a2ee83ed5ce33
+
+Signed-off-by: Simon Dawson <[email protected]>
+
+diff -Nurp a/configure b/configure

Doesn't autoreconf work? I prefer to regenerate configure instead of patching it if possible.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 libsigsegv: fix avr32 build

Thanks for the feedback Peter.

Quoted 2 lines · Peter Korsgaard

Doesn't autoreconf work? I prefer to regenerate configure instead of patching it if possible.

Yes, that works. Will submit an updated patch.

Simon.