Re: guile-2.0.0 fails to build without threads

2011-05-20 Thread Andy Wingo
On Mon 02 May 2011 08:20, Marco Maggi writes: > Andy Wingo wrote: >>> stack size (kbytes, -s) 8192 >> >> This should be quite large enough. If you are still >> interested in debugging this issue, can you "call >> scm_stack_report ()" in gdb from the scm_ithrow? > > Br

Re: [build error] ./.libs/libguile-2.0.so: undefined reference to `clock_getcpuclockid'

2011-05-20 Thread Andy Wingo
Hi Douglas, On Tue 10 May 2011 20:16, Douglas Mencken writes: > To get clock_getcpuclockid, it is needed to link with librt, where > this symbol is present Can you check your config.log for mentions of clock_gettime ? For example in mine I have: configure:25329: checking for library contain

Re: {debug,read,readline,print}-{set!,disable,enable}

2011-05-20 Thread Andy Wingo
On Fri 29 Apr 2011 14:12, Wolfgang J Moeller writes: > In fact, {debug,print,read}-set! are macros that want "option-name" to > be a literal symbol, while {debug,read}-{en,dis}able are procedures > indeed (apparently taking multiple arguments) that want the > "option-name"[s] to be quoted symbol[

Re: Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7

2011-05-20 Thread Andy Wingo
On Sun 15 May 2011 12:56, Hans Aberg writes: > On Mac OS X 10.6.7, compiled using Xcode Version 3.2.6 64-bit, > i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1, scm_init_guile() gives the > error: > > Failed to get stack base for current thread. The code in question does this: void scm_init

Re: Guile with win32 cross compiling

2011-05-20 Thread Andy Wingo
Hi Volker, Thanks for the report. On Tue 17 May 2011 01:01, Volker Grabsch writes: > "fix-include-error-in-gen-scmconfig.patch" > The patch re-introduces a change which I already proposed > in my last patch: You can't use $(AM_CPPFLAGS) for the native > build, because it adds "-

Re: Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7

2011-05-20 Thread Hans Aberg
On 20 May 2011, at 12:11, Andy Wingo wrote: >> On Mac OS X 10.6.7, compiled using Xcode Version 3.2.6 64-bit, >> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1, scm_init_guile() gives the >> error: >> >> Failed to get stack base for current thread. > > The code in question does this: > >void >

Re: Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7

2011-05-20 Thread Hans Aberg
On 20 May 2011, at 12:11, Andy Wingo wrote: >> On Mac OS X 10.6.7, compiled using Xcode Version 3.2.6 64-bit, >> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1, scm_init_guile() gives the >> error: >> >> Failed to get stack base for current thread. ... > As you can see we rely on libgc here, and so t

Re: Guile with win32 cross compiling

2011-05-20 Thread Volker Grabsch
Hello Andy, thanks for the quick reply and for accepting and cleaning up my patches so far. Andy Wingo schrieb: > > CC net_db.lo > > net_db.c:460:1: error: 'AI_ALL' undeclared here (not in a function) > > net_db.c:460:1: error: expression in static assertion is not an integer > > net_db.c:4

Re: Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7

2011-05-20 Thread Andy Wingo
On Fri 20 May 2011 13:31, Hans Aberg writes: > On 20 May 2011, at 12:11, Andy Wingo wrote: > >>> On Mac OS X 10.6.7, compiled using Xcode Version 3.2.6 64-bit, >>> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1, scm_init_guile() gives the >>> error: >>> >>> Failed to get stack base for current threa

Re: Guile with win32 cross compiling

2011-05-20 Thread Andy Wingo
On Fri 20 May 2011 14:48, Jan Nieuwenhuizen writes: > Volker Grabsch writes: > >> 1) My first attempt is to enable threads via: > > Just to remind you that we have an automated working mingw cross build > setup here > > https://github.com/janneke/gub Cool :-) Just to remind *you* that I hav

Re: Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7

2011-05-20 Thread Hans Aberg
On 20 May 2011, at 15:10, Andy Wingo wrote: On Mac OS X 10.6.7, compiled using Xcode Version 3.2.6 64-bit, i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1, scm_init_guile() gives the error: Failed to get stack base for current thread. >> ... >>> As you can see we rely on libgc

Re: Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7

2011-05-20 Thread Andy Wingo
Hello, On Fri 20 May 2011 15:39, Hans Aberg writes: > There is a comment in in libguile/gc.c suggesting it isn't called, there is: > > void > scm_storage_prehistory () > { > GC_all_interior_pointers = 0; > GC_set_free_space_divisor (scm_getenv_int ("GC_FREE_SPACE_DIVISOR", 3)); > > GC_INIT

Re: guile 2.0.1 crash compiling gnome startup code

2011-05-20 Thread Andy Wingo
Hi Jeff, On Wed 11 May 2011 15:58, Jeff Sparkes writes: > [jsparkes ~]$ gdb guile core > GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 > Copyright (C) 2010 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are

Re: Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7

2011-05-20 Thread Hans Aberg
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

Re: [build error] ./.libs/libguile-2.0.so: undefined reference to `clock_getcpuclockid'

2011-05-20 Thread Andy Wingo
On Fri 20 May 2011 12:07, Andy Wingo writes: > Hi Douglas, > > On Tue 10 May 2011 20:16, Douglas Mencken writes: > >> To get clock_getcpuclockid, it is needed to link with librt, where >> this symbol is present Does this patch fix it for you? >From 5ad05b93a3f02be7c66fbab9c49e23ca314b7c33 Mon

Re: guile-2.0.0 fails to build without threads

2011-05-20 Thread Marco Maggi
Andy Wingo wrote: > Thanks. You seem to be running on system in which the > stackgrows up.Isthat thecase?Check > libguile/scmconfig.h and config.log. Yes, I have: #define SCM_STACK_GROWS_UP 1 /* 0 or 1 */ in "scmconfig.h"; my system is just a i686-pc-linux-gnu. > Yo

Re: Guile with win32 cross compiling

2011-05-20 Thread Jan Nieuwenhuizen
Volker Grabsch writes: > 1) My first attempt is to enable threads via: Just to remind you that we have an automated working mingw cross build setup here https://github.com/janneke/gub with guile-specific recipe and patches up at https://github.com/janneke/gub/blob/guile-2.0/gub/specs/g

Re: Guile with win32 cross compiling

2011-05-20 Thread Volker Grabsch
Jan Nieuwenhuizen schrieb: > https://github.com/janneke/gub/blob/guile-2.0/gub/specs/guile.py > https://github.com/janneke/gub/tree/guile-2.0/patches Thanks for pointing me to this project. This looks really promising and I would be glad for learning from that. 1) The pthread issue As fa

Re: guile-2.0.0 fails to build without threads

2011-05-20 Thread Mark H Weaver
Marco Maggi writes: > Andy Wingo wrote: >> You mention in your original report: >> CFLAGS=3D'-O3 -march=3Di686 -mtune=3Di686' > >> Are the "3D" things an artifact of some mailing list >> encoding thing, or are they a mis-paste? > > They were just "=" characters, but while pasting t