From: Hans Aberg <haberg-1@telia.com>
To: Andy Wingo <wingo@pobox.com>
Cc: bug-guile bug <bug-guile@gnu.org>
Subject: Re: Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7
Date: Fri, 20 May 2011 18:21:58 +0200 [thread overview]
Message-ID: <983862CB-E614-4CC6-AC9F-09EC0455C879@telia.com> (raw)
In-Reply-To: <m34o4pwk1a.fsf@unquote.localdomain>
On 20 May 2011, at 15:58, Andy Wingo wrote:
> Did you enable threads? `grep PTHREAD scmconfig.h` to check.
$ grep PTHREAD libguile/scmconfig.h
#define SCM_USE_PTHREAD_THREADS 1 /* 0 or 1 */
/* Define to 1 if need braces around PTHREAD_ONCE_INIT (for Solaris). */
#define SCM_NEED_BRACES_ON_PTHREAD_ONCE_INIT 0 /* 0 or 1 */
/* Define to 1 if need braces around PTHREAD_MUTEX_INITIALIZER
#define SCM_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER 0 /* 0 or 1 */
#define SCM_HAVE_GC_PTHREAD_CANCEL 0 /* 0 or 1 */
#define SCM_HAVE_GC_PTHREAD_EXIT 0 /* 0 or 1 */
#define SCM_HAVE_GC_PTHREAD_SIGMASK 0 /* 0 or 1 */
> Here is the current definition of GC_INIT ():
>
> /* Portable clients should call this at the program start-up. More */
> /* over, some platforms require this call to be done strictly from the */
> /* primordial thread. */
> #define GC_INIT() { GC_INIT_CONF_DONT_EXPAND; /* pre-init */ \
> GC_INIT_CONF_FORCE_UNMAP_ON_GCOLLECT; \
> GC_INIT_CONF_MAX_RETRIES; \
> GC_INIT_CONF_FREE_SPACE_DIVISOR; \
> GC_INIT_CONF_FULL_FREQ; \
> GC_INIT_CONF_TIME_LIMIT; \
> GC_INIT_CONF_MAXIMUM_HEAP_SIZE; \
> GC_init(); /* real GC initialization */ \
> GC_INIT_CONF_ROOTS; /* post-init */ \
> GC_INIT_CONF_IGNORE_WARN; \
> GC_INIT_CONF_INITIAL_HEAP_SIZE; }
>
> So you see it does GC_init(). That was not always the case in previous
> versions, AFAIK.
And adding it does not help.
Hans
next prev parent reply other threads:[~2011-05-20 16:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87aafb2w68.fsf@gnu.org>
2011-05-15 10:56 ` Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7 Hans Aberg
2011-05-20 10:11 ` Andy Wingo
2011-05-20 10:52 ` Hans Aberg
2011-05-20 11:31 ` Hans Aberg
2011-05-20 13:10 ` Andy Wingo
2011-05-20 13:39 ` Hans Aberg
2011-05-20 13:58 ` Andy Wingo
2011-05-20 16:21 ` Hans Aberg [this message]
2011-05-21 12:58 ` Hans Aberg
2011-05-21 17:20 ` Hans Aberg
2011-06-17 9:26 ` Andy Wingo
2011-06-17 15:58 ` Hans Aberg
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=983862CB-E614-4CC6-AC9F-09EC0455C879@telia.com \
--to=haberg-1@telia.com \
--cc=bug-guile@gnu.org \
--cc=wingo@pobox.com \
/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).