GNU bug report logs - #32339
"nix import" fails

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Nils Gillmann <ng0@HIDDEN>; dated Tue, 31 Jul 2018 20:01:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 32339 <at> debbugs.gnu.org:


Received: (at 32339) by debbugs.gnu.org; 18 Jun 2019 16:09:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 18 12:09:36 2019
Received: from localhost ([127.0.0.1]:45443 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hdGfv-0004T6-PI
	for submit <at> debbugs.gnu.org; Tue, 18 Jun 2019 12:09:36 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:48604)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreas@HIDDEN>) id 1hdGfs-0004SY-CL
 for 32339 <at> debbugs.gnu.org; Tue, 18 Jun 2019 12:09:33 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 5C79A1108A;
 Tue, 18 Jun 2019 18:09:30 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id TGlmekfgqjGk; Tue, 18 Jun 2019 18:09:29 +0200 (CEST)
Received: from jurong (unknown [IPv6:2a01:e35:8ae3:84e0:b788:a140:b6a3:3101])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id CE43E7EEE;
 Tue, 18 Jun 2019 18:09:28 +0200 (CEST)
Date: Tue, 18 Jun 2019 18:09:22 +0200
From: Andreas Enge <andreas@HIDDEN>
To: 32339 <at> debbugs.gnu.org
Subject: Re: bug#32339: Nix import
Message-ID: <20190618160922.GA20229@jurong>
References: <20180731200033.pmglhnj7fyiw245n@abyayala>
 <20190618133216.GA17404@jurong> <20190618141435.GA19464@jurong>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20190618141435.GA19464@jurong>
User-Agent: Mutt/1.12.0 (2019-05-25)
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 32339
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

So, I just discussed with a Nix expert, Profpatsch.

Apparently something changed in nixpkgs a while ago, so that the following
code does not work any more:
$ export NIX_REMOTE=daemon
$ nix-instantiate --eval --strict -A hello nixpkgs/
trace: `types.list` is deprecated; use `types.listOf` instead
trace: types.optionSet is deprecated; use types.submodule instead
trace: Warning: `showVal` is deprecated and will be removed in the next release, please use `traceSeqN`
trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!
trace: lib.zip is deprecated, use lib.zipAttrsWith instead
trace: `mkStrict' is obsolete; use `mkOverride 0' instead.
trace: warning: `stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead
trace: warning: `stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead
trace: warning: `stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead
trace: warning: `stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead
error: overrideDerivation not yet supported for functors
(use '--show-trace' to show detailed location information)

We should have checked the return value...

Omitting the "--strict" flag is not a solution, since then lazy evaluation
leads to most interesting fields of the result being empty (the return string
value is "<CODE>").

A potential solution is evaluating for different package fields separately,
but this would require more or less a complete rewrite of the importer.
I wonder if the solution would not be to drop it completely... Interestingly
enough, the programmatic nature of Nix makes it much more difficult to import
packages, since we cannot simply use the abstract syntax tree of the
textual representation of a package.

Here are a few possible commands to run:
$ nix-instantiate --eval --strict -E "with import $PATH_TO_NIXPKGS {}; singular.version"
"4.1.1p2"

$ nix-instantiate --eval --strict -E "with import $PATH_TO_NIXPKGS {}; map (drv: drv.name) singular.buildInputs"
[ "gmp-6.1.2" "ncurses-6.1-20190112" "readline-6.3p08" "ntl-11.3.2" "flint-2.5.2" "cddlib-0.94j" ]

$ nix-instantiate --eval --strict -E "with import $PATH_TO_NIXPKGS {}; map (drv: drv.name) singular.nativeBuildInputs"
[ "bison-3.3.2" "perl-5.28.2" "pkg-config-0.29.2" "hook" ]
(notice that there is now a difference between build and native build
inputs, and even more types)

$ nix-instantiate --eval --strict -E "with import $PATH_TO_NIXPKGS {}; singular.src"
[error message]

$ nix-instantiate --eval --strict -E "with import $PATH_TO_NIXPKGS {}; (singular.override { fetchurl = lib.id; }).src"
{ sha256 = "07x9kri8vl4galik7lr6pscq3c51n8570pyw64i7gbj0m706f7wf"; url = "http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/4-1-1/singular-4.1.1p2.tar.gz"; }

$ nix-instantiate --eval --strict -E "with import $PATH_TO_NIXPKGS {}; (linbox.override { fetchurl = lib.id; }).src"
[error message]

$ nix-instantiate --eval --strict -E "with import $PATH_TO_NIXPKGS {}; (linbox.override { fetchFromGitHub = lib.id; }).src"
{ owner = "linbox-team"; repo = "linbox"; rev = "v1.6.3"; sha256 = "10j6dspbsq7d2l4q3y0c1l1xwmaqqba2fxg59q5bhgk9h5d7q571"; }

So for the latter two cases, one would need to try both and catch errors.

Andreas





Information forwarded to bug-guix@HIDDEN:
bug#32339; Package guix. Full text available.

Message received at 32339 <at> debbugs.gnu.org:


Received: (at 32339) by debbugs.gnu.org; 18 Jun 2019 14:14:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 18 10:14:42 2019
Received: from localhost ([127.0.0.1]:45351 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hdEsk-0001Hn-BD
	for submit <at> debbugs.gnu.org; Tue, 18 Jun 2019 10:14:42 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:45146)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreas@HIDDEN>) id 1hdEsh-0001Hd-TB
 for 32339 <at> debbugs.gnu.org; Tue, 18 Jun 2019 10:14:40 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id F2FCB11038;
 Tue, 18 Jun 2019 16:14:37 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id HBiKItS_cUho; Tue, 18 Jun 2019 16:14:37 +0200 (CEST)
Received: from jurong (unknown [IPv6:2a01:e35:8ae3:84e0:b788:a140:b6a3:3101])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 4B18211017;
 Tue, 18 Jun 2019 16:14:37 +0200 (CEST)
Date: Tue, 18 Jun 2019 16:14:35 +0200
From: Andreas Enge <andreas@HIDDEN>
To: 32339 <at> debbugs.gnu.org
Subject: Re: bug#32339: Nix import
Message-ID: <20190618141435.GA19464@jurong>
References: <20180731200033.pmglhnj7fyiw245n@abyayala>
 <20190618133216.GA17404@jurong>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20190618133216.GA17404@jurong>
User-Agent: Mutt/1.12.0 (2019-05-25)
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 32339
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

Sorry, I did not look at the error message well enough, the bug is indeed
still the same as reported.

Andreas





Information forwarded to bug-guix@HIDDEN:
bug#32339; Package guix. Full text available.

Message received at 32339 <at> debbugs.gnu.org:


Received: (at 32339) by debbugs.gnu.org; 18 Jun 2019 13:32:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 18 09:32:22 2019
Received: from localhost ([127.0.0.1]:43948 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hdEDm-00067M-FZ
	for submit <at> debbugs.gnu.org; Tue, 18 Jun 2019 09:32:22 -0400
Received: from hera.aquilenet.fr ([185.233.100.1]:44204)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreas@HIDDEN>) id 1hdEDk-00067D-Q1
 for 32339 <at> debbugs.gnu.org; Tue, 18 Jun 2019 09:32:21 -0400
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id EC6E6B3B9;
 Tue, 18 Jun 2019 15:32:18 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id HgdCieTrJqBr; Tue, 18 Jun 2019 15:32:18 +0200 (CEST)
Received: from jurong (unknown [IPv6:2a01:e35:8ae3:84e0:b788:a140:b6a3:3101])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 437EFB38A;
 Tue, 18 Jun 2019 15:32:18 +0200 (CEST)
Date: Tue, 18 Jun 2019 15:32:16 +0200
From: Andreas Enge <andreas@HIDDEN>
To: 32339 <at> debbugs.gnu.org
Subject: Nix import
Message-ID: <20190618133216.GA17404@jurong>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.12.0 (2019-05-25)
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 32339
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

This bug is resolved by following the current documentation and
executing
   export NIX_REMOTE=daemon
.

However, even then the import fails:

$ guix import nix nixpkgs/ hello

;;; SSAX warning: Skipping PI: xml

trace: warning: `stdenv.isArm` is deprecated after 18.03. Please use `stdenv.isAarch32` instead
trace: lib.zip is deprecated, use lib.zipAttrsWith instead
trace: Warning: `showVal` is deprecated and will be removed in the next release, please use `traceSeqN`
trace: `mkStrict' is obsolete; use `mkOverride 0' instead.
trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!


And after about 15 minutes the import crashes with a stack overflow.

Andreas





Information forwarded to bug-guix@HIDDEN:
bug#32339; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 Jul 2018 20:00:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 31 16:00:04 2018
Received: from localhost ([127.0.0.1]:36691 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fkaoO-0004rd-4a
	for submit <at> debbugs.gnu.org; Tue, 31 Jul 2018 16:00:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55445)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ng0@HIDDEN>) id 1fkaoL-0004qc-Qj
 for submit <at> debbugs.gnu.org; Tue, 31 Jul 2018 16:00:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ng0@HIDDEN>) id 1fkaoF-0007Ak-KX
 for submit <at> debbugs.gnu.org; Tue, 31 Jul 2018 15:59:56 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:55201)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <ng0@HIDDEN>) id 1fkaoF-0007AV-FR
 for submit <at> debbugs.gnu.org; Tue, 31 Jul 2018 15:59:55 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46415)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <ng0@HIDDEN>)
 id 1fkaoE-0004wa-4C
 for bug-guix@HIDDEN; Tue, 31 Jul 2018 15:59:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ng0@HIDDEN>) id 1fkaoD-00078D-Cp
 for bug-guix@HIDDEN; Tue, 31 Jul 2018 15:59:54 -0400
Received: from conspiracy.of.n0.is ([2a01:4f8:1c0c:7ad0::1]:37698)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <ng0@HIDDEN>) id 1fkaoD-00076U-0Q
 for bug-guix@HIDDEN; Tue, 31 Jul 2018 15:59:53 -0400
Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id 194cbe6c
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <bug-guix@HIDDEN>;
 Tue, 31 Jul 2018 19:59:48 +0000 (UTC)
Date: Tue, 31 Jul 2018 20:00:33 +0000
From: Nils Gillmann <ng0@HIDDEN>
To: bug-guix@HIDDEN
Subject: "nix import" fails
Message-ID: <20180731200033.pmglhnj7fyiw245n@abyayala>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.4 (-----)

Hooray, a bad subject line!

* nixpkgs is on commit d817ccbf832419abdd82bc617e058b8a196f6e98
* guix is on commit 6915d20f05363f61cef9c4ed7ebda3fe5a19325d
* GUIX_PACKAGE_PATH is unset

FWIW, this was while running the Nix daemon with my "service", but it
is not required for the imports.


abyayala$ guix import nix ~/re-src/nixpkgs curl
;;; SSAX warning: Skipping PI: xml

trace: stdenv.isArm is deprecated after 18.03
trace: lib.zip is deprecated, use lib.zipAttrsWith instead
trace: Warning: `showVal` is deprecated and will be removed in the next release, please use `traceSeqN`
trace: `mkStrict' is obsolete; use `mkOverride 0' instead.
trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!
error: stack overflow (possible infinite recursion)
Backtrace:
In guix/import/snix.scm:
    191:9 19 (loop #<input: #{read pipe}# 14> () #f _)
    191:9 18 (loop #<input: #{read pipe}# 14> () #f _)
    191:9 17 (loop #<input: #{read pipe}# 14> () #f _)
    191:9 16 (loop #<input: #{read pipe}# 14> () #f _)
    191:9 15 (loop #<input: #{read pipe}# 14> () #f _)
    191:9 14 (loop #<input: #{read pipe}# 14> () #f _)
    191:9 13 (loop #<input: #{read pipe}# 14> () #f _)
    191:9 12 (loop #<input: #{read pipe}# 14> () #f _)
    191:9 11 (loop #<input: #{read pipe}# 14> () #f _)
    191:9 10 (loop #<input: #{read pipe}# 14> () #f _)
    191:9  9 (loop #<input: #{read pipe}# 14> () #f _)
    191:9  8 (loop #<input: #{read pipe}# 14> () #f _)
    191:9  7 (loop #<input: #{read pipe}# 14> () #f _)
    191:9  6 (loop #<input: #{read pipe}# 14> () #f _)
    191:9  5 (loop #<input: #{read pipe}# 14> () #f _)
    191:9  4 (loop #<input: #{read pipe}# 14> () #f _)
    191:9  3 (loop #<input: #{read pipe}# 14> () #f _)
    191:9  2 (loop #<input: #{read pipe}# 14> () #f _)
    191:9  1 (loop #<input: #{read pipe}# 14> () #f _)
In sxml/upstream/SSAX.scm:
  1896:21  0 (_ #<input: #{read pipe}# 14> #f #<procedure 7f8b08622…> …)

sxml/upstream/SSAX.scm:1896:21: Throw to key `parser-error' with args `(#<input: #{read pipe}# 14> "EOF while 
reading a token " "reading char data")'.





Acknowledgement sent to Nils Gillmann <ng0@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#32339; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 18 Jun 2019 16:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.