Skip to contentSkip to conversation

valgrind: update to 3.11.0

PATCH Superseded Alexander Kanavin 6 participants 13 messages Dec 15, 2015 – Jan 7, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 valgrind: update to 3.11.0

LICENSE checksums are changed due to a change in FSF address, or copyright years update.

Rebased patches:
sepbuildfix.patch rebased to 0004-Fix-out-of-tree-builds.patch add-ptest.patch rebased to 0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch

Removed patches:
force-nostabs.patch removed because it's patching lines that have been removed upstream remove-ppc-tests-failing-build.patch removed because it no longer applies, and rebasing it requires building with special ppc32 machine configurations; qemuppc build is fine without it. enable.building.on.4.x.kernel.patch removed because the problem is fixed upstream glibc.patch removed for the same reason

Removed backports:
pass-maltivec-only-if-it-supported.patch 0001-valgrind-Enable-rt_sigpending-syscall-on-ppc64-linux.patch

There is a known warning issued during build:
WARNING: QA Issue: /usr/lib/valgrind/ptest/none/tests/scripts/shell@underscore@badinterp_valgrind-ptest contained in package valgrind-ptest requires /this/is/a/bogus/interpreter/name,
but no providers found in its RDEPENDS [file-rdeps]

If you know how to fix it, let me know.

---
 ...able-rt_sigpending-syscall-on-ppc64-linux.patch |  35 ---
 .../valgrind/valgrind/0002-remove-rpath.patch      |  35 +++
 .../valgrind/0004-Fix-out-of-tree-builds.patch     | 175 ++++++++++++++
 ...-vg_test-wrapper-to-support-PTEST-formats.patch | 252 +++++++++++++++++++++
 .../valgrind/valgrind/add-ptest.patch              | 243 --------------------
 .../valgrind/enable.building.on.4.x.kernel.patch   |  37 ---
 .../valgrind/valgrind/force-nostabs.patch          |  42 ----
 .../recipes-devtools/valgrind/valgrind/glibc.patch |  44 ----
 .../pass-maltivec-only-if-it-supported.patch       |  68 ------
 .../valgrind/remove-ppc-tests-failing-build.patch  |  75 ------
 .../valgrind/valgrind/sepbuildfix.patch            | 235 -------------------
 meta/recipes-devtools/valgrind/valgrind_3.10.1.bb  | 106 ---------
 meta/recipes-devtools/valgrind/valgrind_3.11.0.bb  |  98 ++++++++
 13 files changed, 560 insertions(+), 885 deletions(-)
 delete mode 100644 meta/recipes-devtools/valgrind/valgrind/0001-valgrind-Enable-rt_sigpending-syscall-on-ppc64-linux.patch
 create mode 100644 meta/recipes-devtools/valgrind/valgrind/0002-remove-rpath.patch
 create mode 100644 meta/recipes-devtools/valgrind/valgrind/0004-Fix-out-of-tree-builds.patch
 create mode 100644 meta/recipes-devtools/valgrind/valgrind/0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch
 delete mode 100644 meta/recipes-devtools/valgrind/valgrind/add-ptest.patch
 delete mode 100644 meta/recipes-devtools/valgrind/valgrind/enable.building.on.4.x.kernel.patch
 delete mode 100644 meta/recipes-devtools/valgrind/valgrind/force-nostabs.patch
 delete mode 100644 meta/recipes-devtools/valgrind/valgrind/glibc.patch
 delete mode 100644 meta/recipes-devtools/valgrind/valgrind/pass-maltivec-only-if-it-supported.patch
 delete mode 100644 meta/recipes-devtools/valgrind/valgrind/remove-ppc-tests-failing-build.patch
 delete mode 100644 meta/recipes-devtools/valgrind/valgrind/sepbuildfix.patch
 delete mode 100644 meta/recipes-devtools/valgrind/valgrind_3.10.1.bb
 create mode 100644 meta/recipes-devtools/valgrind/valgrind_3.11.0.bb
