GNU bug report logs -
#32580
Setting variables %load-should-autocompile and GUILE_AUTO_COMPILE in ~/.guile doesn't prevent compiling
Previous Next
Full log
View this message in rfc822 format
Hello,
seamus phenetols <seamusphenetols <at> yandex.com> 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 <at> apteryx ~$ rm .cache/guile/ccache/2.2-LE-8-3.A/home/maxim/hello.scm.go
maxim <at> 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
This bug report was last modified 4 years and 7 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.