[Buildroot] [PATCH 1/8] libunwind: fix C library dependency

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Jan 25 22:43:37 UTC 2016


Romain,

On Mon, 25 Jan 2016 23:33:02 +0100, Romain Naour wrote:

> > I don't get this sentence however. libunwind should build with
> > uClibc-ng on the architectures listed in
> > BR2_PACKAGE_LIBUNWIND_ARCH_SUPPORTS, no?
> 
> Ha, sorry (missing some context).
> I build tested libunwind with uClibc-snapshot on powerpc with the master branch
> to verify that it doesn't build.
> Then, I switched to your series with a small modification to enable powerpc and
> verify that doesn't build as for uClibc-snapshot on the same architecture.
> 
> The build error look like:
> In file included from ../include/libunwind.h:15:0,
>                  from ppc32/Lglobal.c:2:
> ../include/libunwind-ppc32.h:182:9: erreur: unknown type name ‘ucontext_t’
>  typedef ucontext_t unw_tdep_context_t;
> 
> So your BR2_PACKAGE_LIBUNWIND_ARCH_SUPPORTS setting is correct.

Ok, thanks, understood!

In fact my BR2_PACKAGE_LIBUNWIND_ARCH_SUPPORTS setting for uClibc is
simply based on:

$ find . | grep setcontext
./libc/sysdeps/linux/i386/setcontext.S
./libc/sysdeps/linux/arm/setcontext.S
./libc/sysdeps/linux/x86_64/setcontext.S
./libc/sysdeps/linux/mips/setcontext.S

In the uclibc-ng sources. I've done some build testing of course, but
clearly not all the combinations of architectures / C libraries.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list