meta/recipes-devtools/valgrind/valgrind/0001-valgrind-Enable-rt_sigpending-syscall-on-ppc64-linux.patch deleted +0 -35
deleted file mode 100644
index 56bb5f5..0000000
@@ -1,35 +0,0 @@
-From 1a8006f56342dae9f7100a3c33d80873676e0404 Mon Sep 17 00:00:00 2001
-From: Li Zhou <[email protected]>
-Date: Mon, 24 Aug 2015 03:55:18 -0400
-Subject: [PATCH] valgrind: Enable rt_sigpending syscall on ppc64 linux
-
-New Revision: 15133
-Enable rt_sigpending syscall on ppc64 linux.
-Patch from Thomas Huth <[email protected]>
-
-Get the patch from valgrind upstream:
-http://valgrind.10908.n7.nabble.com/Valgrind-r15133-in-trunk-NEWS-coregrind-m-syswrap-syswrap-ppc64-linux-c-td54589.html
-
-Upstream-Status: backport
-
-Signed-off-by: Li Zhou <[email protected]>
----
- coregrind/m_syswrap/syswrap-ppc64-linux.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/coregrind/m_syswrap/syswrap-ppc64-linux.c b/coregrind/m_syswrap/syswrap-ppc64-linux.c
-index 5946ee1..8aaa1d7 100644
---- a/coregrind/m_syswrap/syswrap-ppc64-linux.c
-+++ b/coregrind/m_syswrap/syswrap-ppc64-linux.c
-@@ -887,7 +887,7 @@ static SyscallTableEntry syscall_table[] = {
-    LINXY(__NR_rt_sigaction,      sys_rt_sigaction),       // 173
-    LINXY(__NR_rt_sigprocmask,    sys_rt_sigprocmask),     // 174
- 
--// _____(__NR_rt_sigpending,     sys_rt_sigpending),      // 175
-+   LINXY(__NR_rt_sigpending,     sys_rt_sigpending),      // 175
-    LINXY(__NR_rt_sigtimedwait,   sys_rt_sigtimedwait),    // 176
-    LINXY(__NR_rt_sigqueueinfo,   sys_rt_sigqueueinfo),    // 177
-    LINX_(__NR_rt_sigsuspend,     sys_rt_sigsuspend),      // 178
--- 
-1.9.1
-
meta/recipes-devtools/valgrind/valgrind/0002-remove-rpath.patch new file +35 -0
new file mode 100644
index 0000000..e9112da
@@ -0,0 +1,35 @@
+From f96cf1f4eaa72860ab8b5e18ad10fdc704d78c5f Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <[email protected]>
+Date: Tue, 15 Dec 2015 15:01:34 +0200
+Subject: [PATCH 2/5] remove rpath
+
+Upstream-Status: Inappropriate [embedded config]
+Signed-off-by: Saul Wold <[email protected]>
+---
+ none/tests/Makefile.am | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/none/tests/Makefile.am b/none/tests/Makefile.am
+index 54f2a7e..25b0f49 100644
+--- a/none/tests/Makefile.am
++++ b/none/tests/Makefile.am
+@@ -326,7 +326,6 @@ threadederrno_CFLAGS	+= --std=c99
+ endif
+ tls_SOURCES		= tls.c tls2.c
+ tls_DEPENDENCIES	= tls.so tls2.so
+-tls_LDFLAGS		= -Wl,-rpath,$(abs_top_builddir)/none/tests
+ tls_LDADD		= tls.so tls2.so -lpthread
+ tls_so_SOURCES		= tls_so.c
+ tls_so_DEPENDENCIES	= tls2.so
+@@ -334,7 +333,7 @@ if VGCONF_OS_IS_DARWIN
+  tls_so_LDFLAGS		= -dynamic -dynamiclib -all_load -fpic
+  tls_so_LDADD		= `pwd`/tls2.so
+ else
+- tls_so_LDFLAGS		= -Wl,-rpath,$(abs_top_builddir)/none/tests -shared -fPIC
++ tls_so_LDFLAGS		= -shared -fPIC
+  tls_so_LDADD		= tls2.so
+ endif
+ tls_so_CFLAGS		= $(AM_CFLAGS) -fPIC
+-- 
+2.6.2
+
meta/recipes-devtools/valgrind/valgrind/0004-Fix-out-of-tree-builds.patch new file +175 -0

175 lines not on this page · raw message

meta/recipes-devtools/valgrind/valgrind/0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch new file +252 -0

252 lines not on this page · raw message

meta/recipes-devtools/valgrind/valgrind/add-ptest.patch deleted +0 -243

243 lines not on this page · raw message

meta/recipes-devtools/valgrind/valgrind/enable.building.on.4.x.kernel.patch deleted +0 -37
deleted file mode 100644
index 300f2f1..0000000
@@ -1,37 +0,0 @@
-Enable building valgrind on host with 4.x kernel.
-
-For OpenEmbedded builds we should be checking something like
-OLDEST_KERNEL instead of `uname -r`, but this is good enough for now.
-
-Building on 4.x* currently fails with:
-  configure:5556: checking for the kernel version
-  configure:5579: result: unsupported (4.0.0-rc3-00111-gaffb817)
-  configure:5581: error: Valgrind works on kernels 2.4, 2.6
-
-Upstream-Status: Pending
-Signed-off-by: Martin Jansa <[email protected]>
-
---- valgrind-3.9.0/configure.ac.orig	2015-03-13 19:17:01.247310868 +0100
-+++ valgrind-3.9.0/configure.ac	2015-03-13 19:19:27.388316108 +0100
-@@ -276,9 +276,9 @@
-         kernel=`uname -r`
- 
-         case "${kernel}" in
--             2.6.*|3.*) 
--        	    AC_MSG_RESULT([2.6.x/3.x family (${kernel})])
--        	    AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x or Linux 3.x])
-+             2.6.*|3.*|4.*) 
-+        	    AC_MSG_RESULT([2.6.x/3.x/4.x family (${kernel})])
-+        	    AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x or Linux 3.x or Linux 4.x])
-         	    ;;
- 
-              2.4.*) 
-@@ -288,7 +288,7 @@
- 
-              *) 
-         	    AC_MSG_RESULT([unsupported (${kernel})])
--        	    AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6])
-+        	    AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6, 3.x, 4.x])
-         	    ;;
-         esac
- 
meta/recipes-devtools/valgrind/valgrind/force-nostabs.patch deleted +0 -42

42 lines not on this page · raw message

meta/recipes-devtools/valgrind/valgrind/glibc.patch deleted +0 -44

44 lines not on this page · raw message

meta/recipes-devtools/valgrind/valgrind/pass-maltivec-only-if-it-supported.patch deleted +0 -68

68 lines not on this page · raw message

meta/recipes-devtools/valgrind/valgrind/remove-ppc-tests-failing-build.patch deleted +0 -75

75 lines not on this page · raw message

meta/recipes-devtools/valgrind/valgrind/sepbuildfix.patch deleted +0 -235

235 lines not on this page · raw message

meta/recipes-devtools/valgrind/valgrind_3.10.1.bb deleted +0 -106

106 lines not on this page · raw message

meta/recipes-devtools/valgrind/valgrind_3.11.0.bb new file +98 -0

98 lines not on this page · raw message

Signature · 1 line
2.6.2
#1 lore raw
Quoted 27 lines · Alexander Kanavin

LICENSE checksums are changed due to a change in FSF address, or copyright years update.

Rebased patches:
sepbuildfix.patch rebased to 0004-Fix-out-of-tree-builds.patch add-ptest.patch rebased to 0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch

Removed patches:
force-nostabs.patch removed because it's patching lines that have been removed upstream remove-ppc-tests-failing-build.patch removed because it no longer applies, and rebasing it requires building with special ppc32 machine configurations; qemuppc build is fine without it. enable.building.on.4.x.kernel.patch removed because the problem is fixed upstream glibc.patch removed for the same reason

Removed backports:
pass-maltivec-only-if-it-supported.patch 0001-valgrind-Enable-rt_sigpending-syscall-on-ppc64-linux.patch

There is a known warning issued during build:
WARNING: QA Issue: /usr/lib/valgrind/ptest/none/tests/scripts/shell@underscore@badinterp_valgrind-ptest contained in package valgrind-ptest requires /this/is/a/bogus/interpreter/name,
but no providers found in its RDEPENDS [file-rdeps]

If you know how to fix it, let me know.

---

meta/recipes-devtools/valgrind/valgrind_3.11.0.bb line 30

