guix lint fails with -dc switch missing

DoneSubmitted by Pjotr Prins.
Details
4 participants
  • Ludovic Courtès
  • Pjotr Prins
  • Pjotr Prins
  • Ricardo Wurmus
Owner
unassigned
Severity
normal
P
P
Pjotr Prins wrote on 15 Feb 2016 11:59
(address . bug-guix@gnu.org)
20160215105953.GA26816@thebird.nl
When I run lint on a recent ceckout
./pre-inst-env guix lint
or
./pre-inst-env guix lint python
I get
filtered-port: failed to execute ' -dc ': No such file or directory
Backtrace:In unknown file: ?: 19 [apply-smob/1 #<catch-closure 16dfcc0>]In ice-9/boot-9.scm: 63: 18 [call-with-prompt prompt0 ...]In ice-9/eval.scm: 432: 17 [eval # #]In ice-9/boot-9.scm:2401: 16 [save-module-excursion #<procedure 16fc940 at ice-9/boot-9.scm:4045:3 ()>]4050: 15 [#<procedure 16fc940 at ice-9/boot-9.scm:4045:3 ()>]1724: 14 [%start-stack load-stack ...]1729: 13 [#<procedure 1713ea0 ()>]In unknown file: ?: 12 [primitive-load "/export2/izip/git/opensource/scheme/guix/scripts/guix"]In guix/ui.scm:1177: 11 [run-guix-command lint "python"]In srfi/srfi-1.scm: 619: 10 [for-each #<procedure 280bbe0 at guix/scripts/lint.scm:867:20 (spec)> #] 619: 9 [for-each #<procedure 388c120 at guix/scripts/lint.scm:778:14 (checker)> #]In guix/scripts/lint.scm: 608: 8 [check-vulnerabilities #] 602: 7 [#<procedure 2808f20 at guix/scripts/lint.scm:600:4 (package)> #]In unknown file: ?: 6 [force #<promise #<procedure 2806000 at guix/scripts/lint.scm:589:16 ()>>]In guix/scripts/lint.scm: 592: 5 [#<procedure 2806000 at guix/scripts/lint.scm:589:16 ()>]In ice-9/boot-9.scm: 157: 4 [catch getaddrinfo-error ...]In guix/cve.scm: 67: 3 [call-with-cve-port #<procedure 27e0000 at guix/cve.scm:139:3 (port)>]In guix/utils.scm: 255: 2 [call-with-decompressed-port gzip ...]In guix/cve.scm: 143: 1 [#<procedure 27e0000 at guix/cve.scm:139:3 (port)> #<input: #{read pipe}# 12>] 133: 0 [xml->vulnerabilities #<input: #{read pipe}# 12>]
guix/cve.scm:133:11: In procedure xml->vulnerabilities:guix/cve.scm:133:11: Throw to key `parser-error' with args `(#<input: #{read pipe}# 12> "XML [22], unexpected EOF")'.Backtrace:In ice-9/boot-9.scm:2401: 19 [save-module-excursion #<procedure 16fc940 at ice-9/boot-9.scm:4045:3 ()>]4050: 18 [#<procedure 16fc940 at ice-9/boot-9.scm:4045:3 ()>]1724: 17 [%start-stack load-stack ...]1729: 16 [#<procedure 1713ea0 ()>]In unknown file: ?: 15 [primitive-load "/export2/izip/git/opensource/scheme/guix/scripts/guix"]In guix/ui.scm:1177: 14 [run-guix-command lint "python"]In srfi/srfi-1.scm: 619: 13 [for-each #<procedure 280bbe0 at guix/scripts/lint.scm:867:20 (spec)> #] 619: 12 [for-each #<procedure 388c120 at guix/scripts/lint.scm:778:14 (checker)> #]In guix/scripts/lint.scm: 608: 11 [check-vulnerabilities #] 602: 10 [#<procedure 2808f20 at guix/scripts/lint.scm:600:4 (package)> #]In unknown file: ?: 9 [force #<promise #<procedure 2806000 at guix/scripts/lint.scm:589:16 ()>>]In guix/scripts/lint.scm: 592: 8 [#<procedure 2806000 at guix/scripts/lint.scm:589:16 ()>]In ice-9/boot-9.scm: 157: 7 [catch getaddrinfo-error ...]In guix/cve.scm: 67: 6 [call-with-cve-port #<procedure 27e0000 at guix/cve.scm:139:3 (port)>]In guix/utils.scm: 255: 5 [call-with-decompressed-port gzip ...]In guix/cve.scm: 143: 4 [#<procedure 27e0000 at guix/cve.scm:139:3 (port)> #<closed: file 0>] 133: 3 [xml->vulnerabilities #<closed: file 0>]In ice-9/boot-9.scm: 105: 2 [#<procedure 1672180 at ice-9/boot-9.scm:97:6 (thrown-k . args)> parser-error ...] 65: 1 [abort-to-prompt catch7 parser-error ...]In unknown file: ?: 0 [scm-error misc-error #f "~A ~S" ("decompressed-port failure" (24327)) #f]
ERROR: In procedure scm-error:ERROR: decompressed-port failure (24327)
R
R
Ricardo Wurmus wrote on 15 Feb 2016 12:28
(name . Pjotr Prins)(address . pjotr.public12@thebird.nl)(address . 22677@debbugs.gnu.org)
idjbn7i6wmp.fsf@bimsb-sys02.mdc-berlin.net
Pjotr Prins <pjotr.public12@thebird.nl> writes:
Toggle quote (13 lines)> When I run lint on a recent ceckout>> ./pre-inst-env guix lint>> or>> ./pre-inst-env guix lint python>> I get>> filtered-port: failed to execute ' -dc ': No such file or directory>
This looks like it is a result of an undefined %bzip2, %xz, and/or %gzipvalue. These values are used by utils.scm to assemble a command. Theyare defined in config.scm, which is created at configure/build time.
Do you have config.scm in the root directory of the repository? Did yourun ./configure?
~~ Ricardo
P
P
Pjotr Prins wrote on 15 Feb 2016 12:48
(name . Ricardo Wurmus)(address . ricardo.wurmus@mdc-berlin.de)
20160215114833.GA27061@thebird.nl
On Mon, Feb 15, 2016 at 12:28:14PM +0100, Ricardo Wurmus wrote:
Toggle quote (4 lines)> This looks like it is a result of an undefined %bzip2, %xz, and/or %gzip> value. These values are used by utils.scm to assemble a command. They> are defined in config.scm, which is created at configure/build time.
Nice error message ;)
Toggle quote (3 lines)> Do you have config.scm in the root directory of the repository? Did you> run ./configure?
I rebuilt the thing and now it works again (!) using
https://github.com/pjotrp/guix-notes/blob/master/INSTALL.org#other-installation-routes-building-guix-from-source
There is, however, no config.scm in my tree.
Pj.
L
L
Ludovic Courtès wrote on 21 Feb 2016 23:36
(name . Pjotr Prins)(address . pjotr2016@thebird.nl)
87y4adr8ql.fsf@gnu.org
Pjotr Prins <pjotr2016@thebird.nl> skribis:
Toggle quote (7 lines)> On Mon, Feb 15, 2016 at 12:28:14PM +0100, Ricardo Wurmus wrote:>> This looks like it is a result of an undefined %bzip2, %xz, and/or %gzip>> value. These values are used by utils.scm to assemble a command. They>> are defined in config.scm, which is created at configure/build time.>> Nice error message ;)
Something is fishy: ./configure cannot leave these variables empty.
Toggle quote (9 lines)>> Do you have config.scm in the root directory of the repository? Did you>> run ./configure?>> I rebuilt the thing and now it works again (!) using>> https://github.com/pjotrp/guix-notes/blob/master/INSTALL.org#other-installation-routes-building-guix-from-source>> There is, however, no config.scm in my tree.
Running ‘configure’ creates guix/config.scm. Could you check that thisis the case?
Thanks,Ludo’.
P
P
Pjotr Prins wrote on 22 Feb 2016 09:15
(name . Ludovic Courtès)(address . ludo@gnu.org)
20160222081542.GB597@thebird.nl
On Sun, Feb 21, 2016 at 11:36:50PM +0100, Ludovic Courtès wrote:
Toggle quote (3 lines)> Running ‘configure’ creates guix/config.scm. Could you check that this> is the case?
Got it:

(define %gzip "/home/wrk/.guix-profile/bin/gzip")
(define %bzip2 "/home/wrk/opt/guix-build-system/bin/bzip2")
(define %xz "/home/wrk/opt/guix-build-system/bin/xz")
--
L
L
Ludovic Courtès wrote on 22 Feb 2016 12:18
(name . Pjotr Prins)(address . pjotr2016@thebird.nl)
87vb5houx0.fsf@gnu.org
Pjotr Prins <pjotr2016@thebird.nl> skribis:
Toggle quote (16 lines)> On Sun, Feb 21, 2016 at 11:36:50PM +0100, Ludovic Courtès wrote:>> Running ‘configure’ creates guix/config.scm. Could you check that this>> is the case?>> Got it:>>> (define %gzip> "/home/wrk/.guix-profile/bin/gzip")>> (define %bzip2> "/home/wrk/opt/guix-build-system/bin/bzip2")>> (define %xz> "/home/wrk/opt/guix-build-system/bin/xz")
OK, looks good. Not sure what happened.
Thanks,Ludo’.
L
L
Ludovic Courtès wrote on 22 Feb 2016 12:18
control message for bug #22677
(address . control@debbugs.gnu.org)
87twl1ouwe.fsf@gnu.org
tags 22677 notabug
L
L
Ludovic Courtès wrote on 22 Feb 2016 12:18
(address . control@debbugs.gnu.org)
87si0louw6.fsf@gnu.org
close 22677 0.9.0
?
Your comment

This issue is archived.

To comment on this conversation send email to 22677@debbugs.gnu.org