[Nix-dev] services.xserver.multitouch broken?

Bjørn Forsman bjorn.forsman at gmail.com
Wed Oct 3 21:12:10 CEST 2012


On 2 October 2012 18:03, Eelco Dolstra <eelco.dolstra at logicblox.com> wrote:
> Hi,
>
> On 30/09/12 17:02, Bjørn Forsman wrote:
>
>> The "...autoreconf: cannot execute binary file" is due to that the
>> ...autoreconf file is just full of zeros(!):
>>
>> [bfo at nixos:~]$ hexdump -C
>> /nix/store/q6dnxk2mmhr15pi1dx7nfisbfi60hwqd-autoconf-2.69/bin/autoreconf
>> 00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
>> *
>> 000053b0  00 00 00 00 00 00 00                              |.......|
>> 000053b7
>
> Filesystems like ext4 have a tendency to replace files with all zeros after a
> crash, so that might be what happened here.  Try "nix-store --verify
> --check-contents" to see what got corrupted.  You can delete the offending paths
> with "nix-store --delete".

I do use ext4 :-)

"nix-store --verify --check-contents" found different hashes for 35
paths, autoreconf was one of them.

Note that I'm a NixOS newbie, so I don't know if I should have deleted
all paths or not before continuing. I started out by just deleting
autoreconf, since that was the one that seemed to cause issues.

The next nixos-rebuild failed, at the autoreconf step, apparently
because of a corrupted downloaded bzip2 archive (see build log below
that shows the similar error, but for automake). The build log
suggested I add --fallback. With --fallback I got autoconf up. The
next build step was automake, which errored out. automake was also one
of the bad paths that "nix-store --verify --check-contents" printed
out. I deleted automake and attempted another nixos-rebuild. That
failed too with a similar "corrupted download" message, just like the
autoconf step, and suggests --fallback. Hm...

Just to make sure that downloading binaries *work*, I just now tried
to install emacs. It worked just fine. So what goes wrong when
downloading autoconf/automake?

Here is the current "nixos-rebuild test" log:

$ sudo nixos-rebuild test
building Nix...
building the system configuration...
these derivations will be built:
  /nix/store/517ai28pyay1m62gv6szx4lsz5wq70si-nixos-0.1pre3949_4b78161-bc829a1.drv
  /nix/store/544z1p52niqvbzb0agqgjlk2s4107zb1-xserver.conf.drv
  /nix/store/cpp1ac4pfj9xmjlxzivsnnq5x8l67y7l-xf86-input-mtrack-0.2.0.drv
  /nix/store/mbvbypiizphxn4ibxd0ll3mi2l5y16pz-upstart-xserver.conf.drv
  /nix/store/p9rac278pa4cm9i074gnwqc7id9zd9ws-etc.drv
  /nix/store/r1q22ai7yvmwdlq1ky053y8hd8maw40j-slim.cfg.drv
these paths will be fetched (1.17 MiB download, 5.31 MiB unpacked):
  /nix/store/n9hr4ya1m44hb7h35sg24jnk9wgzbb2p-automake-1.12.2
  /nix/store/q6dnxk2mmhr15pi1dx7nfisbfi60hwqd-autoconf-2.69
fetching path `/nix/store/q6dnxk2mmhr15pi1dx7nfisbfi60hwqd-autoconf-2.69'...
fetching path `/nix/store/n9hr4ya1m44hb7h35sg24jnk9wgzbb2p-automake-1.12.2'...

*** Trying to download/patch
`/nix/store/q6dnxk2mmhr15pi1dx7nfisbfi60hwqd-autoconf-2.69'

*** Step 1/1: downloading
`http://nixos.org/releases/nars/sha256_c8f95b0768fda67c7c04388cfb48b3343457c77c1c302aa4a2f0df9f7ea6443c'
into `/nix/store/q6dnxk2mmhr15pi1dx7nfisbfi60hwqd-autoconf-2.69'
  downloading archive...

*** Trying to download/patch
`/nix/store/n9hr4ya1m44hb7h35sg24jnk9wgzbb2p-automake-1.12.2'

*** Step 1/1: downloading
`http://nixos.org/releases/nars/sha256_97f9144ad06d6beafa4e8766dd1110d293ebd822e4dc04c2f527e38e6c4cdfa8'
into `/nix/store/n9hr4ya1m44hb7h35sg24jnk9wgzbb2p-automake-1.12.2'
  downloading archive...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  557k  100  557k    0     0   712k      0 --:--:-- --:--:-- --:--:--  753k
  unpacking archive...

bzip2: Compressed file ends unexpectedly;
	perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
	Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

error: unexpected end-of-file
cannot unpack `/nix/store/1sw6hgj277px7sy1yl6ai9769i7v93ya-sha256_97f9144ad06d6beafa4e8766dd1110d293ebd822e4dc04c2f527e38e6c4cdfa8'
into `/nix/store/n9hr4ya1m44hb7h35sg24jnk9wgzbb2p-automake-1.12.2' at
/nix/store/bhch4wf1hf189lamxf0n1grbw2wax0aj-nix-1.1/libexec/nix/substituters/download-using-manifests.pl
line 357.
fetching path `/nix/store/n9hr4ya1m44hb7h35sg24jnk9wgzbb2p-automake-1.12.2'
failed with exit code 1
killing process 22130
error: some substitutes for the outputs of derivation
`/nix/store/jj4ms546bnq4jd6fzb48maarawr6ip6i-automake-1.12.2.drv'
failed; try `--fallback'

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list