* more define-inlinable-related breakage
@ 2011-04-13 16:23 Andy Wingo
2011-04-13 20:36 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Andy Wingo @ 2011-04-13 16:23 UTC (permalink / raw)
To: guile-devel
I was doing some bisecting. I started at v2.0.0, did a full clean and
build then went to df1297956211b7353155c9b54d7e9c22d05ce493 and built
without a "clean". However I got an error:
GUILEC web/request.go
;;; note: source file /home/wingo/src/guile/module/web/uri.scm
;;; newer than compiled /home/wingo/src/guile/module/web/uri.go
[...]
986: 1 [declare-uri-header! "Content-Location"]
In module/ice-9/boot-9.scm:
119: 0 [#<procedure f79050 at module/ice-9/boot-9.scm:110:6 (thrown-k . args)> unbound-variable ...]
module/ice-9/boot-9.scm:118:20: In procedure #<procedure f79050 at module/ice-9/boot-9.scm:110:6 (thrown-k . args)>:
module/ice-9/boot-9.scm:118:20: In procedure module-lookup: Unbound variable: %uri?-procedure
This indicates that (web request) uses (web http) which calls uri? on
something. (web http) is up-to-date, and so the .go file is used. When
the .go was compiled, `uri?' expanded to reference `%uri?-procedure',
but 531c9f1dc51c4801c4d031ee80a31f15285a6b85 changed the names of the
private procedures to have a space instead of a dash, so the new uri.scm
is incompatible with the old web/http.go.
Note that this situation would be even worse if we generated a unique
name for the uri? procedure when uri.scm was compiled, as has been
discussed in http://thread.gmane.org/gmane.lisp.guile.devel/11722.
What should we do here? Here are a few options:
1) Require people to recompile all the time. Sucks.
2) Implement some sort of proper dependency management. Tricky,
because installing a new version of package A could force a
recompile of all dependent packages; tough to get right on a
package-management level.
3) Declare that private names referenced by macro expansions are
actually API that should not break.
Regards,
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: more define-inlinable-related breakage
2011-04-13 16:23 more define-inlinable-related breakage Andy Wingo
@ 2011-04-13 20:36 ` Ludovic Courtès
0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2011-04-13 20:36 UTC (permalink / raw)
To: guile-devel
Hey,
Andy Wingo <wingo@pobox.com> writes:
> What should we do here? Here are a few options:
>
> 1) Require people to recompile all the time. Sucks.
>
> 2) Implement some sort of proper dependency management. Tricky,
> because installing a new version of package A could force a
> recompile of all dependent packages; tough to get right on a
> package-management level.
>
> 3) Declare that private names referenced by macro expansions are
> actually API that should not break.
I guess the short-term solution is (3).
Before 2.0.1 is out, what about amending
531c9f1dc51c4801c4d031ee80a31f15285a6b85 to keep a dash instead of a
space in procedure names?
As a side effect, we’ll get unused-toplevel warnings. These should be
solved differently anyway [0]...
Thanks,
Ludo’.
[0] http://thread.gmane.org/gmane.lisp.guile.devel/9863
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: more define-inlinable-related breakage
@ 2011-04-13 17:45 Mike Gran
0 siblings, 0 replies; 3+ messages in thread
From: Mike Gran @ 2011-04-13 17:45 UTC (permalink / raw)
To: Andy Wingo, guile-devel
> From:Andy Wingo <wingo@pobox.com>
>
> module/ice-9/boot-9.scm:118:20: In procedure module-lookup: Unbound
> variable: %uri?-procedure
FWIW, I got the same error while hacking one day. I couldn't track it down so
I did a make distclean and it went away. Glad to know that it wasn't just me.
-Mike
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-13 20:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13 16:23 more define-inlinable-related breakage Andy Wingo
2011-04-13 20:36 ` Ludovic Courtès
-- strict thread matches above, loose matches on Subject: below --
2011-04-13 17:45 Mike Gran
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).