guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems running 'check-system'


From: Chris Marusich
Subject: Re: Problems running 'check-system'
Date: Thu, 04 May 2017 01:27:57 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hi Ludo,

address@hidden (Ludovic Courtès) writes:

> Hi Chris,
>
> Chris Marusich <address@hidden> skribis:
>
>>   make -j check-system TESTS=installed-os
>
> [...]
>
>> srfi/srfi-1.scm:575:27: Throw to key `srfi-34' with args
>> `(#<condition &message [message: "could not find bootstrap binary
>> 'guile-2.0.9.tar.xz' for system 'x86_64-linux'"] 4b62d80>)'.
>> make: *** [Makefile:5066: check-system] Error 1
>> [2] [env] address@hidden:~/guix
>> $ 
>>
>>
>> However, if I invoke 'make' first, then the "could not find bootstrap
>> binary" message does not show up, and the test proceeds to be run:
>
> That’s not surprising: ‘make’ triggers a download of guile-2.0.9.tar.xz
> in gnu/packages/bootstrap.  See Makefile.am.

I didn't know that.  Thank you for clarifying it!

> However, ‘check-system’ should depend on this target.  Fixed in
> 693f12ce2326f82020e90e58e69cf2b54808c19b.

Great!

>> Issue #2: even when I run 'make' first, the test fails.  It fails with
>> this message:
>>
>> [... some output omitted for brevity ...]
>>
>> starting phase `copy-bootstrap-guile'
>> Backtrace:
>> In ice-9/boot-9.scm:
>>  160: 13 [catch #t #<catch-closure 8c5dc0> ...]
>> In unknown file:
>>    ?: 12 [apply-smob/1 #<catch-closure 8c5dc0>]
>> In ice-9/boot-9.scm:
>>   66: 11 [call-with-prompt prompt0 ...]
>> In ice-9/eval.scm:
>>  432: 10 [eval # #]
>> In ice-9/boot-9.scm:
>> 2412: 9 [save-module-excursion #<procedure 8e6840 at ice-9/boot-9.scm:4084:3 
>> ()>]
>> 4089: 8 [#<procedure 8e6840 at ice-9/boot-9.scm:4084:3 ()>]
>> 1734: 7 [%start-stack load-stack #<procedure 8f6e20 at 
>> ice-9/boot-9.scm:4080:10 ()>]
>> 1739: 6 [#<procedure 8f8960 ()>]
>> In unknown file:
>>    ?: 5 [primitive-load 
>> "/gnu/store/wgh83kqjif20wfdg56iz7bxk9d4xmlk0-guix-0.12.0-9.25a4+-guile-builder"]
>> In ice-9/eval.scm:
>>  387: 4 [eval # ()]
>> In srfi/srfi-1.scm:
>>  827: 3 [every1 #<procedure f9fa40 at 
>> /gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:649:9
>>  (expr)> ...]
>> In 
>> /gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:
>>  653: 2 [#<procedure f9fa40 at 
>> /gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:649:9
>>  (expr)> #]
>> In ice-9/eval.scm:
>>  432: 1 [eval # #]
>> In unknown file:
>>    ?: 0 [copy-file 
>> "/gnu/store/dgncc5wmw8prxq09y71hqjc6g7rxqvvb-guile-2.0.9.tar.xz" ...]
>>
>> ERROR: In procedure copy-file:
>> ERROR: In procedure copy-file: Permission denied
>
> What this means is that the target of ‘copy-file’ is read-only.

Why is this test is trying to copy a file into a read-only target?  I've
tried debugging this myself by inserting pk statements in the relevant
code, but the long iteration time makes it difficult.

>> I tried to insert a "pk" in the file guix/build/gnu-build-system.scm
>> to see what the target of the copy command was, but after about 24
>> hours (!!) of waiting for the subsequent build to finish (for some
>> reason this single-line change caused many things to be rebuilt), I
>> found that the build failed for a different, apparently unrelated
>> reason.  Quite unfortunate.
>
> (guix build gnu-build-system) is used by everything, which is why
> modifying it triggers a rebuild of everything.

Although in retrospect this seems obvious, I did not realize it at the
time.  I will remember this for the future.  Thank you for the reminder!

> The system tests are being run on Hydra at each commit:
>
>   https://hydra.gnu.org/job/gnu/master/test.installed-os.x86_64-linux
>   https://hydra.gnu.org/job/gnu/master/test.encrypted-root-os.i686-linux
>   https://hydra.gnu.org/job/gnu/master/test.dicod.x86_64-linux
>
>
> (See build-aux/hydra/gnu-system.scm for details.)

I looked on Hydra but didn't find these entries.  Thank you for pointing
them out; I'm glad the tests are being run!

Am I correct in interpreting the following page to mean that the
installed-os tests have not passed even once in the last few weeks?

  https://hydra.gnu.org/job/gnu/master/test.installed-os.x86_64-linux

> Good news: as of v0.12.0-3433-g4aabc8eaa, “installed-os” passes for
>me.
> :-)

Sadly, from v0.12.0-3433-g4aabc8eaa, it fails for me with the same kind
of error as before.  I ran the following commands from that commit (the
workspace began from a clean slate, and my guix version is 20170416.04):

  guix environment --pure guix -- ./bootstrap
  guix environment --pure guix -- ./configure --localstatedir=/var
  guix environment --pure guix -- make -j check-system TESTS=installed-os

I got the following error:

--8<---------------cut here---------------start------------->8---
starting phase `copy-bootstrap-guile'
Backtrace:
In ice-9/boot-9.scm:
 160: 13 [catch #t #<catch-closure 8c5b40> ...]
In unknown file:
   ?: 12 [apply-smob/1 #<catch-closure 8c5b40>]
In ice-9/boot-9.scm:
  66: 11 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 10 [eval # #]
In ice-9/boot-9.scm:
2412: 9 [save-module-excursion #<procedure 8e6840 at ice-9/boot-9.scm:4084:3 
()>]
4089: 8 [#<procedure 8e6840 at ice-9/boot-9.scm:4084:3 ()>]
1734: 7 [%start-stack load-stack #<procedure 8f6ba0 at ice-9/boot-9.scm:4080:10 
()>]
1739: 6 [#<procedure 8f8960 ()>]
In unknown file:
   ?: 5 [primitive-load 
"/gnu/store/3c1f44lc4spzb4k5syyyynv4rq6l3h53-guix-0.12.0-9.25a4+-guile-builder"]
In ice-9/eval.scm:
 387: 4 [eval # ()]
In srfi/srfi-1.scm:
 827: 3 [every1 #<procedure ae67a0 at 
/gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:649:9
 (expr)> ...]
In 
/gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:
 653: 2 [#<procedure ae67a0 at 
/gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:649:9
 (expr)> #]
In ice-9/eval.scm:
 432: 1 [eval # #]
In unknown file:
   ?: 0 [copy-file 
"/gnu/store/dgncc5wmw8prxq09y71hqjc6g7rxqvvb-guile-2.0.9.tar.xz" ...]

ERROR: In procedure copy-file:
ERROR: In procedure copy-file: Permission denied
note: keeping build directory `/tmp/guix-build-guix-0.12.0-9.25a4+.drv-5'
builder for 
`/gnu/store/w9rx1wx5synd4jxfxzacy6xjl2522r93-guix-0.12.0-9.25a4+.drv' failed 
with exit code 1
@ build-failed 
/gnu/store/w9rx1wx5synd4jxfxzacy6xjl2522r93-guix-0.12.0-9.25a4+.drv - 1 builder 
for `/gnu/store/w9rx1wx5synd4jxfxzacy6xjl2522r93-guix-0.12.0-9.25a4+.drv' 
failed with exit code 1
cannot build derivation 
`/gnu/store/zqb17z81s8101g09rib4dsag53xcfksh-activate-service.drv': 1 
dependencies couldn't be built
cannot build derivation 
`/gnu/store/dlqsn6i1i2zbzb0msg00jy5aqva7h223-ca-certificate-bundle.drv': 1 
dependencies couldn't be built
cannot build derivation 
`/gnu/store/jqssa6ii471rysyipnx6fllijmxxza5r-fonts-dir.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/b5ac1f536k923fx73c6cw9p8c3fzmlsf-info-dir.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/i3cmj7c47fz0vw6a3sxaf4b3z44pr9bc-manual-database.drv': 1 
dependencies couldn't be built
cannot build derivation 
`/gnu/store/65k0zpznczsy7zqb9q5jy9ii66ikjfgi-shepherd-guix-daemon.scm.drv': 1 
dependencies couldn't be built
cannot build derivation 
`/gnu/store/mxs4c49giinid8hm6k1923hsbxh2xjb9-activate.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/6f1i6sfgm8y7wh6p5bk4yllkivlzd69n-profile.drv': 5 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/q1f3fy9ip5m3b5kc8mvz9wwj9p3fccbv-shepherd.conf.drv': 1 dependencies 
couldn't be built
cannot build derivation `/gnu/store/j9rarvlbik25gmwdpis6h2snmvkd5jw8-boot.drv': 
2 dependencies couldn't be built
cannot build derivation 
`/gnu/store/qxmkv4xqb2lb2p1kjwkg4jd5xg6apvk9-system.drv': 2 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/m7zi83z60fq58bbsr9wra8sv6x27zqxk-grub.cfg.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/qyjj078rr8xbc3q2yzqlc8zic2asmwpz-builder-in-linux-vm.drv': 2 
dependencies couldn't be built
cannot build derivation 
`/gnu/store/3hg377qbh2frjn95gcarck4vwjdwldlv-linux-vm-loader.drv': 1 
dependencies couldn't be built
cannot build derivation 
`/gnu/store/ld0hg8jsg7qx8k8l0h0hvapfq2qa823k-disk-image.drv': 3 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/3ssys1pnpmbv88jch7181flsbk8889as-installation.drv': 1 dependencies 
couldn't be built
cannot build derivation 
`/gnu/store/a112fvz9xqpczrpf8dp2sr28p8bjyb1q-installed-os.drv': 1 dependencies 
couldn't be built
TOTAL: 1
FAIL: /gnu/store/52z746p3jwz2d2jxrizrbrr09wh9n2vb-installed-os
make: *** [Makefile:5075: check-system] Error 1
--8<---------------cut here---------------end--------------->8---

I'll let you know if I make any progress on debugging this.

-- 
Chris

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]