Quoted 2 lines
meta/recipes-devtools/valgrind/valgrind_3.11.0.bb new file +2 -0
+COMPATIBLE_HOST = '(i.86|x86_64|mips|powerpc|powerpc64).*-linux'
+COMPATIBLE_HOST_armv7a = 'arm.*-linux'

Can you add armv7ve as well?

meta/recipes-devtools/valgrind/valgrind_3.11.0.bb line 35

Quoted 5 lines
meta/recipes-devtools/valgrind/valgrind_3.11.0.bb new file +5 -0
+
+inherit autotools ptest
+
+EXTRA_OECONF = "--enable-tls --without-mpicc"
+EXTRA_OECONF_armv7a = "--enable-tls -host=armv7-none-linux-gnueabi --without-mpicc"

Can you add armv7ve as well?

Quoted 3 lines
meta/recipes-devtools/valgrind/valgrind_3.11.0.bb new file +3 -0
+EXTRA_OECONF += "${@['--enable-only32bit','--enable-only64bit'][d.getVar('SITEINFO_BITS', True) != '32']}"
+EXTRA_OEMAKE = "-w"
+
#2 lore raw
Quoted 4 lines · Martin Jansa

meta/recipes-devtools/valgrind/valgrind_3.11.0.bb line 30

Quoted 2 lines
meta/recipes-devtools/valgrind/valgrind_3.11.0.bb new file +2 -0
+COMPATIBLE_HOST = '(i.86|x86_64|mips|powerpc|powerpc64).*-linux'
+COMPATIBLE_HOST_armv7a = 'arm.*-linux'

Can you add armv7ve as well?

Armv7ve support is not yet in master, so you'll have to add it later I'm afraid.

Alex

#3 lore raw
Quoted 8 lines · On Tue, 15 Dec 2015 17:28:59 Alexander Kanavin wrote:
Quoted 4 lines · Martin Jansa

meta/recipes-devtools/valgrind/valgrind_3.11.0.bb line 30

Quoted 2 lines
meta/recipes-devtools/valgrind/valgrind_3.11.0.bb new file +2 -0
+COMPATIBLE_HOST = '(i.86|x86_64|mips|powerpc|powerpc64).*-linux'
+COMPATIBLE_HOST_armv7a = 'arm.*-linux'

Can you add armv7ve as well?

Armv7ve support is not yet in master, so you'll have to add it later I'm afraid.

I think by policy we don't have any restrictions on architecture-specific flags in OE-Core (at least, assuming they're reasonable).

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#4 lore raw
Quoted 7 lines · Paul Eggleton
Quoted 6 lines · On Tue, 15 Dec 2015 17:28:59 Alexander Kanavin wrote:
Quoted 4 lines · Martin Jansa

meta/recipes-devtools/valgrind/valgrind_3.11.0.bb line 30

Quoted 2 lines
meta/recipes-devtools/valgrind/valgrind_3.11.0.bb new file +2 -0
+COMPATIBLE_HOST = '(i.86|x86_64|mips|powerpc|powerpc64).*-linux'
+COMPATIBLE_HOST_armv7a = 'arm.*-linux'

Can you add armv7ve as well?

Quoted 5 lines
Quoted 2 lines

Armv7ve support is not yet in master, so you'll have to add it later I'm afraid.

I think by policy we don't have any restrictions on architecture-specific flags in OE-Core (at least, assuming they're reasonable).

If we're going to duplicate all _armv7a over-rides for _armv7ve then I'd vote to do so in a single patch series which fixes up the whole of oe-core rather than adding the over-rides one at a time amongst version updates etc.

Quoted 12 lines

Cheers,
Paul

--

Paul Eggleton
Intel Open Source Technology Centre
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#5 lore raw
Quoted 13 lines · On Tue, 15 Dec 2015 12:07:48 Andre McCurdy wrote:

On Tue, Dec 15, 2015 at 9:26 AM, Paul Eggleton

Quoted 10 lines · <[email protected]> wrote:
Quoted 8 lines · On Tue, 15 Dec 2015 17:28:59 Alexander Kanavin wrote:
Quoted 4 lines · Martin Jansa

meta/recipes-devtools/valgrind/valgrind_3.11.0.bb line 30

