[yocto] Compilation error while adding perf tool to the rootfs

Khem Raj raj.khem at gmail.com
Wed Jul 27 18:32:34 PDT 2016


> On Jul 27, 2016, at 2:53 PM, Vijayakumar Badiger <vijayakumarmb at gmail.com> wrote:
> 
> Please let me know if anyone is aware of this.. I am currently blocked, appreciate your help on this.Thanks.
> 
> On Wed, Jul 27, 2016 at 11:49 AM, Vijayakumar Badiger <vijayakumarmb at gmail.com <mailto:vijayakumarmb at gmail.com>> wrote:
> Hello All
> 
> We have a requirement here to set up the perf tool through our Yocto frame work.
> As Perf source comes with linux kernel under tools/perf ,so I added this perf tool to be installed
> as part of my rootfs image.
> 
> But when I build the image I am getting error related to headerfile missing.
> 
> fatal error: asm/preempt.h: No such file or directory

This file is not a user API. So you have to depend on virtual/kernel may be something like inherit kernelsrc
if you are using latest master.

> 
> I checked for this header file I dont have this header file in my kernel arch/arm64/include/asm/
> Please can you let me know how to fix this issue. Thanks.
> 
> Cheers,
> Vijay
> 
> 
> On Tue, Jul 26, 2016 at 7:17 PM, Vijayakumar Badiger <vijayakumarmb at gmail.com <mailto:vijayakumarmb at gmail.com>> wrote:
> Hello All,
> 
> I am trying to integrate perf tool to my custom rootfs image, while bitbaking the perf I am getting below error.
> 
>  fatal error: asm/preempt.h: No such file or directory
> 
> 
> Can you pls let me know how to fix this issue. Thanks.
> 
> Cheers,
> Vijay
> 
> 
> 
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160727/8c881223/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160727/8c881223/attachment.pgp>


More information about the yocto mailing list