All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] elfutils and the perf userspace tool
@ 2012-12-03 22:20 Bogdan Radulescu
  2012-12-04  5:33 ` Bryan Hundven
  0 siblings, 1 reply; 14+ messages in thread
From: Bogdan Radulescu @ 2012-12-03 22:20 UTC (permalink / raw)
  To: buildroot



Hello everybody,

I am using buildroot for generating a distro for ARM. I am able to add additional packages to buildroot or to use arm-linux-gcc directly to compile simple C programs.

Still I haven't yet understood how to cross compile the perf userspace tool and I think it would be a very nice addition to buildroot.

The perf tool requires elfutils and the kernel sources it comes with.

My first problem is that elfutils will not successfully compile, as you can see here:
http://pastie.org/pastes/5474687/text

My elfutils.mk file looks like this http://pastie.org/pastes/5474697/text

Please tell me how do I move further from this.

Thanks,
Bogdan

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-03 22:20 [Buildroot] elfutils and the perf userspace tool Bogdan Radulescu
@ 2012-12-04  5:33 ` Bryan Hundven
  2012-12-04  8:13   ` Bogdan Radulescu
  0 siblings, 1 reply; 14+ messages in thread
From: Bryan Hundven @ 2012-12-04  5:33 UTC (permalink / raw)
  To: buildroot

On Mon, Dec 3, 2012 at 2:20 PM, Bogdan Radulescu
<bogdan_radulescu99@yahoo.com> wrote:
>
>
> Hello everybody,
>
> I am using buildroot for generating a distro for ARM. I am able to add additional packages to buildroot or to use arm-linux-gcc directly to compile simple C programs.
>
> Still I haven't yet understood how to cross compile the perf userspace tool and I think it would be a very nice addition to buildroot.
>
> The perf tool requires elfutils and the kernel sources it comes with.
>
> My first problem is that elfutils will not successfully compile, as you can see here:
> http://pastie.org/pastes/5474687/text
>
> My elfutils.mk file looks like this http://pastie.org/pastes/5474697/text
>
> Please tell me how do I move further from this.
>
> Thanks,
> Bogdan
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

I forgot to cc buildroot at ... eh.

Original response:

I think you need the argp-standalone, as I don't think uclibc provides libargp.

-Bryan

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-04  5:33 ` Bryan Hundven
@ 2012-12-04  8:13   ` Bogdan Radulescu
  2012-12-04 19:21     ` Stefan Fröberg
  0 siblings, 1 reply; 14+ messages in thread
From: Bogdan Radulescu @ 2012-12-04  8:13 UTC (permalink / raw)
  To: buildroot





----- Original Message -----
From: Bryan Hundven <bryanhundven@gmail.com>
To: Bogdan Radulescu <bogdan_radulescu99@yahoo.com>
Cc: "buildroot at busybox.net" <buildroot@busybox.net>
Sent: Tuesday, December 4, 2012 5:33 AM
Subject: Re: [Buildroot] elfutils and the perf userspace tool

On Mon, Dec 3, 2012 at 2:20 PM, Bogdan Radulescu
<bogdan_radulescu99@yahoo.com> wrote:
>
>
> Hello everybody,
>
> I am using buildroot for generating a distro for ARM. I am able to add additional packages to buildroot or to use arm-linux-gcc directly to compile simple C programs.
>
> Still I haven't yet understood how to cross compile the perf userspace tool and I think it would be a very nice addition to buildroot.
>
> The perf tool requires elfutils and the kernel sources it comes with.
>
> My first problem is that elfutils will not successfully compile, as you can see here:
> http://pastie.org/pastes/5474687/text
>
> My elfutils.mk file looks like this http://pastie.org/pastes/5474697/text
>
> Please tell me how do I move further from this.
>
> Thanks,
> Bogdan
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

I forgot to cc buildroot at ... eh.

Original response:

I think you need the argp-standalone, as I don't think uclibc provides libargp.

-Bryan



Hi Bryan,

As you can see in the elfutils.mk file I already added argp-standalone as a dependency. It compiles OK.
I am also linking against it, still something goes wrong at some point.

