From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: Re: [PATCH] build: pull: Compile .scm files in one process. Date: Wed, 11 Nov 2015 13:12:27 +0100 Message-ID: <87mvuku444.fsf@T420.taylan> References: <87si4kxtge.fsf@T420.taylan> <87611gdul8.fsf@gnu.org> <87h9kzy09b.fsf@T420.taylan> <87bnb6c0nh.fsf@gnu.org> <874mgyxhgy.fsf@T420.taylan> <877flpohu6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwUIh-0001le-6P for guix-devel@gnu.org; Wed, 11 Nov 2015 07:16:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwUGM-0006yG-GO for guix-devel@gnu.org; Wed, 11 Nov 2015 07:14:55 -0500 In-Reply-To: <877flpohu6.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 10 Nov 2015 19:00:17 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") skribi= s: > >> compiling '/gnu/store/dbkpm8rqjz096w0bchmnlj8gw15q2riy-guix-latest/guix/= scripts/environment.scm'... >> Backtrace: >> In ice-9/boot-9.scm: >> 2401: 19 [save-module-excursion #] >> 3085: 18 [#] >> In unknown file: >> ?: 17 [primitive-load-path "gnu/packages/cross-base" ...] >> In ice-9/eval.scm: >> 505: 16 [# (define-modu= le # # ...)] >> In ice-9/psyntax.scm: >> 1106: 15 [expand-top-sequence ((define-module # # # ...)) () ((top)) ...] >> 989: 14 [scan ((define-module (gnu packages cross-base) #:use-module ..= .)) () ...] >> 279: 13 [scan ((#(syntax-object let # ...) (#) (# #) ...)) () ...] >> In ice-9/eval.scm: >> 411: 12 [eval # ()] >> In ice-9/boot-9.scm: >> 2951: 11 [define-module* (gnu packages cross-base) #:filename ...] >> 2926: 10 [resolve-imports ((#) (#) (#) (#) ...)] >> 2864: 9 [resolve-interface (gnu packages commencement) #:select ...] >> 2789: 8 [# # ...] >> 3065: 7 [try-module-autoload (gnu packages commencement) #f] >> 2401: 6 [save-module-excursion #] >> 3085: 5 [#] >> In unknown file: >> ?: 4 [primitive-load-path "gnu/packages/commencement" ...] >> In ice-9/eval.scm: >> 432: 3 Exception thrown while printing backtrace: >> ERROR: In procedure package-location: Wrong type argument: Error while p= rinting exception. > > (gnu scripts environment) imports (gnu packages bash), so we end up > loading a big bunch of (gnu packages =E2=80=A6) modules. > > The problem is that (gnu packages commencement) refers to (gnu packages > bash) from its top-level. But here, we are loading (gnu packages bash) > first, which somehow entails loading (gnu packages cross-base), which > loads (gnu packages commencement), which sees a (gnu packages bash) > module containing zero bindings. > > What=E2=80=99s unclear to me though is why (gnu packages cross-base) gets= loaded > in the first place. > > Could you investigate in that direction? It seems to be (guix scripts environment) -> (gnu system linux-container) -> (gnu system) -> (gnu packages firmware) -> (gnu packages cross-base) It would be amazing if we could easily create graphs of Guile modules... Taylan