From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#19630: error message when referencing non-existing output not helpful Date: Mon, 19 Jan 2015 12:51:20 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDFn9-00074o-PC for bug-guix@gnu.org; Mon, 19 Jan 2015 12:07:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDFn5-0005r7-9R for bug-guix@gnu.org; Mon, 19 Jan 2015 12:07:07 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:52772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDFn5-0005qv-0U for bug-guix@gnu.org; Mon, 19 Jan 2015 12:07:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YDFn4-0003rX-Cj for bug-guix@gnu.org; Mon, 19 Jan 2015 12:07:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDAro-0006oF-Rn for bug-guix@gnu.org; Mon, 19 Jan 2015 06:51:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDAri-0005vQ-Bm for bug-guix@gnu.org; Mon, 19 Jan 2015 06:51:36 -0500 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:48749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDAri-0005v4-2G for bug-guix@gnu.org; Mon, 19 Jan 2015 06:51:30 -0500 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id A8DD6380524 for ; Mon, 19 Jan 2015 12:51:27 +0100 (CET) Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v-KWl2hjAAr3 for ; Mon, 19 Jan 2015 12:51:21 +0100 (CET) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP for ; Mon, 19 Jan 2015 12:51:21 +0100 (CET) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 19630@debbugs.gnu.org When a package recipe specifies as input a non-existing output of a package, the build process fails with a rather unhelpful late error message. The following is the output of building a package that depends on the "bin" output of libtool, which has since been removed. ~~~~~ [rwurmus@workstation:~/code/guix] (599) $ ./pre-inst-env guix build ijs Backtrace: In ice-9/boot-9.scm: 157: 18 [catch #t # ...] In unknown file: ?: 17 [apply-smob/1 #] In ice-9/boot-9.scm: 63: 16 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 15 [eval # #] In ice-9/boot-9.scm: 2401: 14 [save-module-excursion #] 4050: 13 [#] 1724: 12 [%start-stack load-stack ...] 1729: 11 [#] In unknown file: ?: 10 [primitive-load "/home/rwurmus/code/guix/scripts/guix"] In guix/ui.scm: 787: 9 [run-guix-command build "ijs"] In ice-9/boot-9.scm: 157: 8 [catch srfi-34 # ...] 157: 7 [catch system-error ...] In guix/scripts/build.scm: 436: 6 [#] In guix/ui.scm: 307: 5 [show-what-to-build # (#) #:dry-run? ...] In guix/derivations.scm: 226: 4 [substitution-oracle # (#)] In guix/store.scm: 705: 3 [substitutable-paths # #] In srfi/srfi-1.scm: 619: 2 [for-each # #] In guix/serialization.scm: 85: 1 [write-string #f #] In unknown file: ?: 0 [string->utf8 #f] ERROR: In procedure string->utf8: ERROR: In procedure string->utf8: Wrong type argument in position 1 (expecting string): #f ~~~~~ The error message is triggered by an unexpected #f in a long list of paths. It would be more helpful if an earlier error was produced that indicates that the cause is a non-existing package output.