perf: flag __SANE_USERSPACE_TYPES__ to include int-ll64.h for powerpc64
PATCH 1/2 perf: flag __SANE_USERSPACE_TYPES__ to include int-ll64.h for powerpc64
From: Ting Liu <[email protected]>
PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h prevents 64-bit userland from seeing this definition, instead defaulting to u64 == long in userspace.
Perf want LL64, flag __SANE_USERSPACE_TYPES__ to get int-ll64.h.
Fix the below issue:
| tests/attr.c:71:4: error: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' [-Werror=format=] | tests/attr.c:80:7: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' [-Werror=format=]
| attr->type, attr->config, fd) < 0) {
| ^--- meta/recipes-kernel/perf/perf.bb | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
meta/recipes-kernel/perf/perf.bb +6 -0
@@ -89,6 +89,12 @@ EXTRA_OEMAKE += "\ 'infodir=${@oe.path.relative(prefix, infodir)}' \ " +# PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h +# prevents 64-bit userland from seeing this definition, instead defaulting +# to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get +# int-ll64.h included. +EXTRA_OEMAKE_append_powerpc64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__' + PARALLEL_MAKE = "" do_compile() {
Signature · 1 line
1.7.3.4
PATCH 2/2 socat: add dependency on tcp-wrappers
From: Ting Liu <[email protected]>
Fix the below issue:
| Computing transaction...error: Can't install | socat-1.7.2.2-r0@ppce500v2: no package provides libwrap.so.0 | | Saving cache... |
--- meta/recipes-connectivity/socat/socat_1.7.2.2.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-connectivity/socat/socat_1.7.2.2.bb +1 -1
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.dest-unreach.org/socat/" SECTION = "console/network" -DEPENDS = "openssl readline" +DEPENDS = "openssl readline tcp-wrappers" LICENSE = "GPL-2.0+-with-OpenSSL-exception" LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760 \
Signature · 1 line
1.7.3.4
Quoted 25 lines · On 10/11/2013 1:11 AM, [email protected] wrote:
From: Ting Liu <[email protected]>
PPC64 uses long long for u64 in the kernel, but powerpc's
asm/types.hprevents 64-bit userland from seeing this definition, instead defaulting to u64 == long in userspace.
Perf want LL64, flag__SANE_USERSPACE_TYPES__to getint-ll64.h.Fix the below issue:
|tests/attr.c:71:4: error: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' [-Werror=format=] |tests/attr.c:80:7: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' [-Werror=format=]| attr->type, attr->config, fd) < 0) { | ^Signed-off-by Ting Liu <[email protected]>--- meta/recipes-kernel/perf/perf.bb | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)meta/recipes-kernel/perf/perf.bb +0
-0
meta/recipes-kernel/perf/perf.bb EXTRA_OEMAKE += "\ · line 96
Quoted 8 lines
meta/recipes-kernel/perf/perf.bb +5
-0@@ -89,6 +89,12 @@ EXTRA_OEMAKE += "\ 'infodir=${@oe.path.relative(prefix, infodir)}' \ " +# PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h +# prevents 64-bit userland from seeing this definition, instead defaulting +# to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get +# int-ll64.h included. +EXTRA_OEMAKE_append_powerpc64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__'
This override perf CFLAGS incorrectly.
kernel commit e3541ec75219819d3235f80125a1a75d798ff6e1 can solve this build issue.
Yang
Quoted 4 lines
meta/recipes-kernel/perf/perf.bb +1
-0+ PARALLEL_MAKE = "" do_compile() {