unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Hydra evaluation failure
@ 2017-05-17 11:51 Leo Famulari
  2017-05-17 13:59 ` Marius Bakke
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2017-05-17 11:51 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1679 bytes --]

hydra-eval-guile-jobs returned exit code 1:
[...]
Backtrace:
In ice-9/eval.scm:
 432: 19 [eval # #]
In unknown file:
   ?: 18 [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: 17 [#<procedure 9b94c0 at ice-9/command-line.scm:176:6 (port)> #<input: string 1286c30>]
In unknown file:
   ?: 16 [eval (apply (module-ref # #) (cdr #)) #<directory (guile-user) 993bd0>]
In /usr/local/bin/hydra-eval-guile-jobs:
 157: 15 [job-evaluations->xml (# # # # ...) #<output: file 1> #:gc-roots-dir ...]
  88: 14 [job-evaluations->sxml (# # # ...) #:gc-roots-dir ...]
In srfi/srfi-1.scm:
 575: 13 [map #<procedure 126cfa20 at /usr/local/bin/hydra-eval-guile-jobs:88:12 (expr)> ...]
In /usr/local/bin/hydra-eval-guile-jobs:
  90: 12 [#<procedure 126cfa20 at /usr/local/bin/hydra-eval-guile-jobs:88:12 (expr)> #]
In ice-9/boot-9.scm:
2404: 11 [save-module-excursion #<procedure 25b34960 at /usr/local/bin/hydra-eval-guile-jobs:91:30 ()>]
In ice-9/r4rs.scm:
 176: 10 [with-output-to-port #<variable 236d88e0 value: #<output: file 1>> ...]
In ice-9/eval.scm:
 481: 9 [lp (#<fluid 38>) (#f)]
 387: 8 [eval # #]
 387: 7 [eval # #]
 387: 6 [eval # #]
In guix/packages.scm:
 817: 5 [cache! #<weak-key-hash-table 3cfbce0 14372/28099> # # ...]
1132: 4 [thunk]
 817: 3 [cache! #<weak-key-hash-table 3cfb8c0 14377/28099> # # ...]
 927: 2 [thunk]
In gnu/packages/mes.scm:
  79: 1 [native-inputs]
In unknown file:
   ?: 0 [string-prefix? #f "x86_64-linux" ...]

ERROR: In procedure string-prefix?:
ERROR: In procedure string-prefix?: Wrong type argument in position 1 (expecting string): #f

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Hydra evaluation failure
  2017-05-17 11:51 Hydra evaluation failure Leo Famulari
@ 2017-05-17 13:59 ` Marius Bakke
  2017-05-17 14:17   ` Marius Bakke
  0 siblings, 1 reply; 4+ messages in thread
From: Marius Bakke @ 2017-05-17 13:59 UTC (permalink / raw)
  To: Leo Famulari, guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 449 bytes --]

Leo Famulari <leo@famulari.name> writes:

[...]

> In gnu/packages/mes.scm:
>   79: 1 [native-inputs]
> In unknown file:
>    ?: 0 [string-prefix? #f "x86_64-linux" ...]
>
> ERROR: In procedure string-prefix?:
> ERROR: In procedure string-prefix?: Wrong type argument in position 1 (expecting string): #f

This seems to be because system is not x86_64, and
(%current-target-system) evaluates to false. I *think* the attached
patch solves it. WDYT?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-mes-Don-t-fail-when-current-target-system-is-f.patch --]
[-- Type: text/x-patch, Size: 1794 bytes --]

From baa90ac80d510e7357340a52316c5f438e27f538 Mon Sep 17 00:00:00 2001
From: Marius Bakke <mbakke@fastmail.com>
Date: Wed, 17 May 2017 15:49:04 +0200
Subject: [PATCH] gnu: mes: Don't fail when (%current-target-system) is #f.

* gnu/packages/mes.scm (mes)[native-inputs]: Evaluate system before testing
string equality.
---
 gnu/packages/mes.scm | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index 66b0654de..82213b02c 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -75,13 +75,13 @@ extensive examples, including parsers for the Javascript and C99 languages.")
        `(("nyacc" ,nyacc)))
       (native-inputs
        `(("guile" ,guile-2.2)
-         ,@(if (or (equal? (%current-system) "x86_64-linux")
-                   (string-prefix? (%current-target-system) "x86_64-linux"))
-               ;; Use cross-compiler rather than #:system "i686-linux" to get
-               ;; MesCC 64 bit .go files installed ready for use with Guile.
-               `(("i686-linux-binutils" ,(cross-binutils triplet))
-                 ("i686-linux-gcc" ,(cross-gcc triplet)))
-               '())
+         ,@(let ((system (or (%current-target-system) (%current-system))))
+             (if (string-prefix? "x86_64-linux" system)
+                 ;; Use cross-compiler rather than #:system "i686-linux" to get
+                 ;; MesCC 64 bit .go files installed ready for use with Guile.
+                 `(("i686-linux-binutils" ,(cross-binutils triplet))
+                   ("i686-linux-gcc" ,(cross-gcc triplet)))
+                 '()))
          ("perl" ,perl)))               ;build-aux/gitlog-to-changelog
       (arguments
        `(#:phases
-- 
2.13.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: Hydra evaluation failure
  2017-05-17 13:59 ` Marius Bakke
@ 2017-05-17 14:17   ` Marius Bakke
  2017-05-17 18:22     ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Marius Bakke @ 2017-05-17 14:17 UTC (permalink / raw)
  To: Leo Famulari, guix-devel

[-- Attachment #1: Type: text/plain, Size: 576 bytes --]

Marius Bakke <mbakke@fastmail.com> writes:

> Leo Famulari <leo@famulari.name> writes:
>
> [...]
>
>> In gnu/packages/mes.scm:
>>   79: 1 [native-inputs]
>> In unknown file:
>>    ?: 0 [string-prefix? #f "x86_64-linux" ...]
>>
>> ERROR: In procedure string-prefix?:
>> ERROR: In procedure string-prefix?: Wrong type argument in position 1 (expecting string): #f
>
> This seems to be because system is not x86_64, and
> (%current-target-system) evaluates to false. I *think* the attached
> patch solves it.

I pushed a one-liner variant. Can you try restarting the evaluation?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Hydra evaluation failure
  2017-05-17 14:17   ` Marius Bakke
@ 2017-05-17 18:22     ` Leo Famulari
  0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2017-05-17 18:22 UTC (permalink / raw)
  To: Marius Bakke; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

On Wed, May 17, 2017 at 04:17:18PM +0200, Marius Bakke wrote:
> Marius Bakke <mbakke@fastmail.com> writes:
> 
> > Leo Famulari <leo@famulari.name> writes:
> >
> > [...]
> >
> >> In gnu/packages/mes.scm:
> >>   79: 1 [native-inputs]
> >> In unknown file:
> >>    ?: 0 [string-prefix? #f "x86_64-linux" ...]
> >>
> >> ERROR: In procedure string-prefix?:
> >> ERROR: In procedure string-prefix?: Wrong type argument in position 1 (expecting string): #f
> >
> > This seems to be because system is not x86_64, and
> > (%current-target-system) evaluates to false. I *think* the attached
> > patch solves it.
> 
> I pushed a one-liner variant. Can you try restarting the evaluation?

Done!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-17 18:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-17 11:51 Hydra evaluation failure Leo Famulari
2017-05-17 13:59 ` Marius Bakke
2017-05-17 14:17   ` Marius Bakke
2017-05-17 18:22     ` Leo Famulari

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).