[Buildroot] [PATCH] perf: libelf is required to compile perf

Thomas De Schampheleire patrickdepinguin at gmail.com
Tue Nov 5 14:53:12 UTC 2013


Hi Andi,

On Tue, Nov 5, 2013 at 3:06 PM, Andi Shyti <andi at etezian.org> wrote:
> Point this out in the related Config.in in the perf directory.
>
> Mute the following error by selecting BR2_PACKAGE_LIBELF:
>
> The perf tool in your kernel cannot be built without libelf.
> Either upgrade your kernel to >= 3.7, or enable the elfutils package.
> make: *** [/home/andi/repo/buildroot-snowball/output/build/perf-stable-linux-ux500-3.4/.stamp_built] Error 1
>
> Signed-off-by: Andi Shyti <andi at etezian.org>
> ---
>  package/perf/Config.in | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/package/perf/Config.in b/package/perf/Config.in
> index 88dce93..4b651b3 100644
> --- a/package/perf/Config.in
> +++ b/package/perf/Config.in
> @@ -2,6 +2,7 @@ config BR2_PACKAGE_PERF
>         bool "perf"
>         depends on BR2_LINUX_KERNEL
>         depends on BR2_LARGEFILE
> +       depends on BR2_PACKAGE_LIBELF
>         help
>           perf (sometimes "Perf Events" or perf tools, originally
>           "Performance Counters for Linux") - is a performance

This doesn't look right. As the error indicates, if your kernel is
recent enough you don't need libelf.
Have you tried enabling libelf manually?

Best regards,
Thomas

> --
> 1.8.4.2
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot



More information about the buildroot mailing list