Quoted 2 lines
meta/recipes-devtools/valgrind/valgrind_3.11.0.bb new file +2 -0
+COMPATIBLE_HOST = '(i.86|x86_64|mips|powerpc|powerpc64).*-linux'
+COMPATIBLE_HOST_armv7a = 'arm.*-linux'

Can you add armv7ve as well?

Armv7ve support is not yet in master, so you'll have to add it later I'm afraid.

Quoted 7 lines
Quoted 2 lines

I think by policy we don't have any restrictions on architecture-specific flags in OE-Core (at least, assuming they're reasonable).

If we're going to duplicate all _armv7a over-rides for _armv7ve then I'd vote to do so in a single patch series which fixes up the whole of oe-core rather than adding the over-rides one at a time amongst version updates etc.

Makes sense, but before doing that would it make sense to have a grouping override for all of them that can be used instead (where appropriate)?

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#6 lore raw
Quoted 20 lines · Paul Eggleton
Quoted 16 lines · On Tue, 15 Dec 2015 12:07:48 Andre McCurdy wrote:

On Tue, Dec 15, 2015 at 9:26 AM, Paul Eggleton

Quoted 12 lines · <[email protected]> wrote:
Quoted 8 lines · On Tue, 15 Dec 2015 17:28:59 Alexander Kanavin wrote:
Quoted 4 lines · Martin Jansa

meta/recipes-devtools/valgrind/valgrind_3.11.0.bb line 30

Quoted 2 lines
meta/recipes-devtools/valgrind/valgrind_3.11.0.bb new file +2 -0
+COMPATIBLE_HOST = '(i.86|x86_64|mips|powerpc|powerpc64).*-linux'
+COMPATIBLE_HOST_armv7a = 'arm.*-linux'

Can you add armv7ve as well?

Armv7ve support is not yet in master, so you'll have to add it later I'm afraid.

I think by policy we don't have any restrictions on architecture-specific flags in OE-Core (at least, assuming they're reasonable).

Quoted 8 lines
Quoted 4 lines

If we're going to duplicate all _armv7a over-rides for _armv7ve then I'd vote to do so in a single patch series which fixes up the whole of oe-core rather than adding the over-rides one at a time amongst version updates etc.

Makes sense, but before doing that would it make sense to have a grouping override for all of them that can be used instead (where appropriate)?

stepping back a step. What so different about armv7ve that it needs to be a separate arch its just virtual extensions on top of armv7a, so any override pertaining to armv7a should be valid for it well. Can you work towards making it so ?

Quoted 12 lines

Cheers,
Paul

--

Paul Eggleton
Intel Open Source Technology Centre
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#7 lore raw
Quoted 25 lines · Khem Raj
Quoted 25 lines · Paul Eggleton
Quoted 20 lines · On Tue, 15 Dec 2015 12:07:48 Andre McCurdy wrote:

On Tue, Dec 15, 2015 at 9:26 AM, Paul Eggleton

Quoted 7 lines · <[email protected]> wrote:
Quoted 6 lines · On Tue, 15 Dec 2015 17:28:59 Alexander Kanavin wrote:
Quoted 4 lines · Martin Jansa

Review

Quoted 2 lines
(quoted diff) +2 -0
+COMPATIBLE_HOST = '(i.86|x86_64|mips|powerpc|powerpc64).*-linux'
+COMPATIBLE_HOST_armv7a = 'arm.*-linux'

Can you add armv7ve as well?

Quoted 5 lines
Quoted 2 lines

Armv7ve support is not yet in master, so you'll have to add it later I'm afraid.

I think by policy we don't have any restrictions on architecture-specific flags in OE-Core (at least, assuming they're reasonable).

If we're going to duplicate all _armv7a over-rides for _armv7ve then I'd vote to do so in a single patch series which fixes up the whole of oe-core rather than adding the over-rides one at a time amongst version updates etc.

Quoted 7 lines
Quoted 3 lines

Makes sense, but before doing that would it make sense to have a grouping override for all of them that can be used instead (where appropriate)?

stepping back a step. What so different about armv7ve that it needs to be a separate arch its just virtual extensions on top of armv7a, so any override pertaining to armv7a should be valid for it well. Can you work towards making it so ?

