[Buildroot] buildroot 2012.11 large file support

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Dec 12 12:47:03 UTC 2012


Dear Thomas Petazzoni,

On Wed, 12 Dec 2012 12:03:41 +0100, Thomas Petazzoni wrote:

> Thing that remains not understood is what change between 4.5 and 4.6
> broke this.

Apparently, what changed is that the gcc/configure.ac has gained a
AC_SYS_LARGEFILE check:

$ grep LARGEFILE toolchain/gcc-4.6.3/gcc/configure.ac 
AC_SYS_LARGEFILE
$ grep LARGEFILE toolchain/gcc-4.5.4/gcc/configure.ac 
$

On gcc >= 4.6, this means that a #define _FILE_OFFSET_BITS 64 is added
to auto-host.h, which breaks the build of crtstuff.c for the target as
uClibc headers warn that _FILE_OFFSET_BITS is set to 64 even though
largefile support is not enabled.

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



More information about the buildroot mailing list