Bogdan

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-04  8:13   ` Bogdan Radulescu
@ 2012-12-04 19:21     ` Stefan Fröberg
  2012-12-04 19:42       ` Thomas Petazzoni
  0 siblings, 1 reply; 14+ messages in thread
From: Stefan Fröberg @ 2012-12-04 19:21 UTC (permalink / raw)
  To: buildroot

Hi Bogdan

4.12.2012 10:13, Bogdan Radulescu kirjoitti:
>
>
>
> ----- Original Message -----
> From: Bryan Hundven <bryanhundven@gmail.com>
> To: Bogdan Radulescu <bogdan_radulescu99@yahoo.com>
> Cc: "buildroot at busybox.net" <buildroot@busybox.net>
> Sent: Tuesday, December 4, 2012 5:33 AM
> Subject: Re: [Buildroot] elfutils and the perf userspace tool
>
> On Mon, Dec 3, 2012 at 2:20 PM, Bogdan Radulescu
> <bogdan_radulescu99@yahoo.com> wrote:
>>
>> Hello everybody,
>>
>> I am using buildroot for generating a distro for ARM. I am able to add additional packages to buildroot or to use arm-linux-gcc directly to compile simple C programs.
>>
>> Still I haven't yet understood how to cross compile the perf userspace tool and I think it would be a very nice addition to buildroot.
>>
>> The perf tool requires elfutils and the kernel sources it comes with.
>>
>> My first problem is that elfutils will not successfully compile, as you can see here:
>> http://pastie.org/pastes/5474687/text
>>
>> My elfutils.mk file looks like this http://pastie.org/pastes/5474697/text
>>
>> Please tell me how do I move further from this.
>>
>> Thanks,
>> Bogdan
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
> I forgot to cc buildroot at ... eh.
>
> Original response:
>
> I think you need the argp-standalone, as I don't think uclibc provides libargp.
>
> -Bryan
>
>
>
> Hi Bryan,
>
> As you can see in the elfutils.mk file I already added argp-standalone as a dependency. It compiles OK.
> I am also linking against it, still something goes wrong at some point.
>
> Bogdan
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

It's not enough to give -largp in LDFLAGS.

elfutils doesn't give a damn about LDFLAGS and goes it own way.

What you need is to add -largp explicitly into a line that links libdw

You could try saving the following and also remember to add
ELFUTILS_AUTORECONF = YES
line to your elfutils.mk

diff -Naur elfutils-0.155.org/libdw/Makefile.am
elfutils-0.155/libdw/Makefile.am
--- elfutils-0.155.org/libdw/Makefile.am    2012-12-04
21:02:32.309083801 +0200
+++ elfutils-0.155/libdw/Makefile.am    2012-12-04 21:06:41.205098676 +0200
@@ -111,7 +111,7 @@
         -Wl,--enable-new-dtags,-rpath,$(pkglibdir) \
         -Wl,--version-script,$<,--no-undefined \
         -Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\
-        -ldl $(zip_LIBS)
+        -ldl $(zip_LIBS) -largp
     if readelf -d $@ | fgrep -q TEXTREL; then exit 1; fi
     ln -fs $@ $@.$(VERSION)

There might other places too where you have to add that -largp

You probably(if you are using uClibc) need to explicitly add also -lintl
to the same line with -largp.
At least that was what I had to do to make it compile even tought I had
gived configure script the option "--disable-nls".

Also you will need to probably (again if using uClibc) have fts.h with
your uClibc-installation
and sometime later you will probably hit into a obstack missing problem.
That can only be solved by including gnulib stuff into your source.

And there was some other (uClibc related) stuff that needed patching too
that I can't now
remember

All in all, elfutils belongs sadly to the software category:

 "Im doing things my own way, Im using non-portable glibc stuff and
I don't give a crab about portability. Nah-nah-naaa"

:-(

It's hard but doeable. And the end result might be that only the libelf
part of elfutils will work
(I only needed that so it did not matter in my case) and not the programs.

Regards
Stefan

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-04 19:21     ` Stefan Fröberg
@ 2012-12-04 19:42       ` Thomas Petazzoni
  2012-12-04 22:23         ` Stefan Fröberg
  2012-12-05 15:07         ` Bogdan Radulescu
  0 siblings, 2 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2012-12-04 19:42 UTC (permalink / raw)
  To: buildroot

Dear Stefan Fr?berg,

On Tue, 04 Dec 2012 21:21:00 +0200, Stefan Fr?berg wrote:
> And there was some other (uClibc related) stuff that needed patching
> too that I can't now
> remember
> 
> All in all, elfutils belongs sadly to the software category:
> 
>  "Im doing things my own way, Im using non-portable glibc stuff and
> I don't give a crab about portability. Nah-nah-naaa"
> 
> :-(

Don't reinvent the wheel:

  http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils/uclibc-support.patch

And possibly other patches in:

 http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-04 19:42       ` Thomas Petazzoni
