unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: guile-devel@gnu.org
Subject: Re: request review: branch "wingo"
Date: Tue, 31 Mar 2009 12:11:01 -0700	[thread overview]
Message-ID: <m3bprho6d6.fsf@pobox.com> (raw)
In-Reply-To: <87r60dir51.fsf@gnu.org> ("Ludovic Courtès"'s message of "Tue, 31 Mar 2009 18:38:50 +0200")

Hi,

On Tue 31 Mar 2009 09:38, ludo@gnu.org (Ludovic Courtès) writes:

> Andy Wingo <wingo@pobox.com> writes:
>
>> So, I really intended to wait for review, but it's irritating having
>> `master' broken, so I went ahead and merged this in.
>
> You waited for 31 hours and I still don't know how it was "broken",
> which I find irritating as well.

    .scm.go:
    	$(MKDIR_P) `dirname $@`
    	$(top_builddir)/pre-inst-guile					\
    	  -l $(top_builddir)/libguile/stack-limit-calibration.scm	\
    	  $(top_srcdir)/scripts/compile -o "$@" "$<"

This will run the compile script, but since there is no entry point
(-e), you just load the compile script then exit. No compilation
happens.

>
>> I think the stack calibration stuff is correct,
>
> Again, this all boils down to an arbitrary choice: 1 MiB instead of
> 40 KiB.  Surely someday this won't be enough.

I can remove the 1 MiB limit -- perhaps that's the right thing to do,
then. Just use 80% of the rlimit.

> Besides, there's the thread about cross-compilation where we mention
> building the compiler with an already installed Guile that may have an
> inappropriate stack limit.

I don't think that is relevant. Since the Guile that is running would
choose a stack size appropriate for it, based on the host getrlimit,
there would be no problem.

>> but perhaps more jarring
>> in this commit is a move from ./pre-inst-guile to ./meta/guile, and
>> ./pre-inst-guile-env to ./meta/uninstalled-env. I describe the rationale
>> in 0b6d8fdc28ed8af56e93157179c305fef037e0a0.
>
> I think the rationale ("[...] I
> want to be able to build external packages against uninstalled Guile,
> [....]") is questionable.  Things are not
> meant to work this way (Libtool's `.la' and executable scripts, `.pc'
> files, etc.), so it looks quite hackish to me.

Linking against uninstalled libtool libraries works fine, as long as you
don't install. Pkg-config is designed for uninstalled operation, from
pkg-config(1):

  --uninstalled

         Normally if you request the package "foo" and the package
         "foo-uninstalled" exists, pkg-config will prefer the
         "-uninstalled" variant. This allows compilation/linking against
         uninstalled packages. If you specify the "--uninstalled"
         option, pkg-config will return successfully if any
         "-uninstalled" packages are being used, and return failure
         (false) otherwise. (The "PKG_CONFIG_DISABLE_UNINSTALLED"
         environment variable keeps pkg-config from implicitly choosing
         "-uninstalled" packages, so if that variable is set, they will
         only have been used if you pass a name like "foo-uninstalled"
         on the command line explicitly.)

> I'm probably biased because I've got used to installing Guile when I
> want to test apps against it (I have 1.8 and HEAD under a different
> prefix so I can test against both).

I have that too, but it adds a step to the debugging cycle. I don't
think there's any harm in supporting this additional mode of hacking,
which is only for hackers in any case.

Cheers,

Andy
-- 
http://wingolog.org/




  reply	other threads:[~2009-03-31 19:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-27 23:29 request review: branch "wingo" Andy Wingo
2009-03-29  6:20 ` Andy Wingo
2009-03-29 21:16   ` Neil Jerram
2009-03-30 21:39   ` Neil Jerram
2009-03-31  3:31     ` Andy Wingo
2009-03-31 23:25       ` Neil Jerram
2009-04-01  7:49         ` Ludovic Courtès
2009-04-01 13:46           ` Greg Troxel
2009-04-01 22:23           ` Neil Jerram
2009-04-03 17:24             ` Andy Wingo
2009-04-03 17:51         ` Andy Wingo
2009-04-12 13:00           ` Neil Jerram
2009-03-31 16:38   ` Ludovic Courtès
2009-03-31 19:11     ` Andy Wingo [this message]
2009-03-31 21:31       ` Ludovic Courtès
2009-03-31 22:47         ` Andy Wingo
2009-04-01  7:51           ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3bprho6d6.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).