Gaucheのバグ報告過去ログ。Epochから2002/7/19まで。
新しいバグ報告はGauche:Bugsにどうぞ。
$ gosh -V Gauche scheme interpreter, version 0.4.12 [euc-jp] $ gosh gosh> (+ 10 (if #t 0 1)) 0 ;; 10 が期待する値
static void write_circular_vector(ScmObj obj, ScmPort *port,
ScmWriteContext *ctx)
{
int len = SCM_VECTOR_SIZE(obj), i;
ScmObj *elts = SCM_VECTOR_ELEMENTS(obj);
if (len > 0) {
for (i=0; i<len-1; i++) {
write_circular(elts[i], port, ctx);
SCM_PUTC(' ', port);
}
write_circular(elts[i], port, ctx);
}
SCM_PUTC(')', port);
}
foo% gosh
gosh> (modulo (* 989616731927823 989616731927823) 1074786564930257)
1074786564930252
gosh> (exit)
foo% irb
irb(main):001:0> 989616731927823 * 989616731927823 % 1074786564930257
1074786564930256
irb(main):002:0> ^D
Reference manual の記述とは違う動作のようです。
gosh> (gauche-version)
"0.5.3"
gosh> (call-with-values (values 1 2) cons)
*** ERROR: bad procedure: 1
Stack Trace:
_______________________________________
0 (producer)
At line 111 of usr/local/share/gauche/0.5.3/lib/gauche-init.scm"
gosh>
(1 . 2) が期待した値です。
(call-with-values (lambda () (values 1 2)) cons)
=> (1 . 2)
対話環境では中身が空の begin (規格外でしょうか?)がおかしな値を返します。
blade080 % gosh
gosh> (gauche-version)
"0.5.3"
gosh> (begin)
"gosh> "
gosh> (display (begin))
gosh> #<undef>
gosh> (exit)
blade080 % echo '(display (begin))' | gosh
#<undef>
Gauche 0.5.7 を入れてから,Gauche-gl 0.1.2 を入れ直したのですが,
gosh> (use gl) ERROR: failed to link "/usr/local/lib/gauche/0.5.7/i686-pc-linux-gnu/gauche-gl.so" dynamically: /usr/local/lib/gauche/0.5.7/i686-pc-linux-gnu/gauche-gl.so: undefined symbol: GC_register_dlopen_data Stack Trace:
と言われてしまいました.GCを新しくしたことに関するところですかね.todo
$ make
cd src; make all
make[1]: Entering directory `/home/kanaya/program/src/Gauche-gl/src'
gcc -I/usr/local/lib/gauche/0.5.7/include -fPIC -I/usr/X11R6/include -c -o gl_head.o gl_head.c
(以下略)
autoconf -I `gauche-config --ac`
$ gosh -V Gauche scheme interpreter, version 0.5.7 [euc-jp] #! /usr/bin/env gosh (define (main arg) (write "hello world!") ;(newline) )
このプログラムが何も出力されないのですが、これは仕様ですか? 藤井