* guile 1.9.7 vs. 1.8.7
@ 2010-01-28 12:25 Petr Gajdos
2010-01-28 14:22 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Petr Gajdos @ 2010-01-28 12:25 UTC (permalink / raw)
To: bug-guile
[-- Attachment #1: Type: text/plain, Size: 6112 bytes --]
Hi list,
I would like to ask several questions in the terms of new branch.
Maybe I see some bugs or maybe I misunderstand, then apologize.
1. SLIB installation
~~~~~~~~~~~~~~~~~~~~
Information on
http://www.gnu.org/software/guile/manual/html_node/SLIB-installation.html
doesn't lead to proper slib installation for me. I am using slib3b2
which seems to be installing well this way with 1.8.7. I don't know if
this is bug in guile or slib or it is my fault.
The result is:
laura:/usr/share/guile/site> GUILE_AUTO_COMPILE=0 guile
Guile Scheme interpreter 0.5 on Guile 1.9.7
Copyright (C) 2001-2008 Free Software Foundation, Inc.
Enter `,help' for help.
scheme@(guile-user)> (use-modules (ice-9 slib))
Throw to key `syntax-error':
ERROR: In procedure sc-expand:
ERROR: unexpected syntax in define
Entering the debugger. Type `bt' for a backtrace or `c' to continue.
0 debug> bt
0 debug> 0 debug> 30 (dynamic-wind #<boot-closu...> ...)
29 (boot-closure)
In /usr/share/guile/1.9/system/repl/repl.scm:
111: 28 (start-repl scheme)
27 (catch #t #<procedure 5162980 at /usr/share/guile/1.9...>
...)
26 (%start-stack #t #<procedure 53d66f0 ()>)
25 (catch quit #<procedure 53d66c0 at /usr/share/guile/1...>
...)
117: 24 (#<procedure 53d66c0 at
/usr/share/guile/1.9/system/repl/...>)
23 (%start-stack #t #<procedure 53d6540 ()>)
In /usr/share/guile/1.9/system/repl/common.scm:
83: 22 (repl-eval #<<repl> vm: #<vm 6894d0> language: #<<lan...> #)
21 (boot-closure (use-modules (ice-9 slib)) #:from #<<la...>
...)
20 (boot-closure)
19 (boot-closure)
18 (dynamic-wind #<boot-closure 7bafaa0 ()> #<boot-closu...> #)
17 (boot-closure)
16 (with-fluid* #<fluid 10> c #<boot-closure 7baf780 ()>)
15 (boot-closure)
14 (boot-closure ((ice-9 slib)))
13 (dynamic-wind #<boot-closure 7bde0e0 ()> #<boot-closu...> #)
12 (boot-closure)
11 (with-fluid* #<fluid 9> #f #<boot-closure 7be7b80 ()>)
10 (boot-closure)
9 (dynamic-wind #<boot-closure 7be7720 ()> #<boot-closu...> #)
8 (boot-closure)
7 (primitive-load-path "ice-9/slib" #f)
6 (%start-stack load-stack #<boot-closure 764a820 ()>)
5 (boot-closure)
4 (primitive-load-path "slib/guile.init")
3 (boot-closure (define base:define define))
2 (with-fluid* #<fluid 10> e #<boot-closure 775ece0 ()>)
1 (boot-closure)
0 (scm-error syntax-error sc-expand "~a in ~a" ("u..." #) #f)
2. guile start is slow on my system
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
While guile 1.8.7 is starting less than one second, it takes
approximatelly 12 seconds to start guile 1.9.7 on the same system,
even if I run
GUILE_AUTO_COMPILE=0 guile
3. autocompilation
~~~~~~~~~~~~~~~~~~
When I install and run guile first time, I get the following:
laura:/> guile
;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-autocompile argument to disable.
;;; compiling /usr/share/guile/1.9/ice-9/r5rs.scm
;;; compiling /usr/share/guile/1.9/system/base/compile.scm
;;; it seems /usr/share/guile/1.9/system/base/compile.scm
;;; is part of the compiler; skipping autocompilation
...
;;; compiling /usr/share/guile/1.9/ice-9/receive.scm
;;; it seems /usr/share/guile/1.9/ice-9/receive.scm
;;; is part of the compiler; skipping autocompilation
;;; compiling /usr/share/guile/1.9/language/objcode/spec.scm
;;; WARNING: compilation of
/usr/share/guile/1.9/language/objcode/spec.scm failed:
;;; key misc-error, throw args (#f "~A ~S" ("no such language"
objcode) #f)
;;; compiling /usr/share/guile/1.9/language/scheme/spec.scm
;;; WARNING: compilation of
/usr/share/guile/1.9/language/scheme/spec.scm failed:
;;; key misc-error, throw args (#f "~A ~S" ("no such language" scheme)
...
;;; compiling /usr/share/guile/1.9/language/bytecode/spec.scm
;;; WARNING: compilation of
/usr/share/guile/1.9/language/bytecode/spec.scm failed:
;;; key misc-error, throw args (#f "~A ~S" ("no such language"
bytecode) #f)
;;; compiled
/root/.cache/guile/ccache/1.9-0.O-LE-8/usr/share/guile/1.9/ice-9/r5rs.scm.go
;;; compiling /usr/share/guile/1.9/ice-9/safe-r5rs.scm
;;; compiled
...
/root/.cache/guile/ccache/1.9-0.O-LE-8/usr/share/guile/1.9/system/repl/command.scm.go
;;; compiled
/root/.cache/guile/ccache/1.9-0.O-LE-8/usr/share/guile/1.9/system/repl/repl.scm.go
Guile Scheme interpreter 0.5 on Guile 1.9.7
Copyright (C) 2001-2008 Free Software Foundation, Inc.
Enter `,help' for help.
scheme@(guile-user)>
Which seems almost ok, but I am unable to run guile again:
laura:/> guile
;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-autocompile argument to disable.
;;; compiling /usr/share/guile/1.9/system/vm/program.scm
;;; compiling /usr/share/guile/1.9/system/base/compile.scm
;;; it seems /usr/share/guile/1.9/system/base/compile.scm
;;; is part of the compiler; skipping autocompilation
...
;;; compiling /usr/share/guile/1.9/system/vm/frame.scm
;;; it seems /usr/share/guile/1.9/system/vm/frame.scm
;;; is part of the compiler; skipping autocompilation
;;; WARNING: compilation of /usr/share/guile/1.9/system/vm/program.scm
failed:
;;; key misc-error, throw args (#f "~A ~S" ("no code for module"
(system vm program)) #f)
;;; compiling /usr/share/guile/1.9/ice-9/regex.scm
;;; it seems /usr/share/guile/1.9/ice-9/regex.scm
;;; is part of the compiler; skipping autocompilation
;;; compiling /usr/share/guile/1.9/system/vm/objcode.scm
;;; it seems /usr/share/guile/1.9/system/vm/objcode.scm
;;; is part of the compiler; skipping autocompilation
Backtrace:
Exception during displaying of backtrace: unbound-variable
ERROR: In procedure module-lookup:
ERROR: Unbound variable: compile-file
laura:/>
4. Big THANKS
~~~~~~~~~~~~~
Thanks for working for guile! I am not scheme/guile expert, but I am
open for colaboration in this or other context.
Petr
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: guile 1.9.7 vs. 1.8.7
2010-01-28 12:25 guile 1.9.7 vs. 1.8.7 Petr Gajdos
@ 2010-01-28 14:22 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2010-01-28 14:22 UTC (permalink / raw)
To: Petr Gajdos; +Cc: bug-guile
Hello,
Petr Gajdos <pgajdos@suse.cz> writes:
> Information on
>
> http://www.gnu.org/software/guile/manual/html_node/SLIB-installation.html
>
> doesn't lead to proper slib installation for me. I am using slib3b2
> which seems to be installing well this way with 1.8.7. I don't know if
> this is bug in guile or slib or it is my fault.
>
> The result is:
[...]
> 3 (boot-closure (define base:define define))
Indeed, this expression works with first-class macros in 1.8 but no
longer works in 1.9. I don’t think 1.9 will ever get support for this
back, so I guess the right solution would be to adapt SLIB’s guile.init.
(This can be done using ‘(cond-expand (guile-2 ...))’.)
Would you like to coordinate with the SLIB maintainer to fix this?
> While guile 1.8.7 is starting less than one second, it takes
> approximatelly 12 seconds to start guile 1.9.7 on the same system,
> even if I run
That’s weird. Are you sure all the .scm files under module/ got
compiled and that the resulting .go files were installed and are in the
search path?
In my experience Guile 1.9 starts faster than 1.8.
> When I install and run guile first time, I get the following:
>
> laura:/> guile
> ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;; or pass the --no-autocompile argument to disable.
> ;;; compiling /usr/share/guile/1.9/ice-9/r5rs.scm
> ;;; compiling /usr/share/guile/1.9/system/base/compile.scm
It’s a sign that these files weren’t compiled when you built Guile.
Please run ‘make’ again in the build tree. This should create
module/ice-9/r5rs.go, etc., such that these won’t need to be
auto-compiled when Guile starts.
[...]
> Exception during displaying of backtrace: unbound-variable
>
> ERROR: In procedure module-lookup:
> ERROR: Unbound variable: compile-file
*This* is a real bug I guess. :-)
Thanks for your report,
Ludovic.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-28 14:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28 12:25 guile 1.9.7 vs. 1.8.7 Petr Gajdos
2010-01-28 14:22 ` Ludovic Courtès
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).