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&#39;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">&lt;<a href="mailto:rleigh@codelibre.net">rleigh@codelibre.net</a>&gt;</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>
&gt; Package: schroot<br>
&gt; Version: 1.4.7-1ubuntu0.1<br>
&gt; Severity: normal<br>
&gt;<br>
&gt; adam@whiteowl:~$ schroot -c natty-i386<br>
&gt; 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&lt;&lt;31)-1 bits.<br>
<br>
So, we don&#39;t currently build with -D_FILE_OFFSET_BITS=64 on any<br>
platform.  However, this shouldn&#39;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=&#39;-D_FILE_OFFSET_BITS=64&#39;,<br>
does this fix the problem?  If it does, I&#39;ll be happy to do this by<br>
default; however, I&#39;d like to find out exactly why it&#39;s failing first.<br>
<br>
<br>
Regards,<br>
Roger<br>
<font color="#888888"><br>
--<br>
  .&#39;&#39;`.  Roger Leigh<br>
 : :&#39; :  Debian GNU/Linux             <a href="http://people.debian.org/~rleigh/" target="_blank">http://people.debian.org/~rleigh/</a><br>
 `. `&#39;   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>