@ 2012-12-04 22:23         ` Stefan Fröberg
  2012-12-04 22:29           ` Stefan Fröberg
  2012-12-04 22:34           ` Thomas Petazzoni
  2012-12-05 15:07         ` Bogdan Radulescu
  1 sibling, 2 replies; 14+ messages in thread
From: Stefan Fröberg @ 2012-12-04 22:23 UTC (permalink / raw)
  To: buildroot

4.12.2012 21:42, Thomas Petazzoni kirjoitti:
> Dear Stefan Fr?berg,
>
> On Tue, 04 Dec 2012 21:21:00 +0200, Stefan Fr?berg wrote:
>> And there was some other (uClibc related) stuff that needed patching
>> too that I can't now
>> remember
>>
>> All in all, elfutils belongs sadly to the software category:
>>
>>  "Im doing things my own way, Im using non-portable glibc stuff and
>> I don't give a crab about portability. Nah-nah-naaa"
>>
>> :-(
> Don't reinvent the wheel:
>
>   http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils/uclibc-support.patch
>
> And possibly other patches in:
>
>  http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils
>
> Thomas

So why those are not in buildroot yet ?

Regards
Stefan

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-04 22:23         ` Stefan Fröberg
@ 2012-12-04 22:29           ` Stefan Fröberg
  2012-12-04 22:34           ` Thomas Petazzoni
  1 sibling, 0 replies; 14+ messages in thread
From: Stefan Fröberg @ 2012-12-04 22:29 UTC (permalink / raw)
  To: buildroot

5.12.2012 0:23, Stefan Fr?berg kirjoitti:
> 4.12.2012 21:42, Thomas Petazzoni kirjoitti:
>> Dear Stefan Fr?berg,
>>
>> On Tue, 04 Dec 2012 21:21:00 +0200, Stefan Fr?berg wrote:
>>> And there was some other (uClibc related) stuff that needed patching
>>> too that I can't now
>>> remember
>>>
>>> All in all, elfutils belongs sadly to the software category:
>>>
>>>  "Im doing things my own way, Im using non-portable glibc stuff and
>>> I don't give a crab about portability. Nah-nah-naaa"
>>>
>>> :-(
>> Don't reinvent the wheel:
>>
>>   http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils/uclibc-support.patch
>>
>> And possibly other patches in:
>>
>>  http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils
>>
>> Thomas
> So why those are not in buildroot yet ?
And more precisely, what's that

|-luargp in that 
|
|http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils/uclibc-support.patch

?

I tought there was only libargp ?
|


> Regards
> Stefan
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20121205/428e68d7/attachment.html>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-04 22:23         ` Stefan Fröberg
  2012-12-04 22:29           ` Stefan Fröberg
@ 2012-12-04 22:34           ` Thomas Petazzoni
  2012-12-04 22:51             ` Stefan Fröberg
  1 sibling, 1 reply; 14+ messages in thread
From: Thomas Petazzoni @ 2012-12-04 22:34 UTC (permalink / raw)
  To: buildroot

Dear Stefan Fr?berg,

On Wed, 05 Dec 2012 00:23:07 +0200, Stefan Fr?berg wrote:

> > Don't reinvent the wheel:
> >
> >   http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils/uclibc-support.patch
> >
> > And possibly other patches in:
> >
> >  http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils
> >
> > Thomas
> 
> So why those are not in buildroot yet ?

Because you forgot to submit a patch? :-)

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-04 22:34           ` Thomas Petazzoni
@ 2012-12-04 22:51             ` Stefan Fröberg
  2012-12-04 23:00               ` Stefan Fröberg
  0 siblings, 1 reply; 14+ messages in thread
From: Stefan Fröberg @ 2012-12-04 22:51 UTC (permalink / raw)
  To: buildroot

5.12.2012 0:34, Thomas Petazzoni kirjoitti:
> Dear Stefan Fr?berg,
>
> On Wed, 05 Dec 2012 00:23:07 +0200, Stefan Fr?berg wrote:
>
>>> Don't reinvent the wheel:
>>>
>>>   http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils/uclibc-support.patch
>>>
>>> And possibly other patches in:
>>>
>>>  http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils
>>>
>>> Thomas
>> So why those are not in buildroot yet ?
> Because you forgot to submit a patch? :-)
>
> Thomas
Nah, I have too much work while testing working of latest firefox 16.0.1
for buildroot right now and trying
to push patches upstream.

