From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.user Subject: Re: guile 2.0 and slib build procedure: cache bug? Date: Fri, 11 Mar 2022 19:50:34 +0100 Message-ID: References: Reply-To: mikael@djurfeldt.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5129"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Greg Troxel Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Mar 11 19:52:06 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 1nSkMw-00016y-07 for guile-user@m.gmane-mx.org; Fri, 11 Mar 2022 19:52:06 +0100 Original-Received: from localhost ([::1]:37492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSkMv-0003hd-1Z for guile-user@m.gmane-mx.org; Fri, 11 Mar 2022 13:52:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSkLh-0000sj-JU for guile-user@gnu.org; Fri, 11 Mar 2022 13:50:49 -0500 Original-Received: from mail-vs1-f42.google.com ([209.85.217.42]:45799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSkLe-0007gx-SM for guile-user@gnu.org; Fri, 11 Mar 2022 13:50:49 -0500 Original-Received: by mail-vs1-f42.google.com with SMTP id d64so10441572vsd.12 for ; Fri, 11 Mar 2022 10:50:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=jH7wswu+ujZPpzpyqYhUR06h9ORM9VH4jFFX/xmgLJQ=; b=kd30wyUjlS60IFYVxOQ8GptCuIjSXBZGhgIOenYYdfjMapn94TDUKZrvDqu3pvsR29 7R+empOohzJmjIrqrw5iw2kDz/2VECwEeo2XvG7Q30OGDSkvxngXRN58K1vdSdb3DNp1 uVS4xGyqYHfPjWiFmFKbKFEt4NQcz8qTeFGpbPfpRvBB6rpxR75B+KSonjB7ySIMBvwq zY5nZ/fNDJjpvDhwxqSr2QE+LAe71RV5Vl0Vj1Rr4a/36Vpn2ufdYPSq1bG4mS9Z/ruh Zo8zqSINTjeDktqfYvV7QdEm13dTAwRbxKy/VyNVVOTy9YqwC3HjjhL/ag+KymPYudSH fdSg== X-Gm-Message-State: AOAM531rbUpp1fuIXkEmUBwUaC47vF5miuRmV3PcJS1N5zvzIxl0JJM/ SBOeOP5EJuaHbN9I/uv1q5PH8f1VyAusQVz9iYGft8a9 X-Google-Smtp-Source: ABdhPJyl5anHIo/J/da6tELrTY8iHmbUBdnQLDZpI7IhRmLuwMBYosatLl52vaTSnWaeuWnoSzKI0pJeqUGV358D8EM= X-Received: by 2002:a67:e1c4:0:b0:320:9b70:e4de with SMTP id p4-20020a67e1c4000000b003209b70e4demr5684387vsl.64.1647024645409; Fri, 11 Mar 2022 10:50:45 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=209.85.217.42; envelope-from=mdjurfeldt@gmail.com; helo=mail-vs1-f42.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:18190 Archived-At: Hi Greg! The procedure module-export-all! was introduced in 2.0.1. It appears that the guile.init (which is distributed with slib, not guile) which you are using requires guile 2.0.1. Best regards, Mikael On Fri, Mar 11, 2022 at 2:56 AM Greg Troxel wrote: > > 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 # (mif-args)> ((#))] > 3623: 10 [# > (#)] > 2900: 9 [resolve-interface (ice-9 slib) #:select ...] > 2825: 8 [# #:optional autoload version #:key ensure)> # ...] > 3101: 7 [try-module-autoload (ice-9 slib) #f] > 2412: 6 [save-module-excursion # ice-9/boot-9.scm:3102:17 ()>] > 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 >