Trying to create a common over-ride for both might end up causing more trouble in the long run. Perhaps it would instead make sense just to try to remove some the _armv7a over-rides currently used in oe-core (and meta-oe)? There aren't that many and some of them look a little dubious or at least out of date and in need of a review.

For example for valgrind, we could blacklist armv4, armv5 and armv6 rather than whitelisting armv7a. The pixman recipe is assuming armv7a is a reliable way to determine NEON support, which it isn't. The libav recipes are using _armv7a to force some dubious looking optimisations. Forcing the bfd linker in DirectFB doesn't need to be architecture specific, etc. The only genuinely valid looking usage of the armv7a over-ride seems to be gcc-configure-common.

Quoted 13 lines
Quoted 12 lines

Cheers,
Paul

--

Paul Eggleton
Intel Open Source Technology Centre
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#8 lore raw
Quoted 33 lines · Andre McCurdy
Quoted 29 lines · Khem Raj
Quoted 28 lines · Paul Eggleton
Quoted 13 lines · On Tue, 15 Dec 2015 12:07:48 Andre McCurdy wrote:

On Tue, Dec 15, 2015 at 9:26 AM, Paul Eggleton

Quoted 10 lines · <[email protected]> wrote:
Quoted 8 lines · On Tue, 15 Dec 2015 17:28:59 Alexander Kanavin wrote:
Quoted 4 lines · Martin Jansa

Review

Quoted 2 lines
(quoted diff) +2 -0
+COMPATIBLE_HOST = '(i.86|x86_64|mips|powerpc|powerpc64).*-linux'
+COMPATIBLE_HOST_armv7a = 'arm.*-linux'

Can you add armv7ve as well?

Armv7ve support is not yet in master, so you'll have to add it later I'm afraid.

Quoted 7 lines
Quoted 2 lines

I think by policy we don't have any restrictions on architecture-specific flags in OE-Core (at least, assuming they're reasonable).

If we're going to duplicate all _armv7a over-rides for _armv7ve then I'd vote to do so in a single patch series which fixes up the whole of oe-core rather than adding the over-rides one at a time amongst version updates etc.

Makes sense, but before doing that would it make sense to have a grouping override for all of them that can be used instead (where appropriate)?

Quoted 6 lines
Quoted 3 lines

stepping back a step. What so different about armv7ve that it needs to be a separate arch its just virtual extensions on top of armv7a, so any override pertaining to armv7a should be valid for it well. Can you work towards making it so ?

Trying to create a common over-ride for both might end up causing more trouble in the long run.

what problem do you foresee.?

Quoted 5 lines

Perhaps it would instead make sense just to
try to remove some the _armv7a over-rides currently used in oe-core (and meta-oe)? There aren't that many and some of them look a little dubious or at least out of date and in need of a review.

Quoted 7 lines

For example for valgrind, we could blacklist armv4, armv5 and armv6 rather than whitelisting armv7a. The pixman recipe is assuming armv7a is a reliable way to determine NEON support, which it isn't. The libav recipes are using _armv7a to force some dubious looking optimisations. Forcing the bfd linker in DirectFB doesn't need to be architecture specific, etc. The only genuinely valid looking usage of the armv7a over-ride seems to be gcc-configure-common.

This patch here https://www.sourceware.org/ml/binutils/2013-11/msg00103.html
tells me that armv7e should really be triggering on armv7a as well for all purposes

Quoted 14 lines
Quoted 14 lines
Quoted 13 lines

Cheers,
Paul

--

Paul Eggleton
Intel Open Source Technology Centre
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#9 lore raw
Quoted 33 lines · Khem Raj
Quoted 33 lines · Andre McCurdy
Quoted 29 lines · Khem Raj
Quoted 28 lines · Paul Eggleton
Quoted 13 lines · On Tue, 15 Dec 2015 12:07:48 Andre McCurdy wrote:

On Tue, Dec 15, 2015 at 9:26 AM, Paul Eggleton

Quoted 10 lines · <[email protected]> wrote:
Quoted 8 lines · On Tue, 15 Dec 2015 17:28:59 Alexander Kanavin wrote:
Quoted 4 lines · Martin Jansa

