Hi, Ludovic,
mem_iconveh () returns ENOSYS, in "striconveh.c" line 1139.
This is out of "#if HAVE_ICONV" but in "#else".
Maybe configure did not find "iconv.h".
I built guile again with configure options
--with-libiconv-prefix=
--with-libunistring-prefix=
--with-libltdl-prefix=
--with-libgmp-prefix=
--with-libintl-prefix=
and set all the include pathes to CPATH environment for gcc.
With these, make passed without any problem.
I downloaded the latest snapshot "guile-2.0.5.100-0f6dd" and tryed making.
The result is:
(1) with -m64
make passed, and "make check " also passed except for 1 FAIL:
FAIL: time.test: strftime: C99 %z format: EST+5
(2) with -m32
Failed with Segmentation Fault as:
make[3]: Entering directory `/tmp/guile-2.0.5.100-0f6dd'
Testing /tmp/guile-2.0.5.100-0f6dd/meta/guile ...
with GUILE_LOAD_PATH=/tmp/guile-2.0.5.100-0f6dd/test-suite
/bin/bash: line 5: 14661 Segmentation Fault (core dumped)
CHARSETALIASDIR="/tmp/guile-2.0.5.100-0f6dd/lib" ${dir}$tst
FAIL: check-guile
This is less inportant because it occurs in "make check" phase, not in "make"
phase.
But if you do not mind helping me, I'll try to find what causes this.
Backtrace is attached as "backtrace.txt".
--- Kiyoshi <[email protected]>
--- On Fri, 2012/4/13, Ludovic Courtès <[email protected]> wrote:
> Hi,
>
> Kiyoshi KANAZAWA <[email protected]> skribis:
>
> > % grep ac_cv_libunistring_with_iconv_support config.log
> > ac_cv_libunistring_with_iconv_support=yes
>
> In that case, could you step through ‘scm_to_stringn’ and its
> ‘mem_iconveh’ call to see where that error value comes from?
>
> To that end, run Guile from the build tree with
> ‘./meta/gdb-uninstalled-guile’ (substitute “gdb” in that script with the
> actual debugger command name, if needed.)
>
> Thanks a lot for your help and perseverance!
>
> Ludo’.
> [1] __cexp(0x0, 0x0, 0xf01b866e, 0x400921f9, 0x6, 0x89b1f20), at 0xfe801928
=>[2] scm_exp(z = (nil)), line 167 in "numbers.c"
[3] vm_debug_engine(vm = 0x80fb690, program = 0x80dcad0, argv = 0x8046f14,
nargs = 1), line 892 in "vm-i-system.c"
[4] scm_c_vm_run(vm = (nil), program = (nil), argv = (nil), nargs = 0), line
586 in "vm.c"
[5] scm_primitive_eval(exp = 0x9a93378), line 685 in "eval.c"
[6] scm_primitive_load(filename = (nil)), line 132 in "load.c"
[7] vm_debug_engine(vm = 0x80fb690, program = 0xfef67930, argv = 0x8047124,
nargs = 1), line 892 in "vm-i-system.c"
[8] scm_c_vm_run(vm = (nil), program = (nil), argv = (nil), nargs = 0), line
586 in "vm.c"
[9] scm_primitive_eval(exp = 0x81e9458), line 685 in "eval.c"
[10] scm_eval(exp = (nil), module_or_state = (nil)), line 719 in "eval.c"
[11] scm_shell(argc = 11, argv = (nil)), line 441 in "script.c"
[12] invoke_main_func(body_data = (nil)), line 338 in "init.c"
[13] c_body(d = (nil)), line 511 in "continuations.c"
[14] apply_catch_closure(clo = (nil), args = 0x304), line 146 in "throw.c"
[15] apply_1(smob = (nil), a = (nil)), line 141 in "smob.c"
[16] vm_regular_engine(vm = 0x80fb690, program = 0x80f50a0, argv = 0x80473c0,
nargs = 2), line 895 in "vm-i-system.c"
[17] scm_c_vm_run(vm = (nil), program = (nil), argv = (nil), nargs = 0), line
586 in "vm.c"
[18] scm_call_4(proc = (nil), arg1 = (nil), arg2 = (nil), arg3 = (nil), arg4
= (nil)), line 507 in "eval.c"
[19] scm_catch_with_pre_unwind_handler(key = 0x404, thunk = 0x81d6ea0,
handler = 0x81d6e90, pre_unwind_handler = (nil)), line 86 in "throw.c"
r_data = 0x80fb650), line 213 in "throw.c"
[21] scm_i_with_continuation_barrier(body = (nil), body_data = (nil), handler
= (nil), handler_data = (nil), pre_unwind_handler = (nil),
pre_unwind_handler_data = (nil)), line 449 in "continuations.c"
[22] scm_c_with_continuation_barrier(func = (nil), data = (nil)), line 545 in
"continuations.c"
[23] with_guile_and_parent(base = 0x80474f0, data = (nil)), line 905 in
"threads.c"
[24] GC_call_with_stack_base(fn = 0xfeef2310 =
&`libguile-2.0.so.22.4.0`threads.c`with_guile_and_parent(struct GC_stack_base
*base, register void *data), arg = (nil)), line 1530 in "misc.c"
[25] scm_i_with_guile_and_parent(func = (nil), data = (nil), parent = (nil)),
line 948 in "threads.c"
[26] scm_boot_guile(argc = 0, argv = (nil), main_func = (nil), closure =
(nil)), line 321 in "init.c"
[27] main(argc = 0, argv = (nil)), line 71 in "guile.c"