--pgp-sign-Multipart_Sat_Dec__4_13:26:26_1999-1
Content-Type: multipart/mixed;
 boundary="Multipart_Sat_Dec__4_13:26:26_1999-1"

--Multipart_Sat_Dec__4_13:26:26_1999-1
Content-Type: text/plain; charset=ISO-2022-JP

中川です。長文で失礼します。

In message "[ruby-list:18737] Re: build on alpha"
    on 99/11/19, tokoma / sco.bekkoame.ne.jp (中川 誠) wrote:

  > # 能力と時間が許せば挑戦してみたいです。

Perl の Configure で得られた Makefile を参考にして再挑戦してみました。
miniruby まではできたようですが、拡張ライブラリの作成途中で止まります。

ログを添付いたしますので、何か分ることがあればご教授ください。[BUG] と出
ますでの ruby 側の問題なのでしょうか。

  >> とりあえず gcc でやってみてはどうですか?

  > まずは gcc から入れなきゃいけませんね。

うーん、gcc も最新のだとうまく make できないです。Perl も jperl のパッチ
を当てると Make の途中でコアダンプするし...。alpha ってやっぱりマイナー
なのね。


--Multipart_Sat_Dec__4_13:26:26_1999-1
Content-Type: text/plain; charset=US-ASCII

nakagawa@z$ make
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c array.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c bignum.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c class.c
cc: Warning: node.h, line 112: Trailing comma found in enumerator list.
};
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c compar.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c dir.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c dln.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c enum.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c error.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c eval.c
cc: Warning: node.h, line 112: Trailing comma found in enumerator list.
};
^
cc: Warning: eval.c, line 5979: Trailing comma found in enumerator list.
};
^
cc: Warning: eval.c, line 3269: Non-void function "rb_f_loop" does not contain a return statement.
static VALUE
^
cc: Warning: eval.c, line 7499: Non-void function "rb_f_throw" does not contain a return statement.
static VALUE
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c file.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c gc.c
cc: Warning: node.h, line 112: Trailing comma found in enumerator list.
};
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c hash.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c inits.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c io.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c marshal.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c math.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c numeric.c
cc: Warning: numeric.c, line 57: Non-void function "coerce_rescue" does not contain a return statement.
static VALUE
^
cc: Warning: numeric.c, line 654: Non-void function "fail_to_integer" does not contain a return statement.
static VALUE
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c object.c
cc: Warning: object.c, line 597: Non-void function "rb_class_s_inherited" does not contain a return statement.
static VALUE
^
cc: Warning: object.c, line 755: Non-void function "fail_to_type" does not contain a return statement.
static VALUE
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c pack.c
cc: Warning: pack.c, line 95: Extraneous semicolon.
define_swapx(f,float);
---------------------^
cc: Warning: pack.c, line 95: In this statement, the referenced type of the pointer value "(char ...)zp" is "char", which is not compatible with "unsigned char".
define_swapx(f,float);
^
cc: Warning: pack.c, line 95: In this statement, the referenced type of the pointer value "(char ...)malloc(...)" is "char", which is not compatible with "unsigned char".
define_swapx(f,float);
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c parse.c
cc: Warning: node.h, line 112: Trailing comma found in enumerator list.
};
^
cc: Warning: parse.y, line 56: Trailing comma found in enumerator list.
} lex_state;
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c process.c
cc: Warning: process.c, line 476: Non-void function "rb_f_exec" does not contain a return statement.
static VALUE
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c prec.c
cc: Warning: prec.c, line 44: Non-void function "prec_induced_from" does not contain a return statement.
static VALUE
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c random.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c range.c
cc: Warning: range.c, line 29: Non-void function "range_failed" does not contain a return statement.
static VALUE
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c re.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c regex.c
cc: Warning: regex.c, line 356: Trailing comma found in enumerator list.
  };
--^
cc: Warning: regex.c, line 401: Non-void function "re_set_syntax" does not contain a return statement.
long
^
cc: Warning: regex.c, line 2279: In this statement, the referenced type of the pointer value "bufp->must+1" is "char", which is not compatible with "unsigned char".
      bm_init_skip(bufp->must_skip, bufp->must+1,
------^
cc: Warning: regex.c, line 2279: In this statement, the referenced type of the pointer value "((bufp->options&((1)|(((((1)<<1)<<1)<<1)<<1)))&&translate)?translate:0" is "const unsigned char", which is not compatible with "const char".
      bm_init_skip(bufp->must_skip, bufp->must+1,
------^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c ruby.c
cc: Warning: node.h, line 112: Trailing comma found in enumerator list.
};
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c signal.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c sprintf.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c st.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c string.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c struct.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c time.c
cc: Warning: time.c, line 930: In this statement, the referenced type of the pointer value "buf" is "unsigned char", which is not compatible with "const char".
    return rb_str_new(buf, 8);
-----------^
cc: Warning: time.c, line 943: In this statement, the referenced type of the pointer value "rb_str2cstr(...)" is "char", which is not compatible with "unsigned char".
    buf = str2cstr(str, &i);
----^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c util.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c variable.c
cc: Warning: node.h, line 112: Trailing comma found in enumerator list.
};
^
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c version.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c ./missing/vsnprintf.c
cc -I. -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c ./missing/isinf.c
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c dmyext.c
ar rcu libruby.a array.o  bignum.o  class.o  compar.o  dir.o  dln.o  enum.o  error.o  eval.o  file.o  gc.o  hash.o  inits.o  io.o  marshal.o  math.o  numeric.o  object.o  pack.o  parse.o  process.o  prec.o  random.o  range.o  re.o  regex.o  ruby.o  signal.o  sprintf.o  st.o  string.o  struct.o  time.o  util.o  variable.o  version.o  vsnprintf.o isinf.o  dmyext.o
cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  -c main.c
 cc -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I/usr/users/nakagawaa/tool/include  main.o dmyext.o libruby.a -lm   -o miniruby
compiling curses
extmk.rb:348: [BUG] Segmentation fault
*** IOT/Abort trap - core dumped

nakagawa@z$ dbx miniruby core
dbx version 3.11.10
Type 'help' for help.
Core file created by program "miniruby"

signal IOT/Abort trap at >*[__kill, 0x3ff800ea6c8] 	beq	r19, 0x3ff800ea6e0
(dbx) t
>  0 __kill(0x3ff800df210, 0x3ffc0085c98, 0x0, 0x100000000, 0x3ff80177488) [0x3ff800ea6c8]
   1 (unknown)() [0x3ff8019e770]
   2 __tis_raise(0x3ff80177488, 0x40043140, 0x3ff801147cc, 0x6, 0x3ff80160aec) [0x3ff801147c8]
   3 raise(0x3ff801147cc, 0x6, 0x3ff80160aec, 0x1200301b8, 0x3ff801774b4) [0x3ff80160ae8]
   4 abort(0x12002fa58, 0x2000, 0x0, 0x0, 0xffffffff00000000) [0x3ff801774b0]
   5 rb_bug(fmt = 0x1400056a8 = "Segmentation fault") ["error.c":155, 0x12002fa54]
   6 rb_trap_exit() ["signal.c":386, 0x1200689c0]
   7 rb_special_const_p(obj = 1074016576) ["util.c":54, 0x120056194]
   8 check_backtrace(bt = 1074016576) ["error.c":360, 0x1200300dc]
   9 exc_set_backtrace(exc = 5368983952, bt = 1074016576) ["error.c":377, 0x1200301dc]
  10 call_cfunc(func = 0x1200301b8, recv = 5368983952, len = 1, argc = 1, argv = 0x11fffea70) ["eval.c":3716, 0x120024378]
  11 rb_call0(klass = 5369247272, recv = 5368983952, id = 4321, argc = 1, argv = 0x11fffea70, body = 0x140083358, nosuper = 1) ["eval.c":3852, 0x120024e0c]
  12 rb_call(klass = 5369247272, recv = 5368983952, mid = 4321, argc = 1, argv = 0x11fffea70, scope = 1) ["eval.c":4048, 0x1200256ec]
  13 rb_funcall(recv = 5368983952, mid = 4321, n = 1) ["eval.c":4122, 0x120025a0c]
  14 set_backtrace(info = 5368983952, bt = 5368983872) ["eval.c":807, 0x12001a9f0]
  15 rb_longjmp(tag = 6, mesg = 5368983952) ["eval.c":3056, 0x120022114]
  16 rb_exc_raise(mesg = 5368983952) ["eval.c":3082, 0x1200222c0]
  17 rb_exit(status = 0) ["eval.c":2990, 0x120021e84]
  18 rb_f_exit(argc = 0, argv = (nil), obj = 5369263512) ["eval.c":3008, 0x120021f90]
  19 call_cfunc(func = 0x120021ed4, recv = 5369263512, len = -1, argc = 0, argv = (nil)) ["eval.c":3710, 0x120024344]
  20 rb_call0(klass = 5369270552, recv = 5369263512, id = 3617, argc = 0, argv = (nil), body = 0x1400862d8, nosuper = 1) ["eval.c":3852, 0x120024e0c]
  21 rb_call(klass = 5369270552, recv = 5369263512, mid = 3617, argc = 0, argv = (nil), scope = 2) ["eval.c":4048, 0x1200256ec]
  22 rb_eval(self = 5369263512, node = struct {
    flags = 0
    nd_file = (nil)
    u1 = union {
        node = (nil)
        id = 0
        value = 0
        cfunc = (nil)
        tbl = (nil)
    }
    u2 = union {
        node = (nil)
        id = 0
        argc = 0
        value = 0
    }
    u3 = union {
        node = 0x14004e298
        id = 1074061976
        state = 1074061976
        entry = 0x14004e298
        cnt = 1074061976
        value = 5369029272
    }
}) ["eval.c":2222, 0x12001e618]
  23 rb_eval(self = 5369263512, node = struct {
    flags = 0
    nd_file = (nil)
    u1 = union {
        node = (nil)
        id = 0
        value = 0
        cfunc = (nil)
        tbl = (nil)
    }
    u2 = union {
        node = (nil)
        id = 0
        argc = 0
        value = 0
    }
    u3 = union {
        node = 0x14004e180
        id = 1074061696
        state = 1074061696
        entry = 0x14004e180
        cnt = 1074061696
        value = 5369028992
    }
}) ["eval.c":1753, 0x12001d4b4]
  24 eval_node(self = 5369263512) ["eval.c":996, 0x12001b504]
  25 ruby_run() ["eval.c":1037, 0x12001b660]
  26 main(argc = 4, argv = 0x11ffffc08, envp = 0x11ffffc30) ["main.c":29, 0x120019630]
(dbx) quit

Makefile
CFLAGS = -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C -g -I${prefix}/include
LDSHARED = cc -shared -expect_unresolved "*" -O4 -msym -s

extmk.rb
LDSHARED = cc -shared -expect_unresolved "*" -O4 -msym -s #{defflag}


--Multipart_Sat_Dec__4_13:26:26_1999-1
Content-Type: text/plain; charset=ISO-2022-JP

-- 
中川 誠

--Multipart_Sat_Dec__4_13:26:26_1999-1--

--pgp-sign-Multipart_Sat_Dec__4_13:26:26_1999-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: 0gQFYNn9S5/xMGTFXhyjG/3y4HL1Y3Bt
Comment: Processed by Mailcrypt 3.5.5 under SEMI 1.13.7 - "Awazu"

iQA/AwUBOEiYBH7IX1c6rR3xEQJUCgCeKPRI6yMYxzdUm8VBiq0ZqOpAEo4AoPIy
o2WZzQSUi/nS60VusS0FLlZa
=Ud0z
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Sat_Dec__4_13:26:26_1999-1--