|
From: | Thomas Chust |
Subject: | Re: [Chicken-users] Bug in the numbers egg? |
Date: | Thu, 11 Aug 2005 02:17:55 +0200 |
User-agent: | Mozilla Thunderbird 1.0.6 (Macintosh/20050716) |
John.Cowan wrote:
[...] According to the GMP home page at http://swox.com/gmp/ , many versions of gcc miscompile GMP due to too-aggressive optimizations. We may need another library (or, Ghu forbid, a different C compiler). Try reinstalling libgmp from source.
Hello,as a matter of fact, I had gmp 4.1.4 installed from source anyway, but I just rerun the test suite of the library and it worked flawlessly -- so the problem must lie somewhere else. I suppose the expt code should be the culprit because the following works:
$ csi _______ _ __ / ___/ / (_)___/ /_____ ___ / /__/ _ \/ / __/ '_/ -_) _ \ \___/_//_/_/\__/_/\_\\__/_//_/ Version 2, Build 104 - macosx-unix-gnu-ppc - [ dload ] (c)2000-2005 Felix L. Winkelmann #;1> (use numbers) ; loading /usr/local/lib/chicken/numbers.scm ... ; loading /usr/local/lib/chicken/numbers-base.so ... #;2> (do ((n 1 (* n 10)) (i 0 (add1 i))) ((>= i 100) n)) 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 cu, Thomas Chust
[Prev in Thread] | Current Thread | [Next in Thread] |