From: Robert Dodier <robert_dodier@ya...> - 2008-01-20 20:09:27
I have been trying to compile Maxima, a computer algebra
program, w/ ABCL. Incidentally I'm working on Linux.
In several files I get a stack overflow error in the compiler.
Splitting apart some files seems to help but there is at least
one file for which that tactic doesn't help (at least not yet).
I've tried changing -Xss4M to -Xss48M (on the theory that -Xss
is a stack size parameter) but that doesn't seem to help.
I wonder if others have bumped into this problem, and if so,
what is a reliable workaround.
All the best,
PS. Here is an example of a function which triggers the error.
This compiles OK if it is in a file by itself, but in its
original file (maxima/src/cl-info.lisp if anyone cares to look)
it triggers the error.
'((noop "") (all "a" "al" "all") (none "n" "no" "non" "none")))
(defun parse-user-choice (nitems)
with line = (read-line) and nth and pos = 0
while (multiple-value-setq (nth pos)
(parse-integer line :start pos :junk-allowed t))
if (or (minusp nth) (>= nth nitems))
do (format *debug-io*
"~&Discarding invalid number ~d." nth)
else collect nth into list
'(#\space #\tab #\newline #\;) (subseq line pos))
:test #'(lambda (item list)
(member item list :test #'string-equal))))))
(setq keyword 'noop)
(format *debug-io* "~&Ignoring trailing garbage in input."))
(return (cons keyword list)))))
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Get latest updates about Open Source Projects, Conferences and News.