unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* FAIL: test-use-srfi (Leopard)
@ 2008-05-17 10:51 Alexander Asteroth
  2008-05-19  8:59 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Asteroth @ 2008-05-17 10:51 UTC (permalink / raw)
  To: bug-guile

OK, I managed getting guile-1.8.5 compiled on Mac OS X Leopard.

Since gmp-4.2.2 detected 64 bit (and compilation failed with ABI=32) I  
configured guile with CLFLAGS=-m64. After using make LIBTOOL=/usr/ 
local/bin/libool (to get libtool-2.2.2) compilation succeeded  
successfully.

When doing a make check, I get an error trace (see below).
Also the binary guile fails to execute with an error trace - stack  
overflow).

Thanks for any help,

	Alex

PS: I also tried guile-1.8.4 before and 1.6.8. Both faild to compile.

==============================================================

...
make  check-TESTS
PASS: test-system-cmds
PASS: test-require-extension
PASS: test-bad-identifiers
PASS: test-num2integral
PASS: test-round
PASS: test-gh
PASS: test-asmobs
PASS: test-list
PASS: test-unwind
PASS: test-conversion
Backtrace:
In unknown file:
    ?: 133* [#<procedure #f ()>]
    ?: 134* [load-file #<primitive-procedure primitive-load> ...]
    ?: 135* [save-module-excursion #<procedure #f ()>]
    ?: 136  (let (# #) (dynamic-wind # thunk #))
    ?: 137  [dynamic-wind #<procedure #f ()> #<procedure #f ()>  
#<procedure #f ()>]
    ?: 138* [#<procedure #f ()>]
    ?: 139* [primitive-load "/Users/aster/src/guile-1.8.5/ice-9/ 
debug.scm"]
In /Users/aster/src/guile-1.8.5/ice-9/debug.scm:
   22: 140* (define-module (ice-9 debug) :export ...)
In unknown file:
    ?: 141* [copy-tree ...
    ?: 142* [apply #<procedure #f args> (# :export #)]
    ?: 143  [#<procedure #f args> (ice-9 debug) :export ...]
    ?: 144  (quasiquote (eval-case (# #) (else #)))
    ?: 145* [compile-define-module-args (# :export #)]
    ?: 146  [loop ((quote #)) (:export (frame-number->index trace  
untrace ...))]
      ...
    ?: 147  [loop ((quote (ice-9 debug))) ...
    ?: 148* [cons ...
    ?: 149* [keyword-like-symbol->keyword :export]
    ?: 150  [symbol->keyword ...
    ?: 151* [string->symbol ...
    ?: 152* (substring (symbol->string sym) 1)

<unnamed port>: In expression (substring (symbol->string sym) 1):
<unnamed port>: Stack overflow
guile --use-srfi=1,10 fails to run
FAIL: test-use-srfi
PASS: test-with-guile-module
==================================
1 of 12 tests failed
Please report to bug-guile@gnu.org
==================================
make[4]: *** [check-TESTS] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1





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

* Re: FAIL: test-use-srfi (Leopard)
  2008-05-17 10:51 FAIL: test-use-srfi (Leopard) Alexander Asteroth
@ 2008-05-19  8:59 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2008-05-19  8:59 UTC (permalink / raw)
  To: bug-guile

Hi,

Alexander Asteroth <alex@soeven.de> writes:

> OK, I managed getting guile-1.8.5 compiled on Mac OS X Leopard.
>
> Since gmp-4.2.2 detected 64 bit (and compilation failed with ABI=32) I
> configured guile with CLFLAGS=-m64. After using make LIBTOOL=/usr/
> local/bin/libool (to get libtool-2.2.2) compilation succeeded
> successfully.

So you didn't have to modify the source at all, right?

> Backtrace:
> In unknown file:
>    ?: 133* [#<procedure #f ()>]
>    ?: 134* [load-file #<primitive-procedure primitive-load> ...]
>    ?: 135* [save-module-excursion #<procedure #f ()>]
>    ?: 136  (let (# #) (dynamic-wind # thunk #))
>    ?: 137  [dynamic-wind #<procedure #f ()> #<procedure #f ()>
> #<procedure #f ()>]
>    ?: 138* [#<procedure #f ()>]
>    ?: 139* [primitive-load "/Users/aster/src/guile-1.8.5/ice-9/
> debug.scm"]
> In /Users/aster/src/guile-1.8.5/ice-9/debug.scm:
>   22: 140* (define-module (ice-9 debug) :export ...)
> In unknown file:
>    ?: 141* [copy-tree ...
>    ?: 142* [apply #<procedure #f args> (# :export #)]
>    ?: 143  [#<procedure #f args> (ice-9 debug) :export ...]
>    ?: 144  (quasiquote (eval-case (# #) (else #)))
>    ?: 145* [compile-define-module-args (# :export #)]
>    ?: 146  [loop ((quote #)) (:export (frame-number->index trace
> untrace ...))]
>      ...
>    ?: 147  [loop ((quote (ice-9 debug))) ...
>    ?: 148* [cons ...
>    ?: 149* [keyword-like-symbol->keyword :export]
>    ?: 150  [symbol->keyword ...
>    ?: 151* [string->symbol ...
>    ?: 152* (substring (symbol->string sym) 1)
>
> <unnamed port>: In expression (substring (symbol->string sym) 1):
> <unnamed port>: Stack overflow

This indicates that the default Scheme stack depth limit is too low for
your platform.  Can you try the patch provided in the following message:

  http://permalink.gmane.org/gmane.lisp.guile.devel/7221

It implements automatic calibration of the stack depth limit.  You can
apply it by typing:

  cd guile-1.8.5
  patch -p0 < /path/to/the-patch.diff

As a side effect it will produce debugging output about the stack
calibration process; can you also report that output?

Thanks in advance,
Ludovic.





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

end of thread, other threads:[~2008-05-19  8:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-17 10:51 FAIL: test-use-srfi (Leopard) Alexander Asteroth
2008-05-19  8:59 ` 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).