From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: Using the Guile json module in a gexp Date: Mon, 11 Sep 2017 07:58:41 +0100 Message-ID: <20170911075841.13e75eb9@cbaines.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/jJr8RrU29gs0OQ_ndgzaLJB"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drIgH-0007If-Sp for help-guix@gnu.org; Mon, 11 Sep 2017 02:58:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drIgD-0008Gh-30 for help-guix@gnu.org; Mon, 11 Sep 2017 02:58:53 -0400 Received: from li622-129.members.linode.com ([212.71.249.129]:54138 helo=mira.cbaines.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drIgC-0008GQ-Ss for help-guix@gnu.org; Mon, 11 Sep 2017 02:58:49 -0400 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id C7EAD13E4BB for ; Mon, 11 Sep 2017 07:58:46 +0100 (BST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --Sig_/jJr8RrU29gs0OQ_ndgzaLJB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hey, So I'm having some trouble using the Guile json module in a gexp. I've added (with-imported-modules '((json)) ...), and the module-import-compiled builder crashes. Backtrace: 4 (primitive-load "/gnu/store/35zv0m9wwd2nz3agyywv09d3k5v?") In srfi/srfi-1.scm: 640:9 3 (for-each # ?) In ice-9/eval.scm: 245:16 2 (_ #(#(# "/gn?") #)) In ice-9/boot-9.scm: 1519:24 1 (_ "./json.scm") In unknown file: 0 (stat "./json.scm" #) ERROR: In procedure stat: ERROR: In procedure stat: No such file or directory: "./json.scm" The builder doesn't call stat directly, the stack trace gives line numbers within other code, and its infeasible to add debugging mesasges to the builder, as that requires rebuilding the world (at least with the way I am running it). I'll try and see if I can evaluate the same code outside of the derivation to track down where it's calling stat, but let me know if you can see what is going wrong. Thanks, Chris --Sig_/jJr8RrU29gs0OQ_ndgzaLJB Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlm2NCJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9Xc6zw//RMOdtw51Lsav+rsK8mT5ZPwzXs+avKlNZ8G6CD3w04VojFZmAnLzKzB9 vTgK31Q7w4yP3CXNzKAIS8ekpkrYM6f42BKV7XWFdbU5m2xfVZtIvb/X8Kiss/06 oo/jwPqhg0IRdl/dxfAzj3/KC5elt9rqsCsz5/9qWRTD5qnpdffcRVWZh59egae9 YL+fRjD5oRSmqcZ1iifBGDG+JK+i1PCrPp7ppKTIrdORIkBvINYhIAADAhcFlqB/ fs3u2an2kPteuWSJk3TXJiPyH2jQEjGyEqYKQH3ZyNrgTnbYnzc2JCXFpbP1fY77 BBJiJLzKsISureO+ovnr5GhR2DP7jJzBbO3qINCNowmaqr4YLP1AFrwxo/s55cLm eyVlh/pSJMYIbBLVCRBzf4yajO3ZWbcO4WnBcBHC84d95VUQppPVk28bZpNidDMy 2MNUe1wyYBnMkTeqAllgQ1gZmZZJpMoQt1UT5X25+rBoe+ofnYlRDN0FLCqs1e4h qTlEj12HB+RDj3vMBSlP5t0ZuZfEVbLNosaE6q/YfhY5uDO3wfTxMCAdcgrUcZ2W Fj4tcnZVk2MfNsS1QOyzP+jAaZHypmti2XwUCltImeBTysx5MJeViIiojfrc2dXp hBhFcS20SovJ5dwm9D1IyUxzbDJ6TPXUy/O0xeAd4MELMd+xJx4= =ZuYr -----END PGP SIGNATURE----- --Sig_/jJr8RrU29gs0OQ_ndgzaLJB--