Review

Quoted 2 lines
(quoted diff) +2 -0
+COMPATIBLE_HOST = '(i.86|x86_64|mips|powerpc|powerpc64).*-linux'
+COMPATIBLE_HOST_armv7a = 'arm.*-linux'

Can you add armv7ve as well?

Armv7ve support is not yet in master, so you'll have to add it later I'm afraid.

Quoted 7 lines
Quoted 2 lines

I think by policy we don't have any restrictions on architecture-specific flags in OE-Core (at least, assuming they're reasonable).

If we're going to duplicate all _armv7a over-rides for _armv7ve then I'd vote to do so in a single patch series which fixes up the whole of oe-core rather than adding the over-rides one at a time amongst version updates etc.

Makes sense, but before doing that would it make sense to have a grouping override for all of them that can be used instead (where appropriate)?

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

stepping back a step. What so different about armv7ve that it needs to be a separate arch its just virtual extensions on top of armv7a, so any override pertaining to armv7a should be valid for it well. Can you work towards making it so ?

Trying to create a common over-ride for both might end up causing more trouble in the long run.

what problem do you foresee.?

Just the potential for confusion really. Also wondering what will happen if/when people start to seriously use armv7r and armv7m. Should they also try to share an over-ride with armv7a ?

Quoted 31 lines
Quoted 5 lines

Perhaps it would instead make sense just to
try to remove some the _armv7a over-rides currently used in oe-core (and meta-oe)? There aren't that many and some of them look a little dubious or at least out of date and in need of a review.

Quoted 7 lines

For example for valgrind, we could blacklist armv4, armv5 and armv6 rather than whitelisting armv7a. The pixman recipe is assuming armv7a is a reliable way to determine NEON support, which it isn't. The libav recipes are using _armv7a to force some dubious looking optimisations. Forcing the bfd linker in DirectFB doesn't need to be architecture specific, etc. The only genuinely valid looking usage of the armv7a over-ride seems to be gcc-configure-common.

This patch here https://www.sourceware.org/ml/binutils/2013-11/msg00103.html
tells me that armv7e should really be triggering on armv7a as well for all purposes

Quoted 14 lines
Quoted 14 lines
Quoted 13 lines

Cheers,
Paul

--

Paul Eggleton
Intel Open Source Technology Centre
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#10 lore raw
Quoted 41 lines · Andre McCurdy
Quoted 37 lines · Khem Raj
Quoted 37 lines · Andre McCurdy
Quoted 32 lines · Khem Raj
Quoted 20 lines · Paul Eggleton
Quoted 16 lines · On Tue, 15 Dec 2015 12:07:48 Andre McCurdy wrote:

On Tue, Dec 15, 2015 at 9:26 AM, Paul Eggleton

Quoted 12 lines · <[email protected]> wrote:
Quoted 8 lines · On Tue, 15 Dec 2015 17:28:59 Alexander Kanavin wrote:
Quoted 4 lines · Martin Jansa

Review

Quoted 2 lines
(quoted diff) +2 -0
+COMPATIBLE_HOST = '(i.86|x86_64|mips|powerpc|powerpc64).*-linux'
+COMPATIBLE_HOST_armv7a = 'arm.*-linux'

Can you add armv7ve as well?

Armv7ve support is not yet in master, so you'll have to add it later I'm afraid.

I think by policy we don't have any restrictions on architecture-specific flags in OE-Core (at least, assuming they're reasonable).

Quoted 8 lines
Quoted 4 lines

If we're going to duplicate all _armv7a over-rides for _armv7ve then I'd vote to do so in a single patch series which fixes up the whole of oe-core rather than adding the over-rides one at a time amongst version updates etc.

Makes sense, but before doing that would it make sense to have a grouping override for all of them that can be used instead (where appropriate)?

stepping back a step. What so different about armv7ve that it needs to be a separate arch its just virtual extensions on top of armv7a, so any override pertaining to armv7a should be valid for it well. Can you work towards making it so ?

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Trying to create a common over-ride for both might end up causing more trouble in the long run.

what problem do you foresee.?

Just the potential for confusion really. Also wondering what will happen if/when people start to seriously use armv7r and armv7m. Should they also try to share an over-ride with armv7a ?

