[Buildroot] AVR32 toolchain build failure

Simon Dawson spdawson at gmail.com
Thu Nov 14 08:53:42 UTC 2013

Hi Thomas,

On 13 November 2013 21:36, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> I've tried to build an AVR32 toolchain with 2013.11-rc1, with the
> following defconfig:
> BR2_avr32=y
> # BR2_PACKAGE_BUSYBOX is not set
> # BR2_TARGET_ROOTFS_TAR is not set
> and the build failed with:
> In file included from /opt/br-avr32-full-2013.11-rc1/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/kernel.h:4,
>                  from /opt/br-avr32-full-2013.11-rc1/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/netlink.h:4,
>                  from /opt/br-avr32-full-2013.11-rc1/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/rtnetlink.h:5,
>                  from libc/inet/netlinkaccess.h:27,
>                  from libc/inet/if_index.c:36:
> /opt/br-avr32-full-2013.11-rc1/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/sysinfo.h:8: error: expected specifier-qualifier-list before '__kernel_long_t'
> make[1]: *** [libc/inet/if_index.os] Error 1
> make[1]: Leaving directory `/opt/toolchain-build/build/uclibc-'

Yes, using your defconfig the build fails for me too. For my avr32
projects, I'm using 3.4.x kernel and headers. The offending commit


appears not to have been back-ported to the 3.4.x series.

> It is apparently reported at:
>   https://lkml.org/lkml/2013/5/18/1
> However, I've also built several other toolchains with the same
> Buildroot version and haven't had any problem.

That's odd. I wonder if your other toolchains are using older kernel headers?

I'm not sure what the right fix is for this. Do you have any suggestions?


More information about the buildroot mailing list