* bug#26791: Attempt to apply a string as a procedure during Hydra evaluation
@ 2017-05-06 0:40 Mark H Weaver
2017-05-06 7:46 ` Mathieu Othacehe
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Mark H Weaver @ 2017-05-06 0:40 UTC (permalink / raw)
To: 26791
The error message is:
ERROR: In procedure GNU with Linux-Libre 4.11 (beta):
ERROR: Wrong type to apply: "GNU with Linux-Libre 4.11 (beta)"
Here's the head and tail of the output of the evaluator. Unfortunately,
the relevant git commit is not printed.
Mark
--8<---------------cut here---------------start------------->8---
considering jobset gnu:master (last checked 72008s ago)
checking out Git branch master from https://git.savannah.gnu.org/r/guix.git
Initialized empty Git repository in /tmp/git-checkout-tmp-9693/git-export/.git/
From /var/lib/hydra/scm/git/f08e53b7f0f3ce68a74e8745c37add3d0aecabda3e30c724b0d838fdc6743e2b
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
Switched to a new branch 'fetchgit'
removing `.git'...
hash is c2f6ba71188a29e6940662f54dded0b754a41d03fe05d2e40bc1e054299f7ffa
path is /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export
evaluator hydra-eval-guile-jobs
hydra-eval-guile-jobs returned exit code 1:
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /usr/local/bin/hydra-eval-guile-jobs
;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/bin/hydra-eval-guile-jobs.go
adding `/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export' to the load path
prepending "/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/../.." to the load path
;;; compiling /home/hydra/.guix-profile/share/guile/site/2.0/guix/config.scm
;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/swbhvy5vw84hwjxwc2v069fdmr6b1cfy-guix-0.12.0-2.b291/share/guile/site/2.0/guix/config.scm.g
o
[...]
;;; compiling /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/../../gnu/packages/wine.scm
;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/gnu/packages/wine.scm.go
;;; compiling /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/../../gnu/packages/xfce.scm
;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/gnu/packages/xfce.scm.go
;;; compiling /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/../../gnu/packages/xnee.scm
;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/gnu/packages/xnee.scm.go
Backtrace:
In unknown file:
?: 19 [apply-smob/1 #<catch-closure 2387c00>]
In ice-9/boot-9.scm:
66: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 17 [eval # #]
In unknown file:
?: 16 [call-with-input-string "(apply (module-ref (resolve-interface '(hydra-eval-guile-jobs)) 'eval-guile-jobs) (cdr (command-line)))" ...]
In ice-9/command-line.scm:
181: 15 [#<procedure 2399320 at ice-9/command-line.scm:176:6 (port)> #<input: string 2952820>]
In unknown file:
?: 14 [eval (apply (module-ref # #) (cdr #)) #<directory (guile-user) 2374bd0>]
In /usr/local/bin/hydra-eval-guile-jobs:
240: 13 [eval-guile-jobs "/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/gnu-system.scm" ...]
In ice-9/eval.scm:
481: 12 [lp (#<fluid 38>) (#f)]
In srfi/srfi-1.scm:
643: 11 [append-map #<procedure 56f3750 at ice-9/eval.scm:416:20 (a)> #]
575: 10 [map #<procedure 56f3750 at ice-9/eval.scm:416:20 (a)> #]
In ice-9/eval.scm:
387: 9 [eval # #]
387: 8 [eval # #]
387: 7 [eval # #]
In guix/store.scm:
1338: 6 [run-with-store # #<procedure a6d5c90 at ice-9/eval.scm:416:20 (a)> # ...]
In gnu/system/vm.scm:
287: 5 [#<procedure a8c48c0 at gnu/system/vm.scm:287:4 (state)> #]
In gnu/services.scm:
268: 4 [#<procedure c536ed0 at gnu/services.scm:268:2 (state)> #]
In gnu/system.scm:
293: 3 [#<procedure 92d6a00 at gnu/system.scm:293:8 (state)> #]
797: 2 [#<procedure 7a1ccc0 at gnu/system.scm:797:2 (state)> #]
778: 1 [#<procedure 948bc00 at gnu/system.scm:773:2 (state)> #]
In unknown file:
?: 0 ["GNU with Linux-Libre 4.11 (beta)" "GNU with Linux-Libre 4.11 (beta)"]
ERROR: In procedure GNU with Linux-Libre 4.11 (beta):
ERROR: Wrong type to apply: "GNU with Linux-Libre 4.11 (beta)"
--8<---------------cut here---------------end--------------->8---
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#26791: Attempt to apply a string as a procedure during Hydra evaluation
2017-05-06 0:40 bug#26791: Attempt to apply a string as a procedure during Hydra evaluation Mark H Weaver
@ 2017-05-06 7:46 ` Mathieu Othacehe
2017-05-06 22:44 ` Mark H Weaver
2017-05-07 6:43 ` Danny Milosavljevic
2017-05-07 10:11 ` bug#26791: Hydra doesn't run make before using Guix Danny Milosavljevic
2 siblings, 1 reply; 11+ messages in thread
From: Mathieu Othacehe @ 2017-05-06 7:46 UTC (permalink / raw)
To: Mark H Weaver; +Cc: 26791
Hi Mark,
This problem should be resolved by make clean-go && make, see here :
https://lists.gnu.org/archive/html/guix-patches/2017-05/msg00152.html
Mathieu
Mark H Weaver writes:
> The error message is:
>
> ERROR: In procedure GNU with Linux-Libre 4.11 (beta):
> ERROR: Wrong type to apply: "GNU with Linux-Libre 4.11 (beta)"
>
> Here's the head and tail of the output of the evaluator. Unfortunately,
> the relevant git commit is not printed.
>
> Mark
>
>
> --8<---------------cut here---------------start------------->8---
> considering jobset gnu:master (last checked 72008s ago)
> checking out Git branch master from https://git.savannah.gnu.org/r/guix.git
> Initialized empty Git repository in /tmp/git-checkout-tmp-9693/git-export/.git/
> From /var/lib/hydra/scm/git/f08e53b7f0f3ce68a74e8745c37add3d0aecabda3e30c724b0d838fdc6743e2b
> * branch master -> FETCH_HEAD
> * [new branch] master -> origin/master
> Switched to a new branch 'fetchgit'
> removing `.git'...
> hash is c2f6ba71188a29e6940662f54dded0b754a41d03fe05d2e40bc1e054299f7ffa
> path is /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export
> evaluator hydra-eval-guile-jobs
> hydra-eval-guile-jobs returned exit code 1:
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;; or pass the --no-auto-compile argument to disable.
> ;;; compiling /usr/local/bin/hydra-eval-guile-jobs
> ;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/bin/hydra-eval-guile-jobs.go
> adding `/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export' to the load path
> prepending "/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/../.." to the load path
> ;;; compiling /home/hydra/.guix-profile/share/guile/site/2.0/guix/config.scm
> ;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/swbhvy5vw84hwjxwc2v069fdmr6b1cfy-guix-0.12.0-2.b291/share/guile/site/2.0/guix/config.scm.g
> o
>
> [...]
>
> ;;; compiling /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/../../gnu/packages/wine.scm
> ;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/gnu/packages/wine.scm.go
> ;;; compiling /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/../../gnu/packages/xfce.scm
> ;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/gnu/packages/xfce.scm.go
> ;;; compiling /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/../../gnu/packages/xnee.scm
> ;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/gnu/packages/xnee.scm.go
> Backtrace:
> In unknown file:
> ?: 19 [apply-smob/1 #<catch-closure 2387c00>]
> In ice-9/boot-9.scm:
> 66: 18 [call-with-prompt prompt0 ...]
> In ice-9/eval.scm:
> 432: 17 [eval # #]
> In unknown file:
> ?: 16 [call-with-input-string "(apply (module-ref (resolve-interface '(hydra-eval-guile-jobs)) 'eval-guile-jobs) (cdr (command-line)))" ...]
> In ice-9/command-line.scm:
> 181: 15 [#<procedure 2399320 at ice-9/command-line.scm:176:6 (port)> #<input: string 2952820>]
> In unknown file:
> ?: 14 [eval (apply (module-ref # #) (cdr #)) #<directory (guile-user) 2374bd0>]
> In /usr/local/bin/hydra-eval-guile-jobs:
> 240: 13 [eval-guile-jobs "/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/gnu-system.scm" ...]
> In ice-9/eval.scm:
> 481: 12 [lp (#<fluid 38>) (#f)]
> In srfi/srfi-1.scm:
> 643: 11 [append-map #<procedure 56f3750 at ice-9/eval.scm:416:20 (a)> #]
> 575: 10 [map #<procedure 56f3750 at ice-9/eval.scm:416:20 (a)> #]
> In ice-9/eval.scm:
> 387: 9 [eval # #]
> 387: 8 [eval # #]
> 387: 7 [eval # #]
> In guix/store.scm:
> 1338: 6 [run-with-store # #<procedure a6d5c90 at ice-9/eval.scm:416:20 (a)> # ...]
> In gnu/system/vm.scm:
> 287: 5 [#<procedure a8c48c0 at gnu/system/vm.scm:287:4 (state)> #]
> In gnu/services.scm:
> 268: 4 [#<procedure c536ed0 at gnu/services.scm:268:2 (state)> #]
> In gnu/system.scm:
> 293: 3 [#<procedure 92d6a00 at gnu/system.scm:293:8 (state)> #]
> 797: 2 [#<procedure 7a1ccc0 at gnu/system.scm:797:2 (state)> #]
> 778: 1 [#<procedure 948bc00 at gnu/system.scm:773:2 (state)> #]
> In unknown file:
> ?: 0 ["GNU with Linux-Libre 4.11 (beta)" "GNU with Linux-Libre 4.11 (beta)"]
>
> ERROR: In procedure GNU with Linux-Libre 4.11 (beta):
> ERROR: Wrong type to apply: "GNU with Linux-Libre 4.11 (beta)"
> --8<---------------cut here---------------end--------------->8---
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#26791: Attempt to apply a string as a procedure during Hydra evaluation
2017-05-06 7:46 ` Mathieu Othacehe
@ 2017-05-06 22:44 ` Mark H Weaver
0 siblings, 0 replies; 11+ messages in thread
From: Mark H Weaver @ 2017-05-06 22:44 UTC (permalink / raw)
To: Mathieu Othacehe; +Cc: 26791
Mathieu Othacehe <m.othacehe@gmail.com> writes:
> Hi Mark,
>
> This problem should be resolved by make clean-go && make, see here :
>
> https://lists.gnu.org/archive/html/guix-patches/2017-05/msg00152.html
As far as I know, *every* evaluation on Hydra is a clean build from
scratch, so I'm not sure how to proceed. In the meantime, our build
farm is essentially broken until this is resolved.
I've CC'd Ludovic in case he has more insight.
Mark
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#26791: Attempt to apply a string as a procedure during Hydra evaluation
2017-05-06 0:40 bug#26791: Attempt to apply a string as a procedure during Hydra evaluation Mark H Weaver
2017-05-06 7:46 ` Mathieu Othacehe
@ 2017-05-07 6:43 ` Danny Milosavljevic
2017-05-07 9:35 ` Ludovic Courtès
2017-05-07 10:11 ` bug#26791: Hydra doesn't run make before using Guix Danny Milosavljevic
2 siblings, 1 reply; 11+ messages in thread
From: Danny Milosavljevic @ 2017-05-07 6:43 UTC (permalink / raw)
To: Mark H Weaver; +Cc: 26791
Hi,
I think it always works (also without compilation) when I move the boot-parameters record definition up in gnu/system.scm (so it comes before its clients).
It's still reconfiguring now but it looks good.
If it works out, I'll post it here for review...
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#26791: Attempt to apply a string as a procedure during Hydra evaluation
2017-05-07 6:43 ` Danny Milosavljevic
@ 2017-05-07 9:35 ` Ludovic Courtès
2017-05-07 21:31 ` Leo Famulari
2017-05-07 22:23 ` Mark H Weaver
0 siblings, 2 replies; 11+ messages in thread
From: Ludovic Courtès @ 2017-05-07 9:35 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: 26791-done
Hi,
Danny Milosavljevic <dannym@scratchpost.org> skribis:
> I think it always works (also without compilation) when I move the boot-parameters record definition up in gnu/system.scm (so it comes before its clients).
Yeah I just pushed that as 8e815c5b6903a545c46b674c1cd1cc3180f835db.
The thing is that ‘boot-parameters’ is a macro, so it must be defined
before used.
Because of the way build-aux/compile-all.scm builds things (first loads
modules, then builds them), this error would not show up because the
macro would have been defined during the load phase. However evaluation
on Hydra relies on auto-compilation, which does things the “normal” way.
I’ve started an evaluation of ‘master’ on Hydra.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#26791: Hydra doesn't run make before using Guix
2017-05-06 0:40 bug#26791: Attempt to apply a string as a procedure during Hydra evaluation Mark H Weaver
2017-05-06 7:46 ` Mathieu Othacehe
2017-05-07 6:43 ` Danny Milosavljevic
@ 2017-05-07 10:11 ` Danny Milosavljevic
2017-05-09 21:29 ` Ludovic Courtès
2 siblings, 1 reply; 11+ messages in thread
From: Danny Milosavljevic @ 2017-05-07 10:11 UTC (permalink / raw)
To: Mark H Weaver; +Cc: 26791
For reference, the relevant commits are (newest first) 360874dd1c1aafddd82e389b9da09f69bddb2a20 (not really suspicious), 7e3f7acbe0885fd8a6e509fd0c309d1f4d9d3097, bf8b09169c7d8ae48ac99ea237b82867ee9aa885, 370ae085b5107a0928fd744a987fb4070bdf6a00, 83071b052a0585f7166245b7ba793436e104f8fe, 0315abe608007f1fed96cdcae21b6a83902b25e6, 9530e73b496fefe65dcb936825b6beda79f7fdf2, 33f0aa88155ee0718f21e7de24eb539cb9872217, 40fad1c24ce60076e26f6dc8096e4716d31d90c3 (!).
Note that this all works fine after Guix has been built using make, so I don't think the problem is in the source code of Guix.
As for that Hydra job:
>Switched to a new branch 'fetchgit'
>;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/bin/hydra-eval-guile-jobs.go
>adding `/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export' to the load path
>;;; compiling /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/../../gnu/packages/xnee.scm
It seems that hydra auto-compiles some Guix modules:
So this Hydra job should run make in /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export first.
Unfortunately, I have no idea about Hydra - and "grep -r fetchgit ." inside "guix" doesn't turn up anything either.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#26791: Attempt to apply a string as a procedure during Hydra evaluation
2017-05-07 9:35 ` Ludovic Courtès
@ 2017-05-07 21:31 ` Leo Famulari
2017-05-07 22:37 ` Mark H Weaver
2017-05-07 22:23 ` Mark H Weaver
1 sibling, 1 reply; 11+ messages in thread
From: Leo Famulari @ 2017-05-07 21:31 UTC (permalink / raw)
To: 26791, ludo, mhw
[-- Attachment #1: Type: text/plain, Size: 2603 bytes --]
On Sun, May 07, 2017 at 11:35:39AM +0200, Ludovic Courtès wrote:
> Hi,
>
> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>
> > I think it always works (also without compilation) when I move the boot-parameters record definition up in gnu/system.scm (so it comes before its clients).
>
> Yeah I just pushed that as 8e815c5b6903a545c46b674c1cd1cc3180f835db.
>
> The thing is that ‘boot-parameters’ is a macro, so it must be defined
> before used.
>
> Because of the way build-aux/compile-all.scm builds things (first loads
> modules, then builds them), this error would not show up because the
> macro would have been defined during the load phase. However evaluation
> on Hydra relies on auto-compilation, which does things the “normal” way.
>
> I’ve started an evaluation of ‘master’ on Hydra.
Unfortunately, this evaluation failed :(
Backtrace:
In unknown file:
?: 19 [apply-smob/1 #<catch-closure 1da8040>]
In ice-9/boot-9.scm:
66: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 17 [eval # #]
In unknown file:
?: 16 [call-with-input-string "(apply (module-ref (resolve-interface '(hydra-eval-guile-jobs)) 'eval-guile-jobs) (cdr (command-line)))" ...]
In ice-9/command-line.scm:
181: 15 [#<procedure 1dbf680 at ice-9/command-line.scm:176:6 (port)> #<input: string 2680c30>]
In unknown file:
?: 14 [eval (apply (module-ref # #) (cdr #)) #<directory (guile-user) 1d97bd0>]
In /usr/local/bin/hydra-eval-guile-jobs:
240: 13 [eval-guile-jobs "/gnu/store/a2y2xipciazkxv796iczrjiv5qi6x2qb-git-export/build-aux/hydra/gnu-system.scm" ...]
In ice-9/eval.scm:
481: 12 [lp (#<fluid 38>) (#f)]
In srfi/srfi-1.scm:
643: 11 [append-map #<procedure 60c7db0 at ice-9/eval.scm:416:20 (a)> #]
575: 10 [map #<procedure 60c7db0 at ice-9/eval.scm:416:20 (a)> #]
In ice-9/eval.scm:
387: 9 [eval # #]
387: 8 [eval # #]
387: 7 [eval # #]
In guix/store.scm:
1347: 6 [run-with-store # #<procedure 7bfd810 at ice-9/eval.scm:416:20 (a)> # ...]
In gnu/system/vm.scm:
287: 5 [#<procedure 9656400 at gnu/system/vm.scm:287:4 (state)> #]
In gnu/system.scm:
851: 4 [#<procedure 126c17e0 at gnu/system.scm:844:2 (state)> #]
In gnu/system/grub.scm:
289: 3 [grub-configuration-file # # # ...]
In srfi/srfi-1.scm:
575: 2 [map #<procedure boot-parameters->menu-entry (conf)> (#)]
In gnu/system/grub.scm:
272: 1 [boot-parameters->menu-entry #]
In unknown file:
?: 0 [# #]
ERROR: In procedure #<syntax-transformer boot-parameters-label>:
ERROR: Wrong type to apply: #<syntax-transformer boot-parameters-label>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#26791: Attempt to apply a string as a procedure during Hydra evaluation
2017-05-07 9:35 ` Ludovic Courtès
2017-05-07 21:31 ` Leo Famulari
@ 2017-05-07 22:23 ` Mark H Weaver
1 sibling, 0 replies; 11+ messages in thread
From: Mark H Weaver @ 2017-05-07 22:23 UTC (permalink / raw)
To: 26791
ludo@gnu.org (Ludovic Courtès) writes:
> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>
>> I think it always works (also without compilation) when I move the boot-parameters record definition up in gnu/system.scm (so it comes before its clients).
>
> Yeah I just pushed that as 8e815c5b6903a545c46b674c1cd1cc3180f835db.
>
> The thing is that ‘boot-parameters’ is a macro, so it must be defined
> before used.
>
> Because of the way build-aux/compile-all.scm builds things (first loads
> modules, then builds them), this error would not show up because the
> macro would have been defined during the load phase. However evaluation
> on Hydra relies on auto-compilation, which does things the “normal” way.
>
> I’ve started an evaluation of ‘master’ on Hydra.
The new evaluation failed again, but with a different error this time:
--8<---------------cut here---------------start------------->8---
;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/a2y2xipciazkxv796iczrjiv5qi6x2qb-git-export/gnu/packages/web-browsers.scm.go
;;; compiling /gnu/store/a2y2xipciazkxv796iczrjiv5qi6x2qb-git-export/build-aux/hydra/../../gnu/packages/wine.scm
;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/a2y2xipciazkxv796iczrjiv5qi6x2qb-git-export/gnu/packages/wine.scm.go
;;; compiling /gnu/store/a2y2xipciazkxv796iczrjiv5qi6x2qb-git-export/build-aux/hydra/../../gnu/packages/xnee.scm
;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/gnu/store/a2y2xipciazkxv796iczrjiv5qi6x2qb-git-export/gnu/packages/xnee.scm.go
Backtrace:
In unknown file:
?: 19 [apply-smob/1 #<catch-closure 1da8040>]
In ice-9/boot-9.scm:
66: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 17 [eval # #]
In unknown file:
?: 16 [call-with-input-string "(apply (module-ref (resolve-interface '(hydra-eval-guile-jobs)) 'eval-guile-jobs) (cdr (command-line)))" ...]
In ice-9/command-line.scm:
181: 15 [#<procedure 1dbf680 at ice-9/command-line.scm:176:6 (port)> #<input: string 2680c30>]
In unknown file:
?: 14 [eval (apply (module-ref # #) (cdr #)) #<directory (guile-user) 1d97bd0>]
In /usr/local/bin/hydra-eval-guile-jobs:
240: 13 [eval-guile-jobs "/gnu/store/a2y2xipciazkxv796iczrjiv5qi6x2qb-git-export/build-aux/hydra/gnu-system.scm" ...]
In ice-9/eval.scm:
481: 12 [lp (#<fluid 38>) (#f)]
In srfi/srfi-1.scm:
643: 11 [append-map #<procedure 60c7db0 at ice-9/eval.scm:416:20 (a)> #]
575: 10 [map #<procedure 60c7db0 at ice-9/eval.scm:416:20 (a)> #]
In ice-9/eval.scm:
387: 9 [eval # #]
387: 8 [eval # #]
387: 7 [eval # #]
In guix/store.scm:
1347: 6 [run-with-store # #<procedure 7bfd810 at ice-9/eval.scm:416:20 (a)> # ...]
In gnu/system/vm.scm:
287: 5 [#<procedure 9656400 at gnu/system/vm.scm:287:4 (state)> #]
In gnu/system.scm:
851: 4 [#<procedure 126c17e0 at gnu/system.scm:844:2 (state)> #]
In gnu/system/grub.scm:
289: 3 [grub-configuration-file # # # ...]
In srfi/srfi-1.scm:
575: 2 [map #<procedure boot-parameters->menu-entry (conf)> (#)]
In gnu/system/grub.scm:
272: 1 [boot-parameters->menu-entry #]
In unknown file:
?: 0 [# #]
ERROR: In procedure #<syntax-transformer boot-parameters-label>:
ERROR: Wrong type to apply: #<syntax-transformer boot-parameters-label>
--8<---------------cut here---------------end--------------->8---
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#26791: Attempt to apply a string as a procedure during Hydra evaluation
2017-05-07 21:31 ` Leo Famulari
@ 2017-05-07 22:37 ` Mark H Weaver
2017-05-08 12:40 ` Ludovic Courtès
0 siblings, 1 reply; 11+ messages in thread
From: Mark H Weaver @ 2017-05-07 22:37 UTC (permalink / raw)
To: Leo Famulari; +Cc: 26791
Leo Famulari <leo@famulari.name> writes:
> On Sun, May 07, 2017 at 11:35:39AM +0200, Ludovic Courtès wrote:
>> Hi,
>>
>> Danny Milosavljevic <dannym@scratchpost.org> skribis:
>>
>> > I think it always works (also without compilation) when I move the
>> boot-parameters record definition up in gnu/system.scm (so it comes
>> before its clients).
>>
>> Yeah I just pushed that as 8e815c5b6903a545c46b674c1cd1cc3180f835db.
>>
>> The thing is that ‘boot-parameters’ is a macro, so it must be defined
>> before used.
>>
>> Because of the way build-aux/compile-all.scm builds things (first loads
>> modules, then builds them), this error would not show up because the
>> macro would have been defined during the load phase. However evaluation
>> on Hydra relies on auto-compilation, which does things the “normal” way.
>>
>> I’ve started an evaluation of ‘master’ on Hydra.
>
> Unfortunately, this evaluation failed :(
>
> Backtrace:
> In unknown file:
> ?: 19 [apply-smob/1 #<catch-closure 1da8040>]
> In ice-9/boot-9.scm:
> 66: 18 [call-with-prompt prompt0 ...]
> In ice-9/eval.scm:
> 432: 17 [eval # #]
> In unknown file:
> ?: 16 [call-with-input-string "(apply (module-ref (resolve-interface '(hydra-eval-guile-jobs)) 'eval-guile-jobs) (cdr (command-line)))" ...]
> In ice-9/command-line.scm:
> 181: 15 [#<procedure 1dbf680 at ice-9/command-line.scm:176:6 (port)> #<input: string 2680c30>]
> In unknown file:
> ?: 14 [eval (apply (module-ref # #) (cdr #)) #<directory (guile-user) 1d97bd0>]
> In /usr/local/bin/hydra-eval-guile-jobs:
> 240: 13 [eval-guile-jobs "/gnu/store/a2y2xipciazkxv796iczrjiv5qi6x2qb-git-export/build-aux/hydra/gnu-system.scm" ...]
> In ice-9/eval.scm:
> 481: 12 [lp (#<fluid 38>) (#f)]
> In srfi/srfi-1.scm:
> 643: 11 [append-map #<procedure 60c7db0 at ice-9/eval.scm:416:20 (a)> #]
> 575: 10 [map #<procedure 60c7db0 at ice-9/eval.scm:416:20 (a)> #]
> In ice-9/eval.scm:
> 387: 9 [eval # #]
> 387: 8 [eval # #]
> 387: 7 [eval # #]
> In guix/store.scm:
> 1347: 6 [run-with-store # #<procedure 7bfd810 at ice-9/eval.scm:416:20 (a)> # ...]
> In gnu/system/vm.scm:
> 287: 5 [#<procedure 9656400 at gnu/system/vm.scm:287:4 (state)> #]
> In gnu/system.scm:
> 851: 4 [#<procedure 126c17e0 at gnu/system.scm:844:2 (state)> #]
> In gnu/system/grub.scm:
> 289: 3 [grub-configuration-file # # # ...]
> In srfi/srfi-1.scm:
> 575: 2 [map #<procedure boot-parameters->menu-entry (conf)> (#)]
> In gnu/system/grub.scm:
> 272: 1 [boot-parameters->menu-entry #]
> In unknown file:
> ?: 0 [# #]
>
> ERROR: In procedure #<syntax-transformer boot-parameters-label>:
> ERROR: Wrong type to apply: #<syntax-transformer boot-parameters-label>
This indicates another case of a macro being used before it is defined.
I don't have time at the moment to investigate further.
Mark
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#26791: Attempt to apply a string as a procedure during Hydra evaluation
2017-05-07 22:37 ` Mark H Weaver
@ 2017-05-08 12:40 ` Ludovic Courtès
0 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2017-05-08 12:40 UTC (permalink / raw)
To: Mark H Weaver; +Cc: 26791
Mark H Weaver <mhw@netris.org> skribis:
>> ERROR: In procedure #<syntax-transformer boot-parameters-label>:
>> ERROR: Wrong type to apply: #<syntax-transformer boot-parameters-label>
>
> This indicates another case of a macro being used before it is defined.
> I don't have time at the moment to investigate further.
I just followed up on that here:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26339#304
Ludo’.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#26791: Hydra doesn't run make before using Guix
2017-05-07 10:11 ` bug#26791: Hydra doesn't run make before using Guix Danny Milosavljevic
@ 2017-05-09 21:29 ` Ludovic Courtès
0 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2017-05-09 21:29 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: 26791
Hi Danny,
Danny Milosavljevic <dannym@scratchpost.org> skribis:
> For reference, the relevant commits are (newest first) 360874dd1c1aafddd82e389b9da09f69bddb2a20 (not really suspicious), 7e3f7acbe0885fd8a6e509fd0c309d1f4d9d3097, bf8b09169c7d8ae48ac99ea237b82867ee9aa885, 370ae085b5107a0928fd744a987fb4070bdf6a00, 83071b052a0585f7166245b7ba793436e104f8fe, 0315abe608007f1fed96cdcae21b6a83902b25e6, 9530e73b496fefe65dcb936825b6beda79f7fdf2, 33f0aa88155ee0718f21e7de24eb539cb9872217, 40fad1c24ce60076e26f6dc8096e4716d31d90c3 (!).
>
> Note that this all works fine after Guix has been built using make, so I don't think the problem is in the source code of Guix.
>
> As for that Hydra job:
>
>>Switched to a new branch 'fetchgit'
>>;;; compiled /home/hydra/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/bin/hydra-eval-guile-jobs.go
>>adding `/gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export' to the load path
>>;;; compiling /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export/build-aux/hydra/../../gnu/packages/xnee.scm
>
> It seems that hydra auto-compiles some Guix modules:
>
> So this Hydra job should run make in /gnu/store/vsw3112dw48ai5arsxf1qsvma8y4fvqp-git-export first.
>
> Unfortunately, I have no idea about Hydra - and "grep -r fetchgit ." inside "guix" doesn't turn up anything either.
Not a bug! :-)
Hydra and Cuirass first go through an “evaluation” step, which consists
in producing a list of derivations + meta-data from Guix/GuixSD.
Concretely, Hydra runs build-aux/hydra/gnu-system.scm, which returns
that list (you can run “make hydra-jobs.scm” to see that result.)
As can be seen at the top of gnu-system.scm, the idea is to let Guile’s
auto-compilation kick in rather than have an explicit build step. It
simplifies gnu-system.scm at the expense of providing messy output; it’s
also quite expensive.
I’m open to a brainstorming session on this. I’m not sure how to
improve the situation myself. We have a similar problem with ‘guix
pull’ in fact: should we first compile everything and then run, or
compile everything but the (gnu packages …) modules, or…?
Ludo’.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2017-05-09 21:30 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-06 0:40 bug#26791: Attempt to apply a string as a procedure during Hydra evaluation Mark H Weaver
2017-05-06 7:46 ` Mathieu Othacehe
2017-05-06 22:44 ` Mark H Weaver
2017-05-07 6:43 ` Danny Milosavljevic
2017-05-07 9:35 ` Ludovic Courtès
2017-05-07 21:31 ` Leo Famulari
2017-05-07 22:37 ` Mark H Weaver
2017-05-08 12:40 ` Ludovic Courtès
2017-05-07 22:23 ` Mark H Weaver
2017-05-07 10:11 ` bug#26791: Hydra doesn't run make before using Guix Danny Milosavljevic
2017-05-09 21:29 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).