unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* compiling with -DSCM_DEBUG=1
@ 2009-08-27  2:06 Ken Raeburn
  2009-09-01 19:35 ` Ludovic Courtès
  0 siblings, 1 reply; 26+ messages in thread
From: Ken Raeburn @ 2009-08-27  2:06 UTC (permalink / raw)
  To: guile-devel

__scm.h suggests defining SCM_DEBUG this as a way of turning on all  
debugging options, so I tried adding -DSCM_DEBUG=1 to CPPFLAGS on the  
configure command line, using the latest git version (3bcf189).  But  
the test programs in the tree don't build on my Mac, because  
scm_i_expensive_validation_check isn't exported from the library.  The  
patch below seems to fix it.

Then -- both on the Mac and on GNU/Linux (RHEL4) -- compiling occam- 
channel.scm fails with:

> GUILE_AUTO_COMPILE=0 ../meta/uninstalled-env guile-tools compile -o  
> "ice-9/occam-channel.go" "../../module/ice-9/occam-channel.scm"
> Non-pair accessed with SCM_C[AD]R: `#<procedure #f (#{class\  
> 1972}# . #{initargs\ 1971}#)>'
> make[2]: *** [ice-9/occam-channel.go] Abort trap

--- a/libguile/gc.h
+++ b/libguile/gc.h
@@ -248,7 +248,7 @@ SCM_INTERNAL void scm_i_ensure_marking(void);
  SCM_API int scm_debug_cell_accesses_p;
  SCM_API int scm_expensive_debug_cell_accesses_p;
  SCM_API int scm_debug_cells_gc_interval ;
-void scm_i_expensive_validation_check (SCM cell);
+SCM_API void scm_i_expensive_validation_check (SCM cell);
  #endif

  SCM_INTERNAL scm_i_pthread_mutex_t scm_i_gc_admin_mutex;





^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2009-11-16 20:40 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-27  2:06 compiling with -DSCM_DEBUG=1 Ken Raeburn
2009-09-01 19:35 ` Ludovic Courtès
2009-09-03 21:04   ` Ken Raeburn
2009-09-04 22:56     ` Ken Raeburn
2009-09-05 23:42       ` Ken Raeburn
2009-09-06  0:37         ` Ken Raeburn
2009-09-06  8:47           ` Andy Wingo
2009-09-07  9:22           ` Ludovic Courtès
2009-09-09 15:51             ` Ken Raeburn
2009-10-18 22:44         ` Neil Jerram
2009-10-19 13:52           ` Ken Raeburn
2009-10-19 18:47             ` Andy Wingo
2009-10-29 22:16             ` Ken Raeburn
2009-10-30 21:28               ` Neil Jerram
2009-10-31 15:42                 ` Neil Jerram
2009-11-14 11:46                   ` Andy Wingo
2009-11-14 13:47                     ` Neil Jerram
2009-11-14 17:07                       ` Ken Raeburn
2009-11-15  4:34                         ` Ken Raeburn
2009-11-15 22:25                           ` Neil Jerram
2009-11-16  6:08                             ` Ken Raeburn
2009-11-16 19:27                               ` Andy Wingo
2009-11-16 19:37                               ` Ken Raeburn
2009-11-16 20:40                                 ` Neil Jerram
2009-11-15 22:10                         ` Neil Jerram
2009-10-31 14:39               ` Ludovic Courtès

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).