And I let all the honor for that elfutils work to go for Boldan.

But I did some quick checking of those patches and all those are for
older than 0.155 that Boldan is trying to compile
and that uclibc-support.patch needs some tuning to be applied cleanly
for 0.155 version and there is no mention
of obstack() function problem being fixed (if using uClibc) in any of them.

Maybe it can be fixed without using gnulib (witch provides obstack
implementation similar to glibc) and using some
standard comforming function(s) but I could not find any.

Regards
Stefan

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-04 22:51             ` Stefan Fröberg
@ 2012-12-04 23:00               ` Stefan Fröberg
  0 siblings, 0 replies; 14+ messages in thread
From: Stefan Fröberg @ 2012-12-04 23:00 UTC (permalink / raw)
  To: buildroot

5.12.2012 0:51, Stefan Fr?berg kirjoitti:
> 5.12.2012 0:34, Thomas Petazzoni kirjoitti:
>> Dear Stefan Fr?berg,
>>
>> On Wed, 05 Dec 2012 00:23:07 +0200, Stefan Fr?berg wrote:
>>
>>>> Don't reinvent the wheel:
>>>>
>>>>   http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils/uclibc-support.patch
>>>>
>>>> And possibly other patches in:
>>>>
>>>>  http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils
>>>>
>>>> Thomas
>>> So why those are not in buildroot yet ?
>> Because you forgot to submit a patch? :-)
>>
>> Thomas
> Nah, I have too much work while testing working of latest firefox 16.0.1
> for buildroot right now and trying
> to push patches upstream.
>
> And I let all the honor for that elfutils work to go for Boldan.
>
> But I did some quick checking of those patches and all those are for
> older than 0.155 that Boldan is trying to compile
> and that uclibc-support.patch needs some tuning to be applied cleanly
> for 0.155 version and there is no mention
> of obstack() function problem being fixed (if using uClibc) in any of them.
>
> Maybe it can be fixed without using gnulib (witch provides obstack
> implementation similar to glibc) and using some
> standard comforming function(s) but I could not find any.
>
> Regards
> Stefan
>
>
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

And now I just noticed this line from that uclibc-support.patch:

|"Upstream-Status: Inappropriate [uclibc specific]"

How nice. Like I said earlier. The makers of this elfutils software are 
really lifting the middle finger in terms of portability.
:P

I wonder if Ulrich Drepper was (still is?) in head of this .........






|




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20121205/5759b72c/attachment.html>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-04 19:42       ` Thomas Petazzoni
  2012-12-04 22:23         ` Stefan Fröberg
@ 2012-12-05 15:07         ` Bogdan Radulescu
  2012-12-05 15:31           ` Thomas Petazzoni
  1 sibling, 1 reply; 14+ messages in thread
From: Bogdan Radulescu @ 2012-12-05 15:07 UTC (permalink / raw)
  To: buildroot

Hello,




----- Original Message -----
> From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> To: Stefan Fr?berg <stefan.froberg@petroprogram.com>
> Cc: Bogdan Radulescu <bogdan_radulescu99@yahoo.com>; buildroot at busybox.net
> Sent: Tuesday, December 4, 2012 8:42 PM
> Subject: Re: [Buildroot] elfutils and the perf userspace tool
> 
> Dear Stefan Fr?berg,
> 
> On Tue, 04 Dec 2012 21:21:00 +0200, Stefan Fr?berg wrote:
>>  And there was some other (uClibc related) stuff that needed patching
>>  too that I can't now
>>  remember
>> 
>>  All in all, elfutils belongs sadly to the software category:
>> 
>> ? "Im doing things my own way, Im using non-portable glibc stuff and
>>  I don't give a crab about portability. Nah-nah-naaa"
>> 
>>  :-(
> 
> Don't reinvent the wheel:
> 
> ? 
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils/uclibc-support.patch
> 
> And possibly other patches in:
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/elfutils/elfutils
> 
> Thomas
> -- 
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
>

First thanks for the reply.

I had a look at the yoctoproject patches and they are a bit confusing to me. There are way to many patches. Some of them fix problems I don't have and are very old.
I decided to go with Stefans suggestions and I could go further, but now I am stuck again. Yes, I am using uClibc.
Do you guys have a suggestion for this: http://pastie.org/pastes/5484094/text

I would really like to have perf in buildroot and this thing is in the way.

Regards,
Bogdan

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-05 15:07         ` Bogdan Radulescu
@ 2012-12-05 15:31           ` Thomas Petazzoni
  2012-12-06 16:10             ` Bogdan Radulescu
  0 siblings, 1 reply; 14+ messages in thread
From: Thomas Petazzoni @ 2012-12-05 15:31 UTC (permalink / raw)
  To: buildroot

Dear Bogdan Radulescu,

On Wed, 5 Dec 2012 07:07:53 -0800 (PST), Bogdan Radulescu wrote:
> I had a look at the yoctoproject patches and they are a bit confusing
> to me. There are way to many patches. Some of them fix problems I
> don't have and are very old. I decided to go with Stefans suggestions
> and I could go further, but now I am stuck again. Yes, I am using
> uClibc. Do you guys have a suggestion for this:
> http://pastie.org/pastes/5484094/text
> 
> I would really like to have perf in buildroot and this thing is in
> the way.

Did you notice that you can build perf without libelf, by passing
NO_LIBELF=1 to perf's Makefile?

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-05 15:31           ` Thomas Petazzoni
@ 2012-12-06 16:10             ` Bogdan Radulescu
  2012-12-06 16:11               ` Thomas Petazzoni
  0 siblings, 1 reply; 14+ messages in thread
From: Bogdan Radulescu @ 2012-12-06 16:10 UTC (permalink / raw)
  To: buildroot

Hello Thomas,



----- Original Message -----
> From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> To: Bogdan Radulescu <bogdan_radulescu99@yahoo.com>
> Cc: Stefan Fr?berg <stefan.froberg@petroprogram.com>; "buildroot at busybox.net" <buildroot@busybox.net>
> Sent: Wednesday, December 5, 2012 4:31 PM
> Subject: Re: [Buildroot] elfutils and the perf userspace tool
> 
> Dear Bogdan Radulescu,
> 
> On Wed, 5 Dec 2012 07:07:53 -0800 (PST), Bogdan Radulescu wrote:
>>  I had a look at the yoctoproject patches and they are a bit confusing
>>  to me. There are way to many patches. Some of them fix problems I
>>  don't have and are very old. I decided to go with Stefans suggestions
>>  and I could go further, but now I am stuck again. Yes, I am using
>>  uClibc. Do you guys have a suggestion for this:
>>  http://pastie.org/pastes/5484094/text
>> 
>>  I would really like to have perf in buildroot and this thing is in
>>  the way.
> 
> Did you notice that you can build perf without libelf, by passing
> NO_LIBELF=1 to perf's Makefile?
> 
> Thomas
> -- 
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
>

I noticed now that this is in the newer versions. I tried to build it without libelf even though it will be pretty crippled but still I didn't have any luck.
http://pastie.org/pastes/5489305/text

I tried with using 3.7-rc3. In 3.4.22 isn't patched for building without libelf.
On which version did you manage to build it for ARM?

Bogdan

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [Buildroot] elfutils and the perf userspace tool
  2012-12-06 16:10             ` Bogdan Radulescu
@ 2012-12-06 16:11               ` Thomas Petazzoni
  0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2012-12-06 16:11 UTC (permalink / raw)
  To: buildroot

Dear Bogdan Radulescu,

On Thu, 6 Dec 2012 08:10:12 -0800 (PST), Bogdan Radulescu wrote:

> I noticed now that this is in the newer versions. I tried to build it
> without libelf even though it will be pretty crippled but still I
> didn't have any luck. http://pastie.org/pastes/5489305/text
> 
> I tried with using 3.7-rc3. In 3.4.22 isn't patched for building
> without libelf. On which version did you manage to build it for ARM?

I never built perf for ARM so far, so I can't really help,
unfortunately.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-12-06 16:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-03 22:20 [Buildroot] elfutils and the perf userspace tool Bogdan Radulescu
2012-12-04  5:33 ` Bryan Hundven
2012-12-04  8:13   ` Bogdan Radulescu
2012-12-04 19:21     ` Stefan Fröberg
2012-12-04 19:42       ` Thomas Petazzoni
2012-12-04 22:23         ` Stefan Fröberg
2012-12-04 22:29           ` Stefan Fröberg
2012-12-04 22:34           ` Thomas Petazzoni
2012-12-04 22:51             ` Stefan Fröberg
2012-12-04 23:00               ` Stefan Fröberg
2012-12-05 15:07         ` Bogdan Radulescu
2012-12-05 15:31           ` Thomas Petazzoni
2012-12-06 16:10             ` Bogdan Radulescu
2012-12-06 16:11               ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.