はじめまして。Gimiteといいます。

FreeBSD 6.0でも同じくmake rdocでIllegal instructionになりました。落ちている箇所は違うみたいですが…。使ったRubyは
ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.0-0.tar.bz2
です。

-O0だとエラーになりませんでした。

$ gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.4 [FreeBSD] 20050518
$ ./configure --program-suffix=19
$ make
$ make rdoc
./miniruby  ./runruby.rb --extout=.ext  -- "./bin/rdoc" --all --ri
--op ".ext/rdoc"

(snip)

                          format.rb: cmIllegal instruction (core dumped)
*** Error code 132

Stop in /usr/home/gimite/archive/default/ruby-1.9.0-0.
$ ./miniruby  ./runruby.rb --extout=.ext  -- "./bin/rdoc" --all --ri
--op ".ext/rdoc" lib/date/format.rb
$ gdb ruby19 ruby19.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `ruby19'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /usr/lib/libthr.so.2...done.
Loaded symbols for /usr/lib/libthr.so.2
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from
/usr/home/gimite/archive/default/ruby-1.9.0-0/.ext/i386-freebsd6.0/etc.so...done.
Loaded symbols for
/usr/home/gimite/archive/default/ruby-1.9.0-0/.ext/i386-freebsd6.0/etc.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  match_at (reg=0x8329800, str=0x924f83c " ", end=0x924f83d "",
    sstart=0x924f83c " ", sprev=0x0, msa=0xbfa00770) at regexec.c:1288
1288      STACK_PUSH_ENSURED(STK_ALT, FinishCode);  /* bottom stack */
[New Thread 0x8154300 (LWP 100118)]
[New Thread 0x8154000 (LWP 100234)]
(gdb) bt
#0  match_at (reg=0x8329800, str=0x924f83c " ", end=0x924f83d "",
    sstart=0x924f83c " ", sprev=0x0, msa=0xbfa00770) at regexec.c:1288
#1  0x080a6e3b in onig_search (reg=0x8329800, str=0x924f83c " ",
    end=0x924f83d "", start=0xbfa00770 "", range=0x924f83d "",
    region=0x814ed58, option=0) at regexec.c:3605
#2  0x08098052 in rb_reg_search (re=137254840, str=153417780, pos=0, reverse=0)
    at re.c:1054
#3  0x08098b17 in reg_match_pos (re=137254840, strp=0xbfa008b4, pos=0)
    at re.c:2175
#4  0x08098b6f in rb_reg_match (re=0, str=153417780) at re.c:2222
#5  0x080d7f79 in vm_eval (th=0x8156000, initial=0) at insns.def:2029
#6  0x080d8e2a in vm_eval_body (th=0x8156000) at vm.c:1148
#7  0x080d94ba in invoke_block (th=0x8156000, block=0x8287ac0, self=138988120,
    argc=2, argv=0x21, blockptr=0x0) at vm.c:573
#8  0x080d967f in vm_invoke_proc (th=0x8156000, proc=0x8287ac0,
    self=138988120, argc=2, argv=0x817e25c, blockptr=0x0) at vm.c:607
#9  0x0805e2ac in proc_call (argc=2, argv=0x817e25c, procval=0) at proc.c:441
#10 0x080d9c96 in vm_call_method (th=0x8156000, cfp=0x81fda18, num=2,
    blockptr=0x1, flag=97, id=7584, mn=0x805e268, recv=138981020, klass=7584)
    at vm_insnhelper.c:280
#11 0x080d497d in vm_eval (th=0x8156000, initial=0) at insns.def:1050
#12 0x080d8e2a in vm_eval_body (th=0x8156000) at vm.c:1148
#13 0x080d94ba in invoke_block (th=0x8156000, block=0x81fdd74, self=138988180,
    argc=1, argv=0x21, blockptr=0x0) at vm.c:573
#14 0x080d9ee3 in vm_yield (th=0xbf9ff99c, argc=1, argv=0xbfbfd56c) at vm.c:590
#15 0x08058d1e in rb_f_catch (argc=0, argv=0x817e0b0) at eval.c:909
#16 0x080d9c96 in vm_call_method (th=0x8156000, cfp=0x81fdd60, num=1,
    blockptr=0x81fdd75, flag=2145, id=3040, mn=0x8058c58, recv=138988180,
    klass=3040) at vm_insnhelper.c:280
#17 0x080d497d in vm_eval (th=0x8156000, initial=0) at insns.def:1050
#18 0x080d8e2a in vm_eval_body (th=0x8156000) at vm.c:1148
#19 0x080d94ba in invoke_block (th=0x8156000, block=0x81fde1c, self=138988180,
    argc=1, argv=0x21, blockptr=0x0) at vm.c:573
#20 0x080d9ee3 in vm_yield (th=0xbf9ff99c, argc=1, argv=0xbfbfda1c) at vm.c:590
#21 0x08058d1e in rb_f_catch (argc=0, argv=0x817e09c) at eval.c:909
#22 0x080d9c96 in vm_call_method (th=0x8156000, cfp=0x81fde08, num=1,
    blockptr=0x81fde1d, flag=2145, id=3040, mn=0x8058c58, recv=138988180,
    klass=3040) at vm_insnhelper.c:280
#23 0x080d497d in vm_eval (th=0x8156000, initial=0) at insns.def:1050
#24 0x080d8e2a in vm_eval_body (th=0x8156000) at vm.c:1148
#25 0x080d94ba in invoke_block (th=0x8156000, block=0x81fdefc, self=139487640,
    argc=1, argv=0x21, blockptr=0x0) at vm.c:573
#26 0x080d9ee3 in vm_yield (th=0xbf9ff99c, argc=1, argv=0xbfbfdf90) at vm.c:590
#27 0x08058d77 in rb_yield (val=139345520) at eval.c:909
#28 0x080e30db in each_i (ary=139476760) at array.c:1135
#29 0x0805922d in rb_ensure (b_proc=0x80e30b8 <each_i>, data1=139476760,
    e_proc=0x80e3090 <each_unlock>, data2=139476760) at eval.c:1204
---Type <return> to continue, or q <return> to quit---
#30 0x080e312d in rb_ary_each (ary=139476760) at array.c:1159
#31 0x080d9c6f in vm_call_method (th=0x8156000, cfp=0x81fdee8, num=0,
    blockptr=0x81fdefd, flag=97, id=392, mn=0x80e30ec, recv=139476760,
    klass=392) at vm_insnhelper.c:280
#32 0x080d497d in vm_eval (th=0x8156000, initial=0) at insns.def:1050
#33 0x080d8e2a in vm_eval_body (th=0x8156000) at vm.c:1148
#34 0x080da6aa in rb_iseq_eval (iseqval=136329140) at vm.c:1357
#35 0x0805890f in ruby_exec_node (n=0x8203840, file=0x8257e01 "./bin/rdoc")
    at eval.c:229
#36 0x0805b49c in ruby_run_node (n=0x8203840) at eval.c:259
#37 0x08057ef6 in main (argc=8, argv=0xbfbfe66c, envp=0xbfbfe690) at main.c:39


07/12/25 に SASADA Koichi<ko1 / atdot.net> さんは書きました:
>  ささだです。
>
> Yukihiro Matsumoto wrote:
> > 今、OpenBSDってGCCじゃないんでしたっけ?
>
> gcc です。
>
> $ gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd4.1/3.3.5/specs
> Configured with:
> Thread model: single
> gcc version 3.3.5 (propolice)
>
> --
> // SASADA Koichi at atdot dot net
>
>