summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-05-11 10:35:12 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-13 13:41:29 +0100
commitfaf16fd051e14942e658f678404578300fa12345 (patch)
treee9f9daa2696826902c486a2af3eecdf364e3dcdb /meta/recipes-kernel
parent268f66fe0e2eddf543fda26c50ef3123c5ef6b1a (diff)
downloadpoky-faf16fd051e14942e658f678404578300fa12345.tar.gz
oprofile: Fix with gcc6
(From OE-Core rev: 660556bee748e2f018760e5756237c54c24d41cd) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/oprofile/oprofile.inc4
-rw-r--r--meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch51
2 files changed, 54 insertions, 1 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile.inc b/meta/recipes-kernel/oprofile/oprofile.inc
index cf3ad435cf..96ef43dc30 100644
--- a/meta/recipes-kernel/oprofile/oprofile.inc
+++ b/meta/recipes-kernel/oprofile/oprofile.inc
@@ -24,7 +24,9 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
24 file://oprofile-cross-compile-tests.patch \ 24 file://oprofile-cross-compile-tests.patch \
25 file://run-ptest \ 25 file://run-ptest \
26 file://root-home-dir.patch \ 26 file://root-home-dir.patch \
27 file://0001-Add-rmb-definition-for-NIOS2-architecture.patch" 27 file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \
28 file://0001-Fix-FTBFS-problem-with-GCC-6.patch \
29"
28 30
29SRC_URI_append_libc-musl = " file://musl.patch" 31SRC_URI_append_libc-musl = " file://musl.patch"
30 32
diff --git a/meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch b/meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch
new file mode 100644
index 0000000000..d372fd527b
--- /dev/null
+++ b/meta/recipes-kernel/oprofile/oprofile/0001-Fix-FTBFS-problem-with-GCC-6.patch
@@ -0,0 +1,51 @@
1From 39d4d46a0bd504ac708ffe72df87bf74cd12ad30 Mon Sep 17 00:00:00 2001
2From: William Cohen <wcohen@redhat.com>
3Date: Fri, 5 Feb 2016 17:30:19 -0500
4Subject: [PATCH] Fix FTBFS problem with GCC-6
5
6GCC-6 is pickier about some of the type conversions causing the Fedora
724 mass rebuild the build of oprofile failed with:
8
9make[3]: Entering directory '/builddir/build/BUILD/oprofile-1.1.0/libutil++'
10g++ -DHAVE_CONFIG_H -I. -I.. -I ../libutil -I ../libop -I ../libpp -W -Wall -fno-common -ftemplate-depth-50 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o op_bfd.o op_bfd.cpp
11op_bfd.cpp: In member function 'void op_bfd::get_symbol_range(symbol_index_t, long long unsigned int&, long long unsigned int&) const':
12op_bfd.cpp:538:47: error: cannot convert 'std::ostream {aka std::basic_ostream<char>}' to 'const bool' in initialization
13 bool const verbose = cverb << (vbfd & vlevel1);
14 ^
15op_bfd.cpp:546:7: error: in argument to unary !
16 if (!verbose)
17 ^~~~~~~
18
19Avoid the intermediate bool type to make GCC-6 happy.
20
21Signed-off-by: William Cohen <wcohen@redhat.com>
22---
23Upstream-Status: Backport
24
25 libutil++/op_bfd.cpp | 4 +---
26 1 file changed, 1 insertion(+), 3 deletions(-)
27
28diff --git a/libutil++/op_bfd.cpp b/libutil++/op_bfd.cpp
29index 389c920..f2eb42b 100644
30--- a/libutil++/op_bfd.cpp
31+++ b/libutil++/op_bfd.cpp
32@@ -535,15 +535,13 @@ void op_bfd::get_symbol_range(symbol_index_t sym_idx,
33 {
34 op_bfd_symbol const & sym = syms[sym_idx];
35
36- bool const verbose = cverb << (vbfd & vlevel1);
37-
38 if (anon_obj)
39 start = sym.vma();
40 else
41 start = sym.filepos();
42 end = start + sym.size();
43
44- if (!verbose)
45+ if (!(cverb << (vbfd & vlevel1)))
46 return;
47
48 io_state state(cverb << (vbfd & vlevel1));
49--
501.9.1
51