I think the problem is that my chroot file to be loop backed is 10GB, rather than the config file.<div><br></div><div>No custom kernel/glibc.<br><div><br></div><div>I've just tried rebuilding after adding -D_FILE_OFFSET_BITS=64 to DEFS in sbuild/Makefile.am - this does indeed resolve the issue.</div>
<div><br></div><div>Adam</div><div><br><div class="gmail_quote">On 27 March 2011 16:39, Roger Leigh <span dir="ltr"><<a href="mailto:rleigh@codelibre.net">rleigh@codelibre.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Sun, Mar 27, 2011 at 03:50:32PM +0100, Adam Guthrie wrote:<br>
> Package: schroot<br>
> Version: 1.4.7-1ubuntu0.1<br>
> Severity: normal<br>
><br>
> adam@whiteowl:~$ schroot -c natty-i386<br>
> E: /srv/chroot/natty-i386: Failed to stat file: Value too large for defined data type<br>
<br>
This is rather odd. From the stat(2) manual page:<br>
<br>
EOVERFLOW<br>
(stat()) path refers to a file whose size cannot be represented<br>
in the type off_t. This can occur when an application compiled<br>
on a 32-bit platform without -D_FILE_OFFSET_BITS=64 calls stat()<br>
on a file whose size exceeds (2<<31)-1 bits.<br>
<br>
So, we don't currently build with -D_FILE_OFFSET_BITS=64 on any<br>
platform. However, this shouldn't be a problem--the file is nowhere<br>
near the limit, being only a tiny configuration file.<br>
<br>
Has the Ubuntu kernel/libc removed the 32 bit interfaces in favour of<br>
the 64 bit ones, rather than supporting both. Or have you built a<br>
custom kernel/libc without 32 bit interfaces?<br>
<br>
If you were to build schroot setting CFLAGS='-D_FILE_OFFSET_BITS=64',<br>
does this fix the problem? If it does, I'll be happy to do this by<br>
default; however, I'd like to find out exactly why it's failing first.<br>
<br>
<br>
Regards,<br>
Roger<br>
<font color="#888888"><br>
--<br>
.''`. Roger Leigh<br>
: :' : Debian GNU/Linux <a href="http://people.debian.org/~rleigh/" target="_blank">http://people.debian.org/~rleigh/</a><br>
`. `' Printing on GNU/Linux? <a href="http://gutenprint.sourceforge.net/" target="_blank">http://gutenprint.sourceforge.net/</a><br>
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.<br>
</font><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAk2PWjwACgkQVcFcaSW/uEisHgCgqJyQ7uN/ZA4o+gmeT4uonqI2<br>
eFQAn02tFYtPSdUFjG9v0tdfp50Wt5ID<br>
=3GM8<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br></div></div>