unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Build errors, stable-2.0, missing declarations
@ 2011-03-22 22:43 Kevin Fletcher
  2011-03-23 23:22 ` Andreas Rottmann
  2011-03-24 19:39 ` Andy Wingo
  0 siblings, 2 replies; 5+ messages in thread
From: Kevin Fletcher @ 2011-03-22 22:43 UTC (permalink / raw)
  To: bug-guile

[-- Attachment #1: Type: text/plain, Size: 83 bytes --]

Branch: 190d4b0..8099352  stable-2.0 -> origin/stable-2.0

'make -k' log attached.

[-- Attachment #2: make-log --]
[-- Type: application/octet-stream, Size: 6110 bytes --]

/usr/bin/make  all-recursive
make[1]: Entering directory `/home/kjfletch/repos/guile'
Making all in lib
make[2]: Entering directory `/home/kjfletch/repos/guile/lib'
/usr/bin/make  all-recursive
make[3]: Entering directory `/home/kjfletch/repos/guile/lib'
make[4]: Entering directory `/home/kjfletch/repos/guile/lib'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/kjfletch/repos/guile/lib'
make[3]: Leaving directory `/home/kjfletch/repos/guile/lib'
make[2]: Leaving directory `/home/kjfletch/repos/guile/lib'
Making all in meta
make[2]: Entering directory `/home/kjfletch/repos/guile/meta'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/kjfletch/repos/guile/meta'
Making all in libguile
make[2]: Entering directory `/home/kjfletch/repos/guile/libguile'
/usr/bin/make  all-am
make[3]: Entering directory `/home/kjfletch/repos/guile/libguile'
  CC     libguile_2.0_la-threads.lo
threads.c:542: warning: 'struct GC_stack_base' declared inside parameter list
threads.c:542: warning: its scope is only this definition or declaration, which is probably not what you want
threads.c: In function 'do_thread_exit_trampoline':
threads.c:547: warning: implicit declaration of function 'GC_register_my_thread'
threads.c:551: error: 'GC_SUCCESS' undeclared (first use in this function)
threads.c:551: error: (Each undeclared identifier is reported only once
threads.c:551: error: for each function it appears in.)
threads.c:552: warning: implicit declaration of function 'GC_unregister_my_thread'
threads.c: In function 'on_thread_exit':
threads.c:584: warning: implicit declaration of function 'GC_call_with_stack_base'
make[3]: *** [libguile_2.0_la-threads.lo] Error 1
make[3]: Target `all-am' not remade because of errors.
make[3]: Leaving directory `/home/kjfletch/repos/guile/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/kjfletch/repos/guile/libguile'
Making all in module
make[2]: Entering directory `/home/kjfletch/repos/guile/module'
  GUILEC ice-9/eval.go
exec: 136: /home/kjfletch/repos/guile/libguile/guile: not found
make[2]: *** [ice-9/eval.go] Error 2
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/home/kjfletch/repos/guile/module'
Making all in guile-readline
make[2]: Entering directory `/home/kjfletch/repos/guile/guile-readline'
/usr/bin/make  all-am
make[3]: Entering directory `/home/kjfletch/repos/guile/guile-readline'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/kjfletch/repos/guile/guile-readline'
make[2]: Leaving directory `/home/kjfletch/repos/guile/guile-readline'
Making all in examples
make[2]: Entering directory `/home/kjfletch/repos/guile/examples'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/kjfletch/repos/guile/examples'
Making all in emacs
make[2]: Entering directory `/home/kjfletch/repos/guile/emacs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/kjfletch/repos/guile/emacs'
Making all in test-suite
make[2]: Entering directory `/home/kjfletch/repos/guile/test-suite'
Making all in standalone
make[3]: Entering directory `/home/kjfletch/repos/guile/test-suite/standalone'
/usr/bin/make  all-am
make[4]: Entering directory `/home/kjfletch/repos/guile/test-suite/standalone'
make[4]: *** No rule to make target `../../libguile/libguile-2.0.la', needed by `libtest-asmobs.la'.
make[4]: Target `all-am' not remade because of errors.
make[4]: Leaving directory `/home/kjfletch/repos/guile/test-suite/standalone'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/kjfletch/repos/guile/test-suite/standalone'
Making all in vm
make[3]: Entering directory `/home/kjfletch/repos/guile/test-suite/vm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/kjfletch/repos/guile/test-suite/vm'
make[3]: Entering directory `/home/kjfletch/repos/guile/test-suite'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/kjfletch/repos/guile/test-suite'
make[2]: *** [all-recursive] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/home/kjfletch/repos/guile/test-suite'
Making all in benchmark-suite
make[2]: Entering directory `/home/kjfletch/repos/guile/benchmark-suite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/kjfletch/repos/guile/benchmark-suite'
Making all in gc-benchmarks
make[2]: Entering directory `/home/kjfletch/repos/guile/gc-benchmarks'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/kjfletch/repos/guile/gc-benchmarks'
Making all in am
make[2]: Entering directory `/home/kjfletch/repos/guile/am'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/kjfletch/repos/guile/am'
Making all in doc
make[2]: Entering directory `/home/kjfletch/repos/guile/doc'
Making all in ref
make[3]: Entering directory `/home/kjfletch/repos/guile/doc/ref'
GUILE_AUTO_COMPILE=0				\
	"/home/kjfletch/repos/guile/meta/guile" "./make-texinfo.scm"	\
	  "/home/kjfletch/repos/guile/doc/ref/standard-library.scm" > "standard-library.texi.tmp"
exec: 136: /home/kjfletch/repos/guile/libguile/guile: not found
make[3]: *** [standard-library.texi] Error 2
make[3]: Target `all' not remade because of errors.
make[3]: Leaving directory `/home/kjfletch/repos/guile/doc/ref'
Making all in r5rs
make[3]: Entering directory `/home/kjfletch/repos/guile/doc/r5rs'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/kjfletch/repos/guile/doc/r5rs'
make[3]: Entering directory `/home/kjfletch/repos/guile/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/kjfletch/repos/guile/doc'
make[2]: *** [all-recursive] Error 1
make[2]: Target `all' not remade because of errors.
make[2]: Leaving directory `/home/kjfletch/repos/guile/doc'
make[2]: Entering directory `/home/kjfletch/repos/guile'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/kjfletch/repos/guile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kjfletch/repos/guile'
make: *** [all] Error 2

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

* Re: Build errors, stable-2.0, missing declarations
  2011-03-22 22:43 Build errors, stable-2.0, missing declarations Kevin Fletcher
@ 2011-03-23 23:22 ` Andreas Rottmann
  2011-03-24 19:39 ` Andy Wingo
  1 sibling, 0 replies; 5+ messages in thread
From: Andreas Rottmann @ 2011-03-23 23:22 UTC (permalink / raw)
  To: Kevin Fletcher; +Cc: bug-guile

Kevin Fletcher <kevinjohn.fletcher@gmail.com> writes:

> Branch: 190d4b0..8099352  stable-2.0 -> origin/stable-2.0
>
> 'make -k' log attached.
>
> /usr/bin/make  all-recursive
[...]
> make[3]: Entering directory `/home/kjfletch/repos/guile/libguile'
>   CC     libguile_2.0_la-threads.lo
> threads.c:542: warning: 'struct GC_stack_base' declared inside parameter list
> threads.c:542: warning: its scope is only this definition or declaration, which is probably not what you want
> threads.c: In function 'do_thread_exit_trampoline':
> threads.c:547: warning: implicit declaration of function 'GC_register_my_thread'
> threads.c:551: error: 'GC_SUCCESS' undeclared (first use in this function)
> threads.c:551: error: (Each undeclared identifier is reported only once
> threads.c:551: error: for each function it appears in.)
> threads.c:552: warning: implicit declaration of function 'GC_unregister_my_thread'
> threads.c: In function 'on_thread_exit':
> threads.c:584: warning: implicit declaration of function 'GC_call_with_stack_base'
> make[3]: *** [libguile_2.0_la-threads.lo] Error 1
>
This looks like a problem with libgc; can you provide information about
your platform (operating system version, processor architecture) and the
libgc version you (or rather Guile's build process) are using?  The
output of "pkg-config --modversion bdw-gc" would provide the latter
information.

I think libgc 7.1 is minimum, but I have experienced problems also with
that version (although the problems were much more subtle, i.e. no
compilation issues); libgc 7.2alpha5 works fine on my system (Debian
sid, amd64).

Regards, Rotty
-- 
Andreas Rottmann -- <http://rotty.yi.org/>



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

* Re: Build errors, stable-2.0, missing declarations
  2011-03-22 22:43 Build errors, stable-2.0, missing declarations Kevin Fletcher
  2011-03-23 23:22 ` Andreas Rottmann
@ 2011-03-24 19:39 ` Andy Wingo
  2011-03-31 19:42   ` Kevin Fletcher
  1 sibling, 1 reply; 5+ messages in thread
From: Andy Wingo @ 2011-03-24 19:39 UTC (permalink / raw)
  To: Kevin Fletcher; +Cc: bug-guile

On Tue 22 Mar 2011 23:43, Kevin Fletcher <kevinjohn.fletcher@gmail.com> writes:

> threads.c:542: warning: 'struct GC_stack_base' declared inside parameter list

I added some bdw-gc 6.8 code in git.  Can you test it?

Thanks,

Andy
-- 
http://wingolog.org/



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

* Re: Build errors, stable-2.0, missing declarations
  2011-03-24 19:39 ` Andy Wingo
@ 2011-03-31 19:42   ` Kevin Fletcher
  2011-03-31 20:18     ` Andy Wingo
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Fletcher @ 2011-03-31 19:42 UTC (permalink / raw)
  To: Andy Wingo; +Cc: bug-guile

[-- Attachment #1: Type: text/plain, Size: 1442 bytes --]

On 24 March 2011 19:39, Andy Wingo <wingo@pobox.com> wrote:
> On Tue 22 Mar 2011 23:43, Kevin Fletcher <kevinjohn.fletcher@gmail.com> writes:
>
>> threads.c:542: warning: 'struct GC_stack_base' declared inside parameter list
>
> I added some bdw-gc 6.8 code in git.  Can you test it?
>
> Thanks,
>
> Andy
> --
> http://wingolog.org/
>

I've successfully built stable-2.0 with a minor patch. I've also
linked against libguile and although I am not pushing it to the limits
it appears to be working.

I'm running stock debian squeeze with all standard software apart from
a local build of gmp:

$ ldd `which guile`
	linux-gate.so.1 =>  (0xb772e000)
	libguile-2.0.so.22 => /home/kjfletch/lib/libguile-2.0.so.22 (0xb75e9000)
	libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb75a6000)
	libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb757f000)
	libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7566000)
	libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7420000)
	libgc.so.1 => /usr/lib/libgc.so.1 (0xb73ed000)
	libffi.so.5 => /usr/lib/libffi.so.5 (0xb73e7000)
	libunistring.so.0 => /home/kjfletch/lib/libunistring.so.0 (0xb72d8000)
	--> libgmp.so.10 => /home/kjfletch/lib/libgmp.so.10 (0xb7275000) <--
	libltdl.so.7 => /usr/lib/libltdl.so.7 (0xb726d000)
	/lib/ld-linux.so.2 (0xb772f000)
	libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7269000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb724b000)

Thanks,
Kevin Fletcher.

[-- Attachment #2: missing-params.diff --]
[-- Type: text/x-patch, Size: 569 bytes --]

diff --git a/libguile/threads.c b/libguile/threads.c
index d81f4f4..14bda1d 100644
--- a/libguile/threads.c
+++ b/libguile/threads.c
@@ -97,7 +97,7 @@ struct GC_stack_base {
 };
 
 static int
-GC_register_my_thread (struct GC_stack_base *)
+GC_register_my_thread (struct GC_stack_base *stack_base)
 {
   return GC_UNIMPLEMENTED;
 }
@@ -153,7 +153,7 @@ get_thread_stack_base ()
 #endif
 
 static int
-GC_get_stack_base (struct GC_stack_base *)
+GC_get_stack_base (struct GC_stack_base *stack_base)
 {
   stack_base->mem_base = get_thread_stack_base ();
 #ifdef __ia64__

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

* Re: Build errors, stable-2.0, missing declarations
  2011-03-31 19:42   ` Kevin Fletcher
@ 2011-03-31 20:18     ` Andy Wingo
  0 siblings, 0 replies; 5+ messages in thread
From: Andy Wingo @ 2011-03-31 20:18 UTC (permalink / raw)
  To: Kevin Fletcher; +Cc: bug-guile

On Thu 31 Mar 2011 21:42, Kevin Fletcher <kevinjohn.fletcher@gmail.com> writes:

> I've successfully built stable-2.0 with a minor patch. I've also
> linked against libguile and although I am not pushing it to the limits
> it appears to be working.

Cool, applied.  Thanks!

Andy
-- 
http://wingolog.org/



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

end of thread, other threads:[~2011-03-31 20:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-22 22:43 Build errors, stable-2.0, missing declarations Kevin Fletcher
2011-03-23 23:22 ` Andreas Rottmann
2011-03-24 19:39 ` Andy Wingo
2011-03-31 19:42   ` Kevin Fletcher
2011-03-31 20:18     ` Andy Wingo

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