On 2008-08-07 13:49:35 +0200, Vincent Lefevre wrote:
> In fact, "-o cache=no". The problem is not always reproducible, whether
> it is used or not. It seems that this depends on the old contents of
> the file.
> 
> If I start from an empty configure file, then the file always remains
> empty (and at the same date) after running autoconf. If there's no
> configure file when running autoconf, a correct file is created. When
> the file had been truncated to 860160 bytes, the old file had 861098
> bytes.
> 
> Also, the problem occurs when using "-o workaround=all" too.

Please forget these tests. Under some conditions, configure is not
regenerated by autoreconf (I may have done something wrong when
copying files across machines).

I've done a strace on the "truncated case":

vin:.../ay/software/mpfr> ll configure
-rwxr-xr-x 1 1000 1000 861098 2008-08-07 14:07:44 configure*
vin:.../ay/software/mpfr> strace -f -o ~/strace.out autoconf
vin:.../ay/software/mpfr> ll configure
-rwxr-xr-x 1 1000 1000 860160 2008-08-07 14:10:57 configure*

[...]
5537  open("configure.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0777) = 4
5537  ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff87fbb4e0) = -1 ENOTTY 
(Inappropriate ioctl for device)
5537  lseek(4, 0, SEEK_CUR)             = 0
5537  fstat(4, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
5537  fcntl(4, F_SETFD, FD_CLOEXEC)     = 0
5537  open("autom4te.cache/output.1", O_RDONLY) = 5
5537  ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff87fbb4d0) = -1 ENOTTY 
(Inappropriate ioctl for device)
5537  lseek(5, 0, SEEK_CUR)             = 0
5537  fstat(5, {st_mode=S_IFREG|0644, st_size=862517, ...}) = 0
5537  fcntl(5, F_SETFD, FD_CLOEXEC)     = 0
5537  read(5, "@%:@! /bin/[EMAIL PROTECTED]:@ Guess values f"..., 4096) = 4096
5537  read(5, "2>&1 && $as_unset $as_var\n  fi\ndo"..., 4096) = 4096
5537  write(4, "#! /bin/sh\n# Guess values for sys"..., 4096) = 4096
5537  read(5, "    done\n\n      if test \"x$CONFIG"..., 4096) = 4096
5537  write(4, "&1 &&\n   test \"X`expr 00001 : '.*"..., 4096) = 4096
[...]
5537  read(5, "ms to ignore the --datarootdir se"..., 4096) = 4096
5537  write(4, "ase $as_dir in #(\n      *\\'*) as_"..., 4096) = 4096
5537  read(5, "{\n\t    s//\\1/\n\t    q\n\t  }\n\t  /^X\\"..., 4096) = 2357
5537  write(4, "cho \"$as_me: WARNING: $ac_file co"..., 4096) = 4096
5537  read(5, ""..., 4096)              = 0
5537  rename("configure.tmp", "configure") = -1 EPERM (Operation not permitted)
5537  stat("configure", {st_mode=S_IFREG|0755, st_size=861098, ...}) = 0
5537  stat("configure", {st_mode=S_IFREG|0755, st_size=861098, ...}) = 0
5537  stat("configure.tmp", {st_mode=S_IFREG|0755, st_size=860160, ...}) = 0
5537  rename("configure.tmp", "configure") = -1 EPERM (Operation not permitted)
5537  stat("configure.tmp", {st_mode=S_IFREG|0755, st_size=860160, ...}) = 0
5537  stat("configure", {st_mode=S_IFREG|0755, st_size=861098, ...}) = 0
5537  stat("configure.tmp", {st_mode=S_IFREG|0755, st_size=860160, ...}) = 0
[...]

The size of the truncated file appears here. If I understand correctly,
the failed rename has truncated the configure.tmp file.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to