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 marco.maggi-i...@poste.it 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

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 dougmenc...@gmail.com 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

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

2011-05-20 Thread Andy Wingo
On Fri 29 Apr 2011 14:12, Wolfgang J Moeller w...@heenes.com 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

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 haber...@telia.com 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:

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 v...@notjusthosting.com 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,

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 this is a

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:482:33:

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 haber...@telia.com 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

Re: Guile with win32 cross compiling

2011-05-20 Thread Andy Wingo
On Fri 20 May 2011 14:48, Jan Nieuwenhuizen jann...@gnu.org 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*

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 here, and so this is a

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 haber...@telia.com 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));

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 jspar...@gmail.com 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 http://gnu.org/licenses/gpl.html This is free

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

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

Re: guile-2.0.0 fails to build without threads

2011-05-20 Thread Mark H Weaver
Marco Maggi marco.maggi-i...@poste.it 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