‘r' and ‘m’ are different at ISA level not the case with ‘ve'

Quoted 30 lines
Quoted 30 lines
Quoted 6 lines

Perhaps it would instead make sense just to
try to remove some the _armv7a over-rides currently used in oe-core (and meta-oe)? There aren't that many and some of them look a little dubious or at least out of date and in need of a review.

Quoted 7 lines

For example for valgrind, we could blacklist armv4, armv5 and armv6 rather than whitelisting armv7a. The pixman recipe is assuming armv7a is a reliable way to determine NEON support, which it isn't. The libav recipes are using _armv7a to force some dubious looking optimisations. Forcing the bfd linker in DirectFB doesn't need to be architecture specific, etc. The only genuinely valid looking usage of the armv7a over-ride seems to be gcc-configure-common.

This patch here https://www.sourceware.org/ml/binutils/2013-11/msg00103.html
tells me that armv7e should really be triggering on armv7a as well for all purposes

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

Cheers,
Paul

--

Paul Eggleton
Intel Open Source Technology Centre
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#11 lore raw
In reply to Alexander Kanavin
Quoted 19 lines · Alexander Kanavin

LICENSE checksums are changed due to a change in FSF address, or copyright years update.

Rebased patches:
sepbuildfix.patch rebased to 0004-Fix-out-of-tree-builds.patch add-ptest.patch rebased to 0005-Modify-vg_test-wrapper-to-support-PTEST-formats.patch

Removed patches:
force-nostabs.patch removed because it's patching lines that have been removed upstream
remove-ppc-tests-failing-build.patch removed because it no longer applies, and rebasing it
requires building with special ppc32 machine configurations; qemuppc build is fine without it.
enable.building.on.4.x.kernel.patch removed because the problem is fixed upstream
glibc.patch removed for the same reason

Quoted 4 lines

Removed backports:
pass-maltivec-only-if-it-supported.patch 0001-valgrind-Enable-rt_sigpending-syscall-on-ppc64-linux.patch

This fails to build on real PPC hardware such as p1022ds or mpc8315e-rdb:

http://errors.yoctoproject.org/Errors/Search/?items=10&query=862d702fbb99e484631315aa44b9e46f8fc567da&filter=valgrind&type=recipe

There are two different failures:

In file included from /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/build/tmp/work/ppce300c3-poky-linux/valgrind/3.11.0-r0/valgrind-3.11.0/none/tests/ppc32/testVMX.c:252:0:
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/powerpc-poky-linux/gcc/powerpc-poky-linux/5.3.0/include/altivec.h:34:2:
error: #error Use the "-maltivec" flag to enable PowerPC AltiVec support
#error Use the "-maltivec" flag to enable PowerPC AltiVec support
^
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ppc-lsb/build/build/tmp/work/ppce300c3-poky-linux/valgrind/3.11.0-r0/valgrind-3.11.0/none/tests/ppc32/testVMX.c:281:4:
error: expected specifier-qualifier-list before '__vector'

    vector signed char    v;

And:

/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-fsl-ppc-lsb/build/build/tmp/work/ppce500v2-poky-linux-gnuspe/valgrind/3.11.0-r0/valgrind-3.11.0/memcheck/tests/ppc32/power_ISA2_05.c:56:4:
error: impossible constraint in 'asm'

    __asm__ volatile ("lfiwax %0, 0, %1":"=f" (FRT1):"r"(base));
    ^

Makefile:661: recipe for target 'power_ISA2_05-power_ISA2_05.o' failed

Any ideas? Of interest is that it's always the ptest compilation that breaks.

Ross

#12 lore raw
Quoted 4 lines

This fails to build on real PPC hardware such as p1022ds or mpc8315e-rdb:

Any ideas? Of interest is that it's always the ptest compilation that breaks.

I guess this patch should not have been dropped:

Quoted 6 lines
Quoted 6 lines

remove-ppc-tests-failing-build.patch removed because it no longer applies,
and rebasing it
requires building with special ppc32 machine configurations; qemuppc build
is fine without it.

I can bring it back, but where can I find the latest versions of the commits (there's been additional fixes since my initial patch), so I can base off that?

Alex