From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from exprod5og104.obsmtp.com (exprod5og104.obsmtp.com [64.18.0.178]) by mx1.pokylinux.org (Postfix) with ESMTP id 3ECB64C803E4 for ; Fri, 29 Jul 2011 08:57:51 -0500 (CDT) Received: from Alpmlip04.e2k.ad.ge.com ([165.156.5.1]) (using TLSv1) by exprod5ob104.postini.com ([64.18.4.12]) with SMTP ID DSNKTjK8XoVQMbSK+dpaTgKL2ODCMn+K4IDb@postini.com; Fri, 29 Jul 2011 06:57:51 PDT Received: from unknown (HELO cinmlip01.e2k.ad.ge.com) ([3.159.213.48]) by Alpmlip04.e2k.ad.ge.com with ESMTP; 29 Jul 2011 09:57:50 -0400 Received: from es-641xt3j.amer.consind.ge.com (HELO [3.138.54.93]) ([3.138.54.93]) by cinmlip01.e2k.ad.ge.com with ESMTP; 29 Jul 2011 09:57:49 -0400 Message-ID: <4E32BC5C.7070305@ge.com> Date: Fri, 29 Jul 2011 14:57:48 +0100 From: Malcolm Crossley User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: yocto@yoctoproject.org References: <20110729072359.GA5109@localhost.localdomain> <20110729100525.GA26451@localhost.localdomain> <4E32B1B6.4010608@windriver.com> In-Reply-To: <4E32B1B6.4010608@windriver.com> Subject: Re: crownbay-noemgd poky-image-minimal fails to build X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2011 13:57:51 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 29/07/2011 14:12, Bruce Ashfield wrote: > On 07/29/11 06:05, Andre Haupt wrote: >> On Fri, Jul 29, 2011 at 09:23:59AM +0200, Andre Haupt wrote: >>> Hi all, >>> >>> I am trying to build a poky bernard image for crownbay-noemgd. >>> For this i checked out the bernard branch of both poky and meta-intel >>> from git.yoctoproject.org. >>> >>> Bitbake fails during the kernels compile_perf task complaining that >>> it can not >>> find libdw.h and bfd.h and that using /usr/local/include as include >>> location is unsafe for cross compilation (full log attached). >>> >>> What do i miss here? >> >> I did work around this with >> >> diff --git a/meta/recipes-kernel/linux/linux-yocto-stable_git.bb >> b/meta/recipes- >> index 3c1e669..85caa92 100644 >> --- a/meta/recipes-kernel/linux/linux-yocto-stable_git.bb >> +++ b/meta/recipes-kernel/linux/linux-yocto-stable_git.bb >> @@ -42,4 +42,4 @@ KERNEL_FEATURES=features/netfilter >> addtask kernel_link_vmlinux after do_compile before do_install >> addtask validate_branches before do_patch after do_kernel_checkout >> >> -require linux-tools.inc >> +#require linux-tools.inc >> >> >> not sure that this is the right thing to do though. > > It's an acceptable work around to keep you building on your > local machine, assuming that you don't need perf. But the > linux-yocto recipes always want to provide perf, and hence > have that include. > > I'm trying to dust off my memory here. I know that this has > been seen, and I also know that this built fine in the bernard > release. > > The first part of the issue is the: > > Makefile:508: No libdw.h found or old libdw.h found, disables dwarf > support. Please install elfutils-devel/elfutils-dev > > We may have a missing host dependency in the checks. Have you > tried installing the relevant package for F13 ? > > As for the second, there's a patch in the 2.6.34 kernel tree > that is dealing with it: > > http://git.pokylinux.org/cgit/cgit.cgi/linux-yocto-2.6.34/commit/?h=standard&id=72ca49ab08b8eb475cec82a10049503602325791 > > > It sounds like there may be a SRCREV problem for the board that > isn't picking up that change. Can you confirm that this commit > is in your board branch ? You can check in your build directory > for linux. I have found that stable branch 2.6.34 contains a bug when trying to build the perf tools. I have a patch but I've not been able to upstream it yet, I've copy pasted it inline here, hopefully it doesn't wrap too badly: Author: Malcolm Crossley Date: Fri Jul 22 22:44:53 2011 +0100 Kernel version 2.6.34.6. has a bug with regards to it's perf tool source files. This patch adds a missing include directive. Signed-off-by: Malcolm Crossley diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 6fb379b..3c497c5 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h @@ -73,6 +73,7 @@ #include #include #include +#include #include "../../include/linux/perf_event.h" #include "util/types.h" Regards Malcolm > > Bruce > >> >> cheers, >> >> Andre >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/yocto > > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto