GNU bug report logs - #32580
Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: seamus phenetols <seamusphenetols@HIDDEN>; dated Wed, 29 Aug 2018 23:47:01 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at 32580 <at> debbugs.gnu.org:


Received: (at 32580) by debbugs.gnu.org; 15 Oct 2018 00:21:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 14 20:21:18 2018
Received: from localhost ([127.0.0.1]:49671 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gBqdK-0007Ka-DY
	for submit <at> debbugs.gnu.org; Sun, 14 Oct 2018 20:21:18 -0400
Received: from mail-it1-f174.google.com ([209.85.166.174]:37781)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1gBqdI-0007KN-6s
 for 32580 <at> debbugs.gnu.org; Sun, 14 Oct 2018 20:21:16 -0400
Received: by mail-it1-f174.google.com with SMTP id e74-v6so25314488ita.2
 for <32580 <at> debbugs.gnu.org>; Sun, 14 Oct 2018 17:21:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=m4rRKkAUbvm6SlibdXn1BUc46BS23vEk02UtMWKVoFI=;
 b=aYBZ0sxgPvG3Byh8WTRrUPargQM+d7kMFNy8+Nqm5Zl51rJ3e1gap+taUF9AZHDO8j
 a35hPITeetOyyHRw6RMzGuJGRrnHYVj8JnSZeHjcAg87NMEv4R/9cYP1bE1hw7TuIuSE
 cYMBruLJUtVfULyrpmIxmldyF6ePyd21n7Rlx/HyDPp7TsCQujBAiRC57+P5kQ6guxF4
 vEaPZKiicD+Hj5AfCQ71aoX6f/z4O9uoRsRIRL8YFzmDbxV0ob7q9P55th57KYqXK8GB
 QUYguLsY/hOalh0lCaGor068ofzjUtLvzHyba0G1d2QRvKLZrPVoR09ZRZK5ZhPu4FUt
 PfyQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=m4rRKkAUbvm6SlibdXn1BUc46BS23vEk02UtMWKVoFI=;
 b=e3lHkcLazTOmbfjiPERYDJSvw+WekinJX2nXbzZVpaz2N9F6JWBa2w/V+DcCaOIqkf
 kdpNixzYtE7Zc8Z47rIdUW/fsEXQOdU+oMRwtcKaW7vXEJ/6ePaMdNQZsa0diJP42Lkz
 QwM0FxTgDI+fPCZktFrZHfckSz/5pyoNuZgjtMz3w2jmKqWgMLypZLYTFGDfM2w7dbN/
 Thpo+Zag+t+xL2XxSWbfR+xVxYmkT2snXNTDBNn6NxUtnMa1mCM3YZiZqql7ke86lBDG
 2FhTLf6x28f9e+tkcHuleKUj3IpDXfwd0t1Eo/a3kPUlhi+MlMCz/7vXvS0cArm9W7iD
 xOZQ==
X-Gm-Message-State: ABuFfojlw6M8HqTADZM8+pVtDMqbISyhVTbhtdcBD1D64d7VFvANEsWc
 UqEnCQrc9FRX/4CUDianHnJah8x9
X-Google-Smtp-Source: ACcGV61s71ub+dlGvYhNj7pY71HZxN56o/vhZ5bF26H0ryhN4wEF86KxnIkLixsg6k24xdKV5DM1zw==
X-Received: by 2002:a24:d647:: with SMTP id
 o68-v6mr11432715itg.56.1539562870128; 
 Sun, 14 Oct 2018 17:21:10 -0700 (PDT)
Received: from apteryx (76-10-140-126.dsl.teksavvy.com. [76.10.140.126])
 by smtp.gmail.com with ESMTPSA id e20-v6sm3464828ita.34.2018.10.14.17.21.08
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 14 Oct 2018 17:21:08 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: seamus phenetols <seamusphenetols@HIDDEN>
Subject: Re: bug#32580: Setting variables %load-should-autocompile and
 GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling
References: <1871411535582940@HIDDEN>
 <87in3rbabx.fsf@HIDDEN>
 <7152691535724008@HIDDEN>
 <87zhx19h8c.fsf@HIDDEN>
 <2474841539446639@HIDDEN>
Date: Sun, 14 Oct 2018 20:21:07 -0400
In-Reply-To: <2474841539446639@HIDDEN> (seamus
 phenetols's message of "Sat, 13 Oct 2018 12:03:59 -0400")
Message-ID: <8736t89i18.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 32580
Cc: 32580 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

Hello Seamus,

seamus phenetols <seamusphenetols@HIDDEN> writes:

> Setting GUILE_AUTO_COMPILE in ~/.profile and in ~/.bash_profile
> doesn't seem to have any effect.  I'm giving up on guile for now.
> Thank you very much for helping.

I'm sorry it hasn't worked for you! Let's see if we can find out why.

What exactly did you put in your ~/.profile or ~/.bash_profile? What
version of Guile are you using? When launching a new pseudo terminal
(i.e. xterm, gnome-terminal, etc.) and typing 'echo
$GUILE_AUTO_COMPILE', does it return the expected value defined in your
~/.profile or ~/.bash_profile?

Note that you would need to logout then login of your session for new
variable definition to take effect; otherwise you can test it in your
current shell by sourcing it:

--8<---------------cut here---------------start------------->8---
source ~/.bash_profile # or source ~/.profile
--8<---------------cut here---------------start------------->8---

I've put the following Scheme code in a file named
'test-auto-compile.scm' (attached for your convenience):

--8<---------------cut here---------------start------------->8---
#!/usr/bin/env guile
!#

(define (main)
  "Print whether auto-compilation is enabled or not and exit with an
exit status of 1 if it is enabled, 0 otherwise."
  (let ((guile-auto-compile-value (getenv "GUILE_AUTO_COMPILE")))
    (display (format #f "The value of GUILE_AUTO_COMPILE is ~s\n"
		     guile-auto-compile-value))
    (when (and guile-auto-compile-value
	       (string=? guile-auto-compile-value "0"))
	(display "Auto-compilation is disabled.\n")
	(exit 0))
    (display "Auto-compilation is enabled.\n")
    (exit 1)))

(main)
--8<---------------cut here---------------start------------->8---

Here's a small demonstration of what the above script gives on my system
(guile --version is 2.2.4, but this should work for any Guile version >=
2.0):

--8<---------------cut here---------------start------------->8---
echo $GUILE_AUTO_COMPILE

maxim@apteryx ~/Documents$ guile test-auto-compile.scm
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/maxim/Documents/test-auto-compile.scm
;;; compiled /home/maxim/.cache/guile/ccache/2.2-LE-8-3.A/home/maxim/Documents/test-auto-compile.scm.go
The value of GUILE_AUTO_COMPILE is #f
Auto-compilation is enabled.
maxim@apteryx ~/Documents$ 
maxim@apteryx ~/Documents$ rm /home/maxim/.cache/guile/ccache/2.2-LE-8-3.A/home/maxim/Documents/test-auto-compile.scm.go
maxim@apteryx ~/Documents$ export GUILE_AUTO_COMPILE=0
maxim@apteryx ~/Documents$ guile test-auto-compile.scm
The value of GUILE_AUTO_COMPILE is "0"
Auto-compilation is disabled.
--8<---------------cut here---------------end--------------->8---

I hope this helps,

Maxim


--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=test-auto-compile.scm
Content-Description: Short program demonstrating GUILE_AUTO_COMPILE

#!/usr/bin/env guile
!#

(define (main)
  "Print whether auto-compilation is enabled or not and exit with an
exit status of 1 if it is enabled, 0 otherwise."
  (let ((guile-auto-compile-value (getenv "GUILE_AUTO_COMPILE")))
    (display (format #f "The value of GUILE_AUTO_COMPILE is ~s\n"
		     guile-auto-compile-value))
    (when (and guile-auto-compile-value
	       (string=? guile-auto-compile-value "0"))
	(display "Auto-compilation is disabled.\n")
	(exit 0))
    (display "Auto-compilation is enabled.\n")
    (exit 1)))

(main)

--=-=-=--




Information forwarded to bug-guile@HIDDEN:
bug#32580; Package guile. Full text available.

Message received at 32580 <at> debbugs.gnu.org:


Received: (at 32580) by debbugs.gnu.org; 2 Sep 2018 19:23:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 02 15:23:04 2018
Received: from localhost ([127.0.0.1]:43316 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fwXxg-0006iP-Io
	for submit <at> debbugs.gnu.org; Sun, 02 Sep 2018 15:23:04 -0400
Received: from vimdzmsp-sfwd04.bluewin.ch ([195.186.227.132]:51368)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <daniel.llorens@HIDDEN>) id 1fwXxd-0006hK-OV
 for 32580 <at> debbugs.gnu.org; Sun, 02 Sep 2018 15:23:02 -0400
Received: from 4box.home ([178.194.211.83])
 by vimdzmsp-sfwd04.bluewin.ch Swisscom AG with SMTP
 id wXxXfyQF9rk71wXxXfJVZz; Sun, 02 Sep 2018 21:22:55 +0200
X-Bluewin-Spam-Analysis: v=2.1 cv=eJze9Cd1 c=1 sm=1 tr=0
 a=/otY9tMDUxeyvsp/Eu5vMQ==:117 a=/otY9tMDUxeyvsp/Eu5vMQ==:17
 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10
 a=7D24GrKVZHmi26ci1UsA:9 a=CjuIK1q_8ugA:10
X-Bluewin-Spam-Score: 0.00
X-FXIT-IP: IPv4[178.194.211.83] Epoch[1535916175]
X-Bluewin-AuthAs: dll@HIDDEN
From: Daniel Llorens <daniel.llorens@HIDDEN>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: bug#32580: Setting variables %load-should-autocompile and
 GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling
Message-Id: <7E96CED6-D748-4CFC-A2A5-F834107ABE62@HIDDEN>
Date: Sun, 2 Sep 2018 21:22:56 +0200
To: 32580 <at> debbugs.gnu.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Mailer: Apple Mail (2.1878.6)
X-CMAE-Envelope: MS4wfE19FYOE9FyldWCykfV05yxEHeQO26kUUakdsXC16Usfum5PnxwMD6NPkwcQQqOrE2gnaoptQ3MdV6RQGTdPLh7gPU6p77jy/vhipbSaiuuKnoef4Vsx
 lFis2AbHEhD2ZDtMsjJRJWRI6vEQXift125kL6+eCWHf8VYqrTuSFEEdDag9tbYhB4ebQagXYYzonw==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 32580
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


I think, regardless of whether GUILE_AUTO_COMPILE works correctly or not =
(and public variables should all be documented, so if =
%load-should-autocompile isn't, I'd call that its own bug), I agree with =
the substance of the complaint. The autocompilation messages aren't =
warnings and shouldn't be sent to the warning port. Maybe they should be =
sent to a logging port instead.





Information forwarded to bug-guile@HIDDEN:
bug#32580; Package guile. Full text available.

Message received at 32580 <at> debbugs.gnu.org:


Received: (at 32580) by debbugs.gnu.org; 1 Sep 2018 18:59:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 01 14:59:24 2018
Received: from localhost ([127.0.0.1]:42103 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fwB7E-0004xZ-Cp
	for submit <at> debbugs.gnu.org; Sat, 01 Sep 2018 14:59:24 -0400
Received: from mail-it0-f42.google.com ([209.85.214.42]:53735)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1fwB7C-0004xM-Bv
 for 32580 <at> debbugs.gnu.org; Sat, 01 Sep 2018 14:59:22 -0400
Received: by mail-it0-f42.google.com with SMTP id p79-v6so11125077itp.3
 for <32580 <at> debbugs.gnu.org>; Sat, 01 Sep 2018 11:59:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=PZzm3CyglinRWB7Dpf3/xIMMOA3OWLcOjjVkKnIPdFU=;
 b=BT+nbE73mY2ODAlEgTTiqWvvwlFU/xRLWKOO72m60lOoSTrSz7ADKPyUwze2DYMrId
 T4scXhpcVjkPmr0pFaMK6lNkV+12uexYBQT3SJpZoeWg2YCpZkMVVs4bHYB5Re/JsVGE
 E5c5XASlE9tAldN32DYZSwyIKp7fJjVz4yiMBvB3nLMz/1zxRXHI18BzRyz0OZH7P2NI
 gT7jLJ4PHRF6EOD8V/fRsWk5OtkhZgEqR51BH/tGvjw34Moqnej0bISSWNYPDEgi8od6
 zsWTYsBZvaRII4JGndOyS1EcA/QWoIQnykG+jevf/0UEF26A5BITmY+HaID+gCEzTvK6
 /1hQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=PZzm3CyglinRWB7Dpf3/xIMMOA3OWLcOjjVkKnIPdFU=;
 b=ewqBrqq/QXVPuU+yVU6sRvUi4Ucno2F7ycTxno0oSLyObiMfsXImAk/L7H2d8dCUXC
 3lMvG7QWvKnP419wtJrRGo4yeY0mrq0nzd7nzrXayDF4n9sSKqzKNjLQolly9/ILgwP4
 kfapfeITye4YlYTzQlHE1ZoYZFgKn2la6DGZkbYjz9eZKXIwLPN6HosXyYeRXdtdS2fd
 w8M9HXcs/8CDMM9Y1+2/8aG/916z1iqsBjg9MZoMjQz/jwFSBnGPRZfaLDE5/1iUn3CH
 yT6GY4LFIOGy1e6oMFyLfJQaGjC37zPj3xawAGYt6aleozSbpqT7+Ub09VgLXDaMfBWl
 bZbg==
X-Gm-Message-State: APzg51DfTZT57IVTsrEbacIzS68nSIfPBGvhqarBK2FimEiRJ+saf7KL
 AcZtSDzfHyAP8IdNYFFFQZMLOxFY
X-Google-Smtp-Source: ANB0VdYjPWa0X38cqg7EJY/TeoyvjcY4ddCHKjba00Ar6wCpDlrdUENmiV+g/h3ZFDahSDmp/SVCFg==
X-Received: by 2002:a24:33c1:: with SMTP id
 k184-v6mr1360551itk.103.1535828356692; 
 Sat, 01 Sep 2018 11:59:16 -0700 (PDT)
Received: from apteryx (107-179-139-151.cpe.teksavvy.com. [107.179.139.151])
 by smtp.gmail.com with ESMTPSA id u24-v6sm5112946iol.49.2018.09.01.11.59.15
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 01 Sep 2018 11:59:16 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: seamus phenetols <seamusphenetols@HIDDEN>
Subject: Re: bug#32580: Setting variables %load-should-autocompile and
 GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling
References: <1871411535582940@HIDDEN>
 <87in3rbabx.fsf@HIDDEN>
 <7152691535724008@HIDDEN>
Date: Sat, 01 Sep 2018 14:59:15 -0400
In-Reply-To: <7152691535724008@HIDDEN> (seamus
 phenetols's message of "Fri, 31 Aug 2018 10:00:08 -0400")
Message-ID: <87zhx19h8c.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 32580
Cc: "32580 <at> debbugs.gnu.org" <32580 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello Seamus,

seamus phenetols <seamusphenetols@HIDDEN> writes:

> Hello MC,
>
>> My guess is that setting GUILE_AUTO_COMPILE dynamically in your ~/.guile
>> is too late; the Guile process would have already been fire-up without
>> it set early enough to take effect (just a guess).
>
> I assumed ~/.guile would be evaluated before any script.  Perhaps I am mistaken.
>
>> Try exporting the GUILE_AUTO_COMPILE variable before running your
>> program, or setting it inline in front of your guile command:
>
> Yes, that does work.  Now every time I want to disable autocompile I must:
>
> GUILE_AUTO_COMPILE=0 guile ~/scheme/hello.scm

As I wrote, you can also export the variable:
--8<---------------cut here---------------start------------->8---
export GUILE_AUTO_COMPILE=0
--8<---------------cut here---------------end--------------->8---

To make it permanent you can define such a line in your ~/.profile or
~/.bash_profile, and logout/login into your session to have it effective.

The Guile reference manual only defines two means to control
auto-compilation:

1. Setting the GUILE_AUTO_COMPILE environment variables (which, being an
environment variable, should be defined as such, as explained above)

2. Using the --no-auto-compile option passed directly to the guile
interpreter.

Let me know if this addresses your issue.

Thank you,

Maxim




Information forwarded to bug-guile@HIDDEN:
bug#32580; Package guile. Full text available.

Message received at 32580 <at> debbugs.gnu.org:


Received: (at 32580) by debbugs.gnu.org; 31 Aug 2018 14:00:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 31 10:00:21 2018
Received: from localhost ([127.0.0.1]:40739 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fvjyH-0004Ox-1T
	for submit <at> debbugs.gnu.org; Fri, 31 Aug 2018 10:00:21 -0400
Received: from forward4o.cmail.yandex.net ([37.9.109.248]:55035)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <seamusphenetols@HIDDEN>) id 1fvjyC-0004Oh-MF
 for 32580 <at> debbugs.gnu.org; Fri, 31 Aug 2018 10:00:19 -0400
Received: from mxback12g.mail.yandex.net (mxback12g.mail.yandex.net
 [IPv6:2a02:6b8:0:1472:2741:0:8b7:91])
 by forward4o.cmail.yandex.net (Yandex) with ESMTP id EF66B2112F;
 Fri, 31 Aug 2018 17:00:09 +0300 (MSK)
Received: from localhost (localhost [::1])
 by mxback12g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Bbq0wyenX3-08fGTmDH;
 Fri, 31 Aug 2018 17:00:08 +0300
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail;
 t=1535724008; bh=NzhGeJZTcqpMM0kR9JFg3tZR4tc9jp4+37EhIWfTexs=;
 h=From:To:Cc:In-Reply-To:References:Subject:Date:Message-Id;
 b=raqpL9xn4SSVzb5qrhEXksHStSH96Ogkgg/x/P/nZY8zxeUpadFCWFEsR6eMZK9ga
 V8buXHsrIp7aiicnmM+F530hNOLelcrTVy45FjkKo0BWZMePas6TDgtpzfa7ZF6sev
 Aw7CZQ4kiHE9ucRe8qsDdCH4TRcYjXjcAKQIZ2Ko=
Authentication-Results: mxback12g.mail.yandex.net;
 dkim=pass header.i=@yandex.com
Received: by iva7-7c2970ec7645.qloud-c.yandex.net with HTTP;
 Fri, 31 Aug 2018 17:00:08 +0300
From: seamus phenetols <seamusphenetols@HIDDEN>
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
In-Reply-To: <87in3rbabx.fsf@HIDDEN>
References: <1871411535582940@HIDDEN>
 <87in3rbabx.fsf@HIDDEN>
Subject: Re: bug#32580: Setting variables %load-should-autocompile and
 GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling
MIME-Version: 1.0
X-Mailer: Yamail [ http://yandex.ru ] 5.0
Date: Fri, 31 Aug 2018 10:00:08 -0400
Message-Id: <7152691535724008@HIDDEN>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 32580
Cc: "32580 <at> debbugs.gnu.org" <32580 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


Hello MC,

> My guess is that setting GUILE_AUTO_COMPILE dynamically in your ~/.guile
> is too late; the Guile process would have already been fire-up without
> it set early enough to take effect (just a guess).

I assumed ~/.guile would be evaluated before any script.  Perhaps I am mistaken.

> Try exporting the GUILE_AUTO_COMPILE variable before running your
> program, or setting it inline in front of your guile command:

Yes, that does work.  Now every time I want to disable autocompile I must:

GUILE_AUTO_COMPILE=0 guile ~/scheme/hello.scm

If there is a hello.go under $XDG_CACHE_HOME/guile then it will be used
anyway unless it is considered out of date.  I would very much prefer to:

eliminate the unnecessary chatter when no warnings or errors occur
OR disable the auto-compile feature in ~/.guile.  

If these aren't possible, then I suppose I can make a shell alias or function
for:

 GUILE_AUTO_COMPILE=0 guile

> Where have you seen that %load-should-autocompile variable documented?
> It doesn't appear in the Guile Reference info manual.
>
> This doesn't seem to be a bug :)

%load-should-autocompile was mentioned in IRC by the person who asked
me to report this as a bug.  It's also present in some commit messages I 
found by a general web search.  

Thanks.




Information forwarded to bug-guile@HIDDEN:
bug#32580; Package guile. Full text available.

Message received at 32580 <at> debbugs.gnu.org:


Received: (at 32580) by debbugs.gnu.org; 31 Aug 2018 01:21:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 30 21:21:00 2018
Received: from localhost ([127.0.0.1]:39600 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fvY7P-0002Qs-RR
	for submit <at> debbugs.gnu.org; Thu, 30 Aug 2018 21:21:00 -0400
Received: from mail-it0-f41.google.com ([209.85.214.41]:51697)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1fvY7N-0002Qd-Mh
 for 32580 <at> debbugs.gnu.org; Thu, 30 Aug 2018 21:20:58 -0400
Received: by mail-it0-f41.google.com with SMTP id e14-v6so5166321itf.1
 for <32580 <at> debbugs.gnu.org>; Thu, 30 Aug 2018 18:20:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=VbgtQH1JrOC2HyytAZzi9E9vfTOGczRQsvG71zgU40U=;
 b=VIGb6QcCHxkBCacQCbmjE9wTsYkluPMw25SiMzrIki6Ao08y6NQkAfDK4bdjyqkLvk
 B4euDV8Pku/slOcZ0glSaQ3qkLtm2Tqx/poJ0RgI93V5uhSsc6LFsnrJ+BkmdAaQiEWI
 oHZB5Zdm+zAoYqX1pCgVBnpaIDtfYBVwnvkf7UAeH9T+q83L6e4OnQRjuaEkTkhbyLEc
 AoHP1j6C8z/SYwTc9Y1KtvLTNlF2B8DD1QbQw/7WgJV1me4B454jMDq2WvCgybKNAbzk
 pCrhvbKvaZTl2GvQGhqFJ+6HSYpOjAVYFtIsrHdw/9IOkXC1MrBiTRjxduVXfCM/oiNv
 4rNw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=VbgtQH1JrOC2HyytAZzi9E9vfTOGczRQsvG71zgU40U=;
 b=VjV+Z6/YcAdPZm/btv2MBM2WF12esFodglvKV8X0GqH3e8sY5bvjVNky6UJH+XP51L
 91a2crzYXdKlPSrQDqWOnr4aEqnDKnCHvlzHGaXYjBn9pBVI4viTQ9HaBCUOX+hocPea
 u9tOfbfxZhJo+RJtx3yQBdwP5ziMq9s3DHoOxEsZVvIaCwWypBa7MaRc7+8jZZqOcTlq
 Zq3/rB0z9qkOuaT/SumJv8iH0Ea/Hx2m0939IbSn3Rr9phiFhhbekXTMWR0Bg3kDcaiS
 RDsg2/Y4TOQ5HLAw/R7I92TwJiR7gBm+RtG3ZKOCVZHMyyaJ6ZBv0tNxW+utH/NPWNML
 smAg==
X-Gm-Message-State: APzg51Ch4cIdXfmOrPpKIG3Cq1N9+7AH7vHzXmA85XJx1CNvvRe1Djmi
 PWKZej6EgaClAM8PwZqMdJHTMgZjOng=
X-Google-Smtp-Source: ANB0VdZzZ0tGAJJMR+sRsXdNFdJPg9A7CcZ5J71jFjo6+eWzgVlYJjBEbcLhcvV8lKZCfLkEhz4xmw==
X-Received: by 2002:a24:dcc3:: with SMTP id
 q186-v6mr3647273itg.126.1535678452124; 
 Thu, 30 Aug 2018 18:20:52 -0700 (PDT)
Received: from apteryx (107-179-139-151.cpe.teksavvy.com. [107.179.139.151])
 by smtp.gmail.com with ESMTPSA id d26-v6sm3178951iob.67.2018.08.30.18.20.51
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 30 Aug 2018 18:20:51 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: seamus phenetols <seamusphenetols@HIDDEN>
Subject: Re: bug#32580: Setting variables %load-should-autocompile and
 GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling
References: <1871411535582940@HIDDEN>
Date: Thu, 30 Aug 2018 21:20:50 -0400
In-Reply-To: <1871411535582940@HIDDEN> (seamus
 phenetols's message of "Wed, 29 Aug 2018 18:49:00 -0400")
Message-ID: <87in3rbabx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 32580
Cc: 32580 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

seamus phenetols <seamusphenetols@HIDDEN> writes:

> I'm new to guile and scheme.  I compiled 2.2.4 from source yesterday.
> I wish to silence the auto-compile chatter, other than real warnings and errors
> while testing my programs.  There seems to be no way to do it, so I looked
> for a way to disable auto-compile in ~/.guile configuration file.  No luck so far,
> but the variables %load-should-autocompile and GUILE_AUTO_COMPILE
> seem promising.  Sadly, they don't seem to prevent auto-compile when
> set within ~/.guile.
>
> Below is an excerpt of my shell session to demonstrate.  In case it may be
> poorly formatted, I could make  a web paste for easy viewing.

My guess is that setting GUILE_AUTO_COMPILE dynamically in your ~/.guile
is too late; the Guile process would have already been fire-up without
it set early enough to take effect (just a guess).

Try exporting the GUILE_AUTO_COMPILE variable before running your
program, or setting it inline in front of your guile command:

--8<---------------cut here---------------start------------->8---
guile hello.scm 
;;; note: source file /home/maxim/hello.scm
;;;       newer than compiled /home/maxim/.cache/guile/ccache/2.2-LE-8-3.A/home/maxim/hello.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/maxim/hello.scm
;;; compiled /home/maxim/.cache/guile/ccache/2.2-LE-8-3.A/home/maxim/hello.scm.go
Hello World
maxim@apteryx ~$ rm .cache/guile/ccache/2.2-LE-8-3.A/home/maxim/hello.scm.go
maxim@apteryx ~$ GUILE_AUTO_COMPILE=0 guile hello.scm
Hello World
--8<---------------cut here---------------end--------------->8---

Where have you seen that %load-should-autocompile variable documented?
It doesn't appear in the Guile Reference info manual.

This doesn't seem to be a bug :)

Thank you,

Maxim




Information forwarded to bug-guile@HIDDEN:
bug#32580; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Aug 2018 23:46:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 29 19:46:30 2018
Received: from localhost ([127.0.0.1]:37644 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fvAAP-0004jE-Au
	for submit <at> debbugs.gnu.org; Wed, 29 Aug 2018 19:46:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42312)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <seamusphenetols@HIDDEN>) id 1fv9H1-0001KS-6v
 for submit <at> debbugs.gnu.org; Wed, 29 Aug 2018 18:49:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <seamusphenetols@HIDDEN>) id 1fv9Gv-0006FU-5e
 for submit <at> debbugs.gnu.org; Wed, 29 Aug 2018 18:49:10 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:40769)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <seamusphenetols@HIDDEN>)
 id 1fv9Gv-0006FK-1s
 for submit <at> debbugs.gnu.org; Wed, 29 Aug 2018 18:49:09 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35055)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <seamusphenetols@HIDDEN>) id 1fv9Gu-0001ip-2I
 for bug-guile@HIDDEN; Wed, 29 Aug 2018 18:49:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <seamusphenetols@HIDDEN>) id 1fv9Gq-0006DJ-Sa
 for bug-guile@HIDDEN; Wed, 29 Aug 2018 18:49:08 -0400
Received: from forward104j.mail.yandex.net ([5.45.198.247]:41669)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <seamusphenetols@HIDDEN>)
 id 1fv9Gq-0006Af-FS
 for bug-guile@HIDDEN; Wed, 29 Aug 2018 18:49:04 -0400
Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net
 [IPv6:2a02:6b8:0:1619::10b])
 by forward104j.mail.yandex.net (Yandex) with ESMTP id 359F943A7E
 for <bug-guile@HIDDEN>; Thu, 30 Aug 2018 01:49:01 +0300 (MSK)
Received: from localhost (localhost [::1])
 by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id uDpBnvd0Yp-n0uGkN7C; 
 Thu, 30 Aug 2018 01:49:00 +0300
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail;
 t=1535582940; bh=maiLDdqkg2nKAzD3cCvIGIQlFlSsE+ZTLS+Qsby0WGM=;
 h=From:To:Subject:Date:Message-Id;
 b=fXqBv8V9ntNpA3rfHTjQQxj2ZAo7h023Rddea0zb7T3nfHi2Jgowb94GmjD5sIAcL
 W0HexFYMfi1ouSUeGVPOQGlrArZzhSa4wEnIwBBPsmQ4Hzrbn98Zj2AN21l/A+4SxN
 cJEHW1dr+MzXUyF9vUo01UbZBegiuBTckEVm+z7g=
Authentication-Results: mxback2j.mail.yandex.net;
 dkim=pass header.i=@yandex.com
Received: by sas1-d856b3d759c7.qloud-c.yandex.net with HTTP;
 Thu, 30 Aug 2018 01:49:00 +0300
From: seamus phenetols <seamusphenetols@HIDDEN>
To: bug-guile@HIDDEN
Subject: Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in
 ~/.guile doesn't prevent compiling
MIME-Version: 1.0
X-Mailer: Yamail [ http://yandex.ru ] 5.0
Date: Wed, 29 Aug 2018 18:49:00 -0400
Message-Id: <1871411535582940@HIDDEN>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 29 Aug 2018 19:46:28 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

I'm new to guile and scheme.  I compiled 2.2.4 from source yesterday.
I wish to silence the auto-compile chatter, other than real warnings and errors
while testing my programs.  There seems to be no way to do it, so I looked
for a way to disable auto-compile in ~/.guile configuration file.  No luck so far,
but the variables %load-should-autocompile and GUILE_AUTO_COMPILE
seem promising.  Sadly, they don't seem to prevent auto-compile when
set within ~/.guile.

Below is an excerpt of my shell session to demonstrate.  In case it may be
poorly formatted, I could make  a web paste for easy viewing.



$ rm -R $XDG_CACHE_HOME/guile/ccache
rm: cannot remove '/home/me/.cache/guile/ccache': No such file or directory
$ rm ~/.guile
rm: cannot remove '/home/me/.guile': No such file or directory
$
$ printf %s\\n '(display "Hello world!")' '(newline)' | tee ~/scheme/hello.scm
(display "Hello world!")
(newline)
$
$ guile ~/scheme/hello.scm
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/me/scheme/hello.scm
;;; compiled /home/me/.cache/guile/ccache/2.2-LE-8-3.A/media/data/me/scheme/hello.scm.go
Hello world!
$
$ rm -R $XDG_CACHE_HOME/guile/ccache
$
$ printf %s\\n '(setenv "GUILE_AUTO_COMPILE" "0")' '(set! %load-should-autocompile #f)' | tee ~/.guile
(setenv "GUILE_AUTO_COMPILE" "0")
(set! %load-should-autocompile #f)
$
$ guile ~/scheme/hello.scm
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/me/scheme/hello.scm
;;; compiled /home/me/.cache/guile/ccache/2.2-LE-8-3.A/media/data/me/scheme/hello.scm.go
Hello world!
$
$ guile --version
guile (GNU Guile) 2.2.4
Copyright (C) 2018 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ ls --full-time -gGh ~/Downloads/src/guile-2.2.4.tar.gz
-rw-r--r-- 1 18M 2018-08-24 17:37:08.405232060 -0400 /home/me/Downloads/src/guile-2.2.4.tar.gz
$





Acknowledgement sent to seamus phenetols <seamusphenetols@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#32580; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.