From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: guile-devel@gnu.org, Dmitry Dzhus <dima@dzhus.org>
Subject: Re: Building without posix
Date: Thu, 30 Jun 2011 12:10:22 +0200 [thread overview]
Message-ID: <87iprnd3zl.fsf@pobox.com> (raw)
In-Reply-To: <87y63ca35m.fsf@gnu.org> ("Ludovic Courtès"'s message of "Fri, 15 Apr 2011 00:17:41 +0200")
Hi!
A bit late, but...
On Fri 15 Apr 2011 00:17, ludo@gnu.org (Ludovic Courtès) writes:
> Dmitry Dzhus <dima@dzhus.org> writes:
>
>> Is POSIX module considered optional?
>
> Not really.
>
>> Configuring guile-2.0 and git trunk with --disable-posix results in the
>> following error on my x86:
>
> I pushed a patch that should allow Guile to be built with
> ‘--disable-posix’.
>
> However, there’s quite a bit of Scheme code that needs access to POSIX
> functions now, notably the compiler. So a number of file system access
> procedures must be compiled for the compiler to work.
>
> With the patch I pushed, ./check-guile doesn’t even work because
> ‘readdir’ & co. are lacking. We could change this to compile them even
> with ‘--disable-posix’, but the problem is that there could be even more
> of them, which would defeat the whole point of ‘--disable-posix’, I guess.
I think we should focus on the GNU system, using gnulib to adapt other
systems to look like GNU. Disabling POSIX bindings helps no one on the
GNU system -- if the question is one of library size, the solution
should be loadable modules, not compile-time options. We are doing very
well in that way. A stripped libguile is 1.5MB, like libc.
That said, I don't like a lot of our POSIX bindings. It's in the
default module, and it's lots of symbols. But it's probably best to
migrate to some more modularized world using deprecation than to
continue with the --disable-posix fantasy.
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2011-06-30 10:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-01 22:41 Building without posix Dmitry Dzhus
2011-04-02 15:25 ` Dmitry Dzhus
2011-06-30 10:29 ` Andy Wingo
2011-04-14 22:17 ` Ludovic Courtès
2011-06-30 10:10 ` Andy Wingo [this message]
2011-06-30 14:17 ` Ludovic Courtès
2011-06-30 14:30 ` Andy Wingo
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=87iprnd3zl.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=dima@dzhus.org \
--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).