From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: request for help with module build/install Date: Sat, 04 Jul 2015 19:19:47 -0700 Message-ID: <4E8012C4-1450-4BCE-99AA-2007F20F1C0D@alumni.caltech.edu> References: <4853AD2C-C8E3-4CD3-88B0-6823EC8A15B5@alumni.caltech.edu> <1435806778.4336.53.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_8D76F76B-359E-4BA0-8E77-C739CF0FB9A0" X-Trace: ger.gmane.org 1436062832 12067 80.91.229.3 (5 Jul 2015 02:20:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jul 2015 02:20:32 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jul 05 04:20:23 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZBZXb-0004G8-B4 for guile-user@m.gmane.org; Sun, 05 Jul 2015 04:20:23 +0200 Original-Received: from localhost ([::1]:45641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBZXa-0002bX-JN for guile-user@m.gmane.org; Sat, 04 Jul 2015 22:20:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBZXR-0002bE-1k for guile-user@gnu.org; Sat, 04 Jul 2015 22:20:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBZXN-0001Rb-QO for guile-user@gnu.org; Sat, 04 Jul 2015 22:20:12 -0400 Original-Received: from vms173023pub.verizon.net ([206.46.173.23]:53045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBZXN-0001Qo-JX for guile-user@gnu.org; Sat, 04 Jul 2015 22:20:09 -0400 Original-Received: from [192.168.2.127] ([71.108.227.241]) by vms173023.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NQZ00MIVT502M20@vms173023.mailsrvcs.net> for guile-user@gnu.org; Sat, 04 Jul 2015 21:19:49 -0500 (CDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=S6gku9YP c=1 sm=1 tr=0 a=C7TgS9Pb229lFodQust5qw==:117 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=zOBTXjUuO1YA:10 a=pGLkceISAAAA:8 a=0kmO06l7ap3SsEqoMIcA:9 a=CjuIK1q_8ugA:10 a=q4JgtbUM2ZHvgF1nWy8A:9 a=j8TlUMHbcpv5QAUB:21 a=_W_S_7VecoQA:10 In-reply-to: <1435806778.4336.53.camel@Renee-desktop.suse> X-Mailer: Apple Mail (2.1878.6) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.46.173.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11908 Archived-At: --Apple-Mail=_8D76F76B-359E-4BA0-8E77-C739CF0FB9A0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Jul 1, 2015, at 8:12 PM, Nala Ginrut wrote: > For .scm files, you may put it to (%site-dir) > MOD_PATH :=3D $(shell guile -c "(display (%site-dir))") >=20 > For compiled .go, you may put it to (%site-ccache-dir) here: > COMPILED_MOD :=3D $(shell guile -c "(display (%site-ccache-dir))") >=20 > And it won't be compiled again when you load it. This is not working for me (guile 2.0.11). See below. In addition I = have tried other items. (In addition, when I "sudo -s" to install under /opt/local, I end up = with guild support modules owned by root in my ~/.cache dir.) mwette$ cd /opt/local mwette$ ls -l share/guile/site/2.0/nyacc/ total 184 -rw-r--r-- 1 root admin 69804 Jul 4 18:51 lalr.scm -rw-r--r-- 1 root admin 13564 Jul 4 18:51 lex.scm -rw-r--r-- 1 root admin 4041 Jul 4 18:51 util.scm mwette$ ls -l lib/guile/2.0/site-ccache/nyacc/ total 272 -rw-r--r-- 1 root admin 111444 Jul 4 18:53 lalr.scm.go -rw-r--r-- 1 root admin 15367 Jul 4 18:53 lex.scm.go -rw-r--r-- 1 root admin 5470 Jul 4 18:53 util.scm.go mwette$ GUILE_LOAD_PATH=3D guile calc.scm=20 ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling = /Users/mwette/proj/scheme/myproj/lalr1/dist/test-suite/nyacc/calc.scm ;;; compiling /opt/local/share/guile/site/2.0/nyacc/lalr.scm ;;; compiling /opt/local/share/guile/site/2.0/nyacc/util.scm ;;; compiled = /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/= 2.0/nyacc/util.scm.go ;;; compiled = /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/= 2.0/nyacc/lalr.scm.go ;;; compiling /opt/local/share/guile/site/2.0/nyacc/lex.scm ;;; compiled = /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/= 2.0/nyacc/lex.scm.go ;;; compiled = /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/Users/mwette/proj/scheme/my= proj/lalr1/dist/test-suite/nyacc/calc.scm.go 2 mwette$=20 --Apple-Mail=_8D76F76B-359E-4BA0-8E77-C739CF0FB9A0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii On Jul = 1, 2015, at 8:12 PM, Nala Ginrut <nalaginrut@gmail.com> = wrote:
For .scm files, you may put it to = (%site-dir)
MOD_PATH :=3D $(shell guile -c "(display = (%site-dir))")

For compiled .go, you may put it to = (%site-ccache-dir) here:
COMPILED_MOD :=3D $(shell guile -c "(display = (%site-ccache-dir))")

And it won't be compiled again when you = load it.

This is not working for me = (guile 2.0.11).  See below.  In addition I have tried other = items.
(In addition, when I "sudo -s" to install under = /opt/local, I end up with guild support modules owned by root in my = ~/.cache dir.)

mwette$ cd /opt/local
mwette$ ls -l = share/guile/site/2.0/nyacc/
total = 184
-rw-r--r--  1 root  = admin  69804 Jul  4 18:51 lalr.scm
-rw-r--r--  1 root  admin  13564 Jul  4 18:51 = lex.scm
-rw-r--r--  1 root  = admin   4041 Jul  4 18:51 util.scm

mwette$ ls -l = lib/guile/2.0/site-ccache/nyacc/
total = 272
-rw-r--r--  1 root  = admin  111444 Jul  4 18:53 lalr.scm.go
-rw-r--r--  1 root  admin   15367 = Jul  4 18:53 lex.scm.go
-rw-r--r--  1 root  admin    5470 Jul  4 = 18:53 util.scm.go

mwette$ GUILE_LOAD_PATH=3D guile = calc.scm 
;;; note: auto-compilation is enabled, set = GUILE_AUTO_COMPILE=3D0
;;;       or pass the = --no-auto-compile argument to disable.
;;; compiling = /Users/mwette/proj/scheme/myproj/lalr1/dist/test-suite/nyacc/calc.scm
;;; = compiling /opt/local/share/guile/site/2.0/nyacc/lalr.scm
;;; = compiling /opt/local/share/guile/site/2.0/nyacc/util.scm
;;; compiled = /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/= 2.0/nyacc/util.scm.go
;;; compiled = /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/= 2.0/nyacc/lalr.scm.go
;;; compiling = /opt/local/share/guile/site/2.0/nyacc/lex.scm
;;; compiled = /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/opt/local/share/guile/site/= 2.0/nyacc/lex.scm.go
;;; compiled = /Users/mwette/.cache/guile/ccache/2.0-LE-8-2.0/Users/mwette/proj/scheme/my= proj/lalr1/dist/test-suite/nyacc/calc.scm.go
2
mwette$ 

= --Apple-Mail=_8D76F76B-359E-4BA0-8E77-C739CF0FB9A0--