[Buildroot] buildroot 2012.11 large file support
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Dec 12 11:03:41 UTC 2012
Dear Thomas Petazzoni,
On Wed, 12 Dec 2012 12:01:59 +0100, Thomas Petazzoni wrote:
>
> On Wed, 12 Dec 2012 11:16:28 +0100, Thomas Petazzoni wrote:
>
> > I haven't looked into them for now.
>
> Ok, a quick investigation shows that crtstuff.c includes auto-host.h,
> which contains _FILE_OFFSET_BITS. crtstuff.c is built for the target,
> and therefore should normally not include auto-host.h, as noted by the
> following comment:
>
> ==
> /* FIXME: Including auto-host is incorrect, but until we have
> identified the set of defines that need to go into auto-target.h,
> this will have to do. */
> #include "auto-host.h"
> ==
(sorry for not finishing the e-mail)
And this is causing problems for cross-compilation. For example:
http://www.archivum.info/gcc-patches@gcc.gnu.org/2005-11/00293/Patch-to-crtstuff.c-to-undefine-some-macros-after-auto-host.h.html.
According to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21481 it is
quite clear that crtstuff.c should not include auto-host.h, but
apparently, it is not that simple.
Thing that remains not understood is what change between 4.5 and 4.6
broke this.
Best regards,
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