[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] tests/Gperf-trace.c does not compile on uCLibC

From: Sven Neumann
Subject: Re: [Libunwind-devel] tests/Gperf-trace.c does not compile on uCLibC
Date: Fri, 19 Aug 2011 10:16:51 +0200

On Thu, 2011-08-18 at 21:20 -0700, Arun Sharma wrote:
> On Wed, Aug 17, 2011 at 7:43 AM, Sven Neumann <address@hidden> wrote:
> >> backtrace(3) is only needed for tests, as you noted. libunwind already 
> >> allows
> >> the backtrace(3) to come from libexecinfo, this was done for FreeBSD
> >> that also does not implement backtrace in libc. Requiring a library
> >> for testing is reasonable, IMO.
> >
> > Then perhaps the easiest solution is to add a configure option to skip
> > all tests. That would allow building on platforms where the tests don't
> > compile easily.
> Is this the only build problem you had in the "tests" subdir or were
> there other breakages with your libc?

As far as I can see that was the only problem we had for the ARM
platform. And I was able to solve it by enabling backtrace support in
uCLibC. Still I would rather not enable backtrace support on the target
only to be able to compile a test program that is never going to be run.

> Does the patch below work for you?

No, I also had to make the build of 'test-varargs' depend on
HAVE_BACKTRACE. I'll attach the updated patch.

Thanks, Sven

Attachment: libunwind-002-check-for-backtrace-support.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]