From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.user Subject: guile 2.0 and slib build procedure: cache bug? Date: Thu, 10 Mar 2022 20:49:00 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16331"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Mar 11 02:56:25 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSUW1-00041A-Eg for guile-user@m.gmane-mx.org; Fri, 11 Mar 2022 02:56:25 +0100 Original-Received: from localhost ([::1]:42914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSUW0-0005sh-07 for guile-user@m.gmane-mx.org; Thu, 10 Mar 2022 20:56:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSUP0-0004Sj-6g for guile-user@gnu.org; Thu, 10 Mar 2022 20:49:13 -0500 Original-Received: from s1.lexort.com ([71.19.148.97]:56369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSUOy-0003rz-48 for guile-user@gnu.org; Thu, 10 Mar 2022 20:49:09 -0500 Original-Received: by s1.lexort.com (Postfix, from userid 10853) id 961F54107D1; Thu, 10 Mar 2022 20:49:02 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1646963342; bh=o8FRlEORpA1M2kyVAjFEUDXfC3S3zuDuSV+vwsc2HpA=; h=From:To:Subject:Date; b=DUoobOZOBWJXNyEdp6rQ1JARD7/jRbh9ZrHfMPl6UzA7mdgIsK/lY6sFxzOyValRw UZ3mBwwCPVOg7hvtBGn20gW0852CJv6Xd/8uuNKhb9TKW9WG451stUXy8v+mrATinD vUNf2SBx+R60rQGtFXAulMHGHZ4RMuC+8tw2284M= OpenPGP: id=098ED60E Received-SPF: pass client-ip=71.19.148.97; envelope-from=gdt@lexort.com; helo=s1.lexort.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18182 Archived-At: --=-=-= Content-Type: text/plain Yes, I know guile 2.0 is old. However, in a packaging system there are programs that still need 2.2, some that need 2.0, and then there is lilypond, documented to need 1.8. So in pkgsrc we are trying to cope with 4 versions. For slib, today we have two versions, for 2.0 and 2.2 (just because 3.0 is newly arrived in pkgsrc after resolving problems with pax and JIT). For the guile 2.0 slib package, it mostly works, and builds slibcat at package time in a chroot and then the package installs that fine. If I start guile and (use-modules (ice-9 slib)), it compiles two files and produces: $ ls -l .cache/guile/ccache/2.0-LE-8-2.0/usr/pkg/share/slib/ total 52 -rw-r--r-- 1 gdt users 30382 Mar 10 20:40 guile.init.go -rw-r--r-- 1 gdt users 16900 Mar 10 20:40 require.scm.go which all looks fine. I can start guile and do it again. But then, if I try to build the slib package, I get a failure, below. If I remove these two cached files, the program runs. The error is a complaint abotu module-export-all! being unbound. Again, I know guile 2.0 is unsupported and probably nobody cares, but I thought it would be useful to point this out and perhaps someone has a clue. In the meantime I'll try to wave my magic wand again and get all the upstreams of guile-using packages that don't work with 3.0 to have a new stable, formal release that works with 3.0 :-) Thanks, Greg (a guile user since probably the 90s) => Creating installation directories /bin/rm -f /tmp/work/devel/guile-slib/work/.destdir/usr/pkg/guile/2.0/share/guile/site/2.0/slib /bin/ln -sf /usr/pkg/share/slib /tmp/work/devel/guile-slib/work/.destdir/usr/pkg/guile/2.0/share/guile/site/2.0/slib /bin/rm -f /tmp/work/devel/guile-slib/work/.destdir/usr/pkg/guile/2.0/share/guile/site/2.0/slibcat cd /tmp/work/devel/guile-slib/work/.destdir/usr/pkg/guile/2.0/share/guile/site/2.0/slib && GUILE_LOAD_PATH=/usr/pkg/share GUILE_IMPLEMENTATION_PATH=/tmp/work/devel/guile-slib/work/.destdir/usr/pkg/guile/2.0/share/guile/site/2.0 /usr/pkg/guile/2.0/bin/guile -q -c "(begin (use-modules (ice-9 slib)) (require 'new-catalog))" Backtrace: In ice-9/command-line.scm: 181: 19 [# #] In unknown file: ?: 18 [eval (begin # #) #] In ice-9/eval.scm: 505: 17 [# (begin # #)] In ice-9/psyntax.scm: 1107: 16 [expand-top-sequence ((begin (use-modules #) (require #))) () ...] 990: 15 [scan ((begin (use-modules #) (require #))) () ...] 990: 14 [scan ((use-modules (ice-9 slib)) (require (quote new-catalog))) () ...] 279: 13 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...] In ice-9/boot-9.scm: 3622: 12 [process-use-modules (((ice-9 slib)))] 712: 11 [map # ((#))] 3623: 10 [# (#)] 2900: 9 [resolve-interface (ice-9 slib) #:select ...] 2825: 8 [# # ...] 3101: 7 [try-module-autoload (ice-9 slib) #f] 2412: 6 [save-module-excursion #] 3121: 5 [#] In unknown file: ?: 4 [primitive-load-path "ice-9/slib" ...] In ice-9/boot-9.scm: 1734: 3 [%start-stack load-stack ...] 1739: 2 [#] In unknown file: ?: 1 [primitive-load-path "slib/guile.init"] In /usr/pkg/guile/2.0/share/guile/site/2.0/slib/guile-2.init: 174: 0 [#] /usr/pkg/guile/2.0/share/guile/site/2.0/slib/guile-2.init:174:0: In procedure #: /usr/pkg/guile/2.0/share/guile/site/2.0/slib/guile-2.init:174:0: In procedure module-lookup: Unbound variable: module-export-all! *** Error code 1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQS7wyAjWilQwVHG9Vsf2nroCY7WDgUCYiqqjAAKCRAf2nroCY7W DqFzAJ9lJxGm5bVeepZc6YIqtHpweESN4QCZAbQ3fHdd5TjHK1lWstBgwWtKmmg= =zdxD -----END PGP SIGNATURE----- --=-=-=--