Skip to contentSkip to conversation

libunwind: Fix test case link failure on PowerPC systems with Altivec

PATCH In review [email protected] 3 participants 4 messages Sep 23, 2014 – Oct 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libunwind: Fix test case link failure on PowerPC systems with Altivec

From: Ting Liu <[email protected]>

---
 ...k-failure-on-PowerPC-systems-with-Altivec.patch | 31 ++++++++++++++++++++++
 meta-oe/recipes-support/libunwind/libunwind_1.1.bb |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 meta-oe/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch
meta-oe/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch new file +31 -0
new file mode 100644
index 0000000..e8f4382
@@ -0,0 +1,31 @@
+From 4c62c4a9556f92495d93eddc7641497e1ce1e35c Mon Sep 17 00:00:00 2001
+From: Ulrich Weigand <[email protected]>
+Date: Tue, 17 Dec 2013 15:00:54 +0100
+Subject: [PATCH] Fix test case link failure on PowerPC systems with Altivec
+
+Upstream-Status:backport
+
+On systems where the system compiler supports Altivec by default,
+the libunwind Makefile will attempt to build an extra test case
+ppc64-test-altivec.  Unfortunately, the link step will fail since
+the Makefile does not actually link against the libunwind library.
+
+Fixed by adding the appropriate LDADD macro.
+
+Signed-off-by: Ulrich Weigand <[email protected]>
+---
+ tests/Makefile.am |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index 0e30536..9c76628 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -201,3 +201,4 @@ Lia64_test_rbs_LDADD = $(LIBUNWIND_local)
+ Lia64_test_readonly_LDADD = $(LIBUNWIND_local)
+ ia64_test_dyn1_LDADD = $(LIBUNWIND)
+ ia64_test_sig_LDADD = $(LIBUNWIND)
++ppc64_test_altivec_LDADD = $(LIBUNWIND)
+-- 
+1.7.2.5
+
meta-oe/recipes-support/libunwind/libunwind_1.1.bb +1 -0
index bc38e36..18bca0e 100644
@@ -1,4 +1,5 @@
 require libunwind.inc
 
+SRC_URI += "file://Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch"
 SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce"
 SRC_URI[sha256sum] = "9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a"
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 1 line · On Tue, Sep 23, 2014 at 03:04:08PM +0800, [email protected] wrote:

From: Ting Liu <[email protected]>

libunwind was recently moved to oe-core, please fix it there.

Quoted 63 lines
---
 ...k-failure-on-PowerPC-systems-with-Altivec.patch | 31 ++++++++++++++++++++++
 meta-oe/recipes-support/libunwind/libunwind_1.1.bb |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 meta-oe/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch
meta-oe/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch new file +31 -0
new file mode 100644
index 0000000..e8f4382
@@ -0,0 +1,31 @@
+From 4c62c4a9556f92495d93eddc7641497e1ce1e35c Mon Sep 17 00:00:00 2001
+From: Ulrich Weigand <[email protected]>
+Date: Tue, 17 Dec 2013 15:00:54 +0100
+Subject: [PATCH] Fix test case link failure on PowerPC systems with Altivec
+
+Upstream-Status:backport
+
+On systems where the system compiler supports Altivec by default,
+the libunwind Makefile will attempt to build an extra test case
+ppc64-test-altivec.  Unfortunately, the link step will fail since
+the Makefile does not actually link against the libunwind library.
+
+Fixed by adding the appropriate LDADD macro.
+
+Signed-off-by: Ulrich Weigand <[email protected]>
+---
+ tests/Makefile.am |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index 0e30536..9c76628 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -201,3 +201,4 @@ Lia64_test_rbs_LDADD = $(LIBUNWIND_local)
+ Lia64_test_readonly_LDADD = $(LIBUNWIND_local)
+ ia64_test_dyn1_LDADD = $(LIBUNWIND)
+ ia64_test_sig_LDADD = $(LIBUNWIND)
++ppc64_test_altivec_LDADD = $(LIBUNWIND)
+-- 
+1.7.2.5
+
meta-oe/recipes-support/libunwind/libunwind_1.1.bb +1 -0
index bc38e36..18bca0e 100644
@@ -1,4 +1,5 @@
 require libunwind.inc
 
+SRC_URI += "file://Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch"
 SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce"
 SRC_URI[sha256sum] = "9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a"
Signature · 7 lines
1.8.3.2

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
In reply to [email protected]

Hi Ting,

Would you please send it to oe-core, or I can help ? It had conficts, I updated it:

From 719aa29b604df59538eea6e9b9a8595389dc79f3 Mon Sep 17 00:00:00 2001
From: Ting Liu <[email protected]>
Date: Tue, 23 Sep 2014 15:04:08 +0800
Subject: [PATCH] libunwind: Fix test case link failure on PowerPC systems
with Altivec

Fixed:
ppc64-test-altivec.o: In function `vec_stack':
tests/ppc64-test-altivec.c:54: undefined reference to _Uppc64_init_local' tests/ppc64-test-altivec.c:67: undefined reference to _Uppc64_get_reg' tests/ppc64-test-altivec.c:72: undefined reference to _Uppc64_get_fpreg' tests/ppc64-test-altivec.c:82: undefined reference to _Uppc64_regname' tests/ppc64-test-altivec.c:94: undefined reference to _Uppc64_get_proc_name' tests/ppc64-test-altivec.c:109: undefined reference to _Uppc64_step' tests/ppc64-test-altivec.c:62: undefined reference to _Uppc64_get_reg' tests/ppc64-test-altivec.c:112: undefined reference to _Uppc64_get_reg'

---
 ...k-failure-on-PowerPC-systems-with-Altivec.patch |   31 ++++++++++++++++++++
 meta/recipes-support/libunwind/libunwind_1.1.bb    |    1 +
 2 files changed, 32 insertions(+)
 create mode 100644 

meta/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch

meta/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch new file +31 -0
new file mode 100644
index 0000000..e8f4382
@@ -0,0 +1,31 @@
+From 4c62c4a9556f92495d93eddc7641497e1ce1e35c Mon Sep 17 00:00:00 2001
+From: Ulrich Weigand <[email protected]>
+Date: Tue, 17 Dec 2013 15:00:54 +0100
+Subject: [PATCH] Fix test case link failure on PowerPC systems with Altivec
+
+Upstream-Status:backport
+
+On systems where the system compiler supports Altivec by default,
+the libunwind Makefile will attempt to build an extra test case
+ppc64-test-altivec.  Unfortunately, the link step will fail since
+the Makefile does not actually link against the libunwind library.
+
+Fixed by adding the appropriate LDADD macro.
+
+Signed-off-by: Ulrich Weigand <[email protected]>
+---
+ tests/Makefile.am |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index 0e30536..9c76628 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -201,3 +201,4 @@ Lia64_test_rbs_LDADD = $(LIBUNWIND_local)
+ Lia64_test_readonly_LDADD = $(LIBUNWIND_local)
+ ia64_test_dyn1_LDADD = $(LIBUNWIND)
+ ia64_test_sig_LDADD = $(LIBUNWIND)
++ppc64_test_altivec_LDADD = $(LIBUNWIND)
+--
+1.7.2.5
+
meta/recipes-support/libunwind/libunwind_1.1.bb +1 -0
index 2e52430..5b54dcb 100644
@@ -3,6 +3,7 @@ require libunwind.inc
 SRC_URI += "\
     file://Support-building-with-older-compilers.patch \
     file://AArch64-port.patch \
+    file://Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch \
 "
 
 SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce"
Signature · 4 lines
1.7.9.5


// Robert
Quoted 57 lines · On 09/23/2014 03:04 PM, [email protected] wrote:

From: Ting Liu <[email protected]>

---
  ...k-failure-on-PowerPC-systems-with-Altivec.patch | 31 ++++++++++++++++++++++
  meta-oe/recipes-support/libunwind/libunwind_1.1.bb |  1 +
  2 files changed, 32 insertions(+)

create mode 100644 meta-oe/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch

meta-oe/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch new file +31 -0
new file mode 100644
index 0000000..e8f4382
@@ -0,0 +1,31 @@
+From 4c62c4a9556f92495d93eddc7641497e1ce1e35c Mon Sep 17 00:00:00 2001
+From: Ulrich Weigand <[email protected]>
+Date: Tue, 17 Dec 2013 15:00:54 +0100
+Subject: [PATCH] Fix test case link failure on PowerPC systems with Altivec
+
+Upstream-Status:backport
+
+On systems where the system compiler supports Altivec by default,
+the libunwind Makefile will attempt to build an extra test case
+ppc64-test-altivec.  Unfortunately, the link step will fail since
+the Makefile does not actually link against the libunwind library.
+
+Fixed by adding the appropriate LDADD macro.
+
+Signed-off-by: Ulrich Weigand <[email protected]>
+---
+ tests/Makefile.am |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index 0e30536..9c76628 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -201,3 +201,4 @@ Lia64_test_rbs_LDADD = $(LIBUNWIND_local)
+ Lia64_test_readonly_LDADD = $(LIBUNWIND_local)
+ ia64_test_dyn1_LDADD = $(LIBUNWIND)
+ ia64_test_sig_LDADD = $(LIBUNWIND)
++ppc64_test_altivec_LDADD = $(LIBUNWIND)
+--
+1.7.2.5
+
meta-oe/recipes-support/libunwind/libunwind_1.1.bb +1 -0
index bc38e36..18bca0e 100644
@@ -1,4 +1,5 @@
  require libunwind.inc
 
+SRC_URI += "file://Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch"
  SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce"
  SRC_URI[sha256sum] = "9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a"
#3 lore raw
Quoted 8 lines

-----Original Message-----
From: Robert Yang [mailto:[email protected]]
Sent: Friday, October 10, 2014 7:45 PM
To: [email protected]; Liu Ting-B28495
Subject: Re: [oe] [meta-oe][PATCH] libunwind: Fix test case link failure on PowerPC systems with Altivec

Quoted 4 lines

Hi Ting,

Would you please send it to oe-core, or I can help ? It had conficts, I updated it:

Please do it. Thanks.

Quoted 160 lines

From 719aa29b604df59538eea6e9b9a8595389dc79f3 Mon Sep 17 00:00:00 2001
From: Ting Liu <[email protected]>
Date: Tue, 23 Sep 2014 15:04:08 +0800
Subject: [PATCH] libunwind: Fix test case link failure on PowerPC systems
with Altivec

Fixed:
ppc64-test-altivec.o: In function `vec_stack':
tests/ppc64-test-altivec.c:54: undefined reference to _Uppc64_init_local' tests/ppc64-test-altivec.c:67: undefined reference to _Uppc64_get_reg' tests/ppc64-test-altivec.c:72: undefined reference to _Uppc64_get_fpreg' tests/ppc64-test-altivec.c:82: undefined reference to _Uppc64_regname' tests/ppc64-test-altivec.c:94: undefined reference to _Uppc64_get_proc_name' tests/ppc64-test-altivec.c:109: undefined reference to _Uppc64_step' tests/ppc64-test-altivec.c:62: undefined reference to _Uppc64_get_reg' tests/ppc64-test-altivec.c:112: undefined reference to _Uppc64_get_reg'

---
  ...k-failure-on-PowerPC-systems-with-Altivec.patch |   31
++++++++++++++++++++
  meta/recipes-support/libunwind/libunwind_1.1.bb    |    1 +
  2 files changed, 32 insertions(+)

create mode 100644
meta/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on- PowerPC-systems-with-Altivec.patch

diff --git a/meta/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on- PowerPC-systems-with-Altivec.patch b/meta/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on- PowerPC-systems-with-Altivec.patch
new file mode 100644
index 0000000..e8f4382
--- /dev/null
+++
b/meta/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on- PowerPC-systems-with-Altivec.patch

meta/recipes-support/libunwind/libunwind/Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patch new file +31 -0
@@ -0,0 +1,31 @@
+From 4c62c4a9556f92495d93eddc7641497e1ce1e35c Mon Sep 17 00:00:00 2001
+From: Ulrich Weigand <[email protected]>
+Date: Tue, 17 Dec 2013 15:00:54 +0100
+Subject: [PATCH] Fix test case link failure on PowerPC systems with
+Altivec
+
+Upstream-Status:backport
+
+On systems where the system compiler supports Altivec by default, the
+libunwind Makefile will attempt to build an extra test case
+ppc64-test-altivec.  Unfortunately, the link step will fail since the
+Makefile does not actually link against the libunwind library.
+
+Fixed by adding the appropriate LDADD macro.
+
+Signed-off-by: Ulrich Weigand <[email protected]>
+---
+ tests/Makefile.am |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am index
+0e30536..9c76628 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -201,3 +201,4 @@ Lia64_test_rbs_LDADD = $(LIBUNWIND_local)
+Lia64_test_readonly_LDADD = $(LIBUNWIND_local)  ia64_test_dyn1_LDADD =
+$(LIBUNWIND)  ia64_test_sig_LDADD = $(LIBUNWIND)
++ppc64_test_altivec_LDADD = $(LIBUNWIND)
+--
+1.7.2.5
+
meta/recipes-support/libunwind/libunwind_1.1.bb +3 -1
index 2e52430..5b54dcb 100644
@@ -3,6 +3,7 @@ require libunwind.inc
  SRC_URI += "\
      file://Support-building-with-older-compilers.patch \
      file://AArch64-port.patch \
+
+ file://Fix-test-case-link-failure-on-PowerPC-systems-with-Altivec.patc
+ h \
  "
 
  SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce"
--

1.7.9.5

// Robert

Quoted 5 lines · On 09/23/2014 03:04 PM, [email protected] wrote:

From: Ting Liu <[email protected]>

---
  ...k-failure-on-PowerPC-systems-with-Altivec.patch | 31

++++++++++++++++++++++

Quoted 3 lines
  meta-oe/recipes-support/libunwind/libunwind_1.1.bb |  1 +
  2 files changed, 32 insertions(+)

create mode 100644 meta-oe/recipes-support/libunwind/libunwind/Fix-test-

case-link-failure-on-PowerPC-systems-with-Altivec.patch

Review

Quoted 2 lines
(quoted diff) +0 -0

failure-on-PowerPC-systems-with-Altivec.patch b/meta-oe/recipes- support/libunwind/libunwind/Fix-test-case-link-failure-on-PowerPC-systems- with-Altivec.patch

meta-oe/recipes-support/libunwind/libunwind/Fix-test-case-link-

Quoted 4 lines

new file mode 100644
index 0000000..e8f4382

meta-oe/recipes-support/libunwind/libunwind/Fix-test-case-link- new file +0 -0

failure-on-PowerPC-systems-with-Altivec.patch

meta-

Quoted 33 lines
meta-oe/recipes-support/libunwind/libunwind/Fix-test-case-link- new file +31 -0
@@ -0,0 +1,31 @@
+From 4c62c4a9556f92495d93eddc7641497e1ce1e35c Mon Sep 17 00:00:00 2001
+From: Ulrich Weigand <[email protected]>
+Date: Tue, 17 Dec 2013 15:00:54 +0100
+Subject: [PATCH] Fix test case link failure on PowerPC systems with Altivec
+
+Upstream-Status:backport
+
+On systems where the system compiler supports Altivec by default,
+the libunwind Makefile will attempt to build an extra test case
+ppc64-test-altivec.  Unfortunately, the link step will fail since
+the Makefile does not actually link against the libunwind library.
+
+Fixed by adding the appropriate LDADD macro.
+
+Signed-off-by: Ulrich Weigand <[email protected]>
+---
+ tests/Makefile.am |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index 0e30536..9c76628 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -201,3 +201,4 @@ Lia64_test_rbs_LDADD = $(LIBUNWIND_local)
+ Lia64_test_readonly_LDADD = $(LIBUNWIND_local)
+ ia64_test_dyn1_LDADD = $(LIBUNWIND)
+ ia64_test_sig_LDADD = $(LIBUNWIND)
++ppc64_test_altivec_LDADD = $(LIBUNWIND)
+--
+1.7.2.5
+
meta- renamed from meta-oe/recipes-support/libunwind/libunwind_1.1.bb +0 -0

oe/recipes-support/libunwind/libunwind_1.1.bb

meta-oe/recipes-support/libunwind/libunwind_1.1.bb line 3

Quoted 7 lines

index bc38e36..18bca0e 100644

meta-oe/recipes-support/libunwind/libunwind_1.1.bb +1 -0
@@ -1,4 +1,5 @@
  require libunwind.inc
 
+SRC_URI += "file://Fix-test-case-link-failure-on-PowerPC-systems-with-

Altivec.patch"

meta-oe/recipes-support/libunwind/libunwind_1.1.bb line 5

Quoted 2 lines
meta-oe/recipes-support/libunwind/libunwind_1.1.bb +0 -0
  SRC_URI[md5sum] = "fb4ea2f6fbbe45bf032cd36e586883ce"
  SRC_URI[sha256sum] =

"9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a"

Quoted 1 line