From: MIANAKAWA masaru Date: 2001-02-01T18:27:56+09:00 Subject: [ruby-list:27441] Cannot build ruby-1.6.2 (and stable-snapshot) on HP-UX10.20 皆川@茨大と言います。 ruby-1.6.2 を HP-UX 10.20 に install しようとしているんですが、 make が通ってくれません。 #1.6.1 は install できたのに・・・ gcc-2.95.2, GNUmake-3.79 で build しています。 1.6.2 、stable-snapshot 、1.7.0 を試してみましたが、 どれも同じ所で「メモリ違反」となって stop してしまいます。 stable-snapshot を make した時のログ(一部)は以下の通りです。 ----ここから---- earth@aoi2~/ruby-stable% ./configure --with-default-kcode=sjis \ --enable-shared --with-search-path=/usr/local \ --with-opt-dir=/usr/local ... (中略) ... earth@aoi2~/ruby-stable% gmake gcc -g -O2 -fPIC -I. -I. -I/usr/local/include -c array.c gcc -g -O2 -fPIC -I. -I. -I/usr/local/include -c bignum.c ... (中略) ... gcc -g -O2 -fPIC -I. -I. -I/usr/local/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 flock.o vsnprintf.o dmyext.o gcc -g -O2 -fPIC -I. -I. -I/usr/local/include -c main.c gcc -g -O2 -fPIC -Wl, -E main.o dmyext.o libruby.a -ldld -lcrypt -lm -o miniruby gmake: *** [rbconfig.rb] メモリ違反 (コアダンプしました) ----ここまで---- ダメもとで Makefile 中に書いてあることを コマンドラインから実行しようとしました。が、やっぱり earth@aoi2~/ruby-stable% ./miniruby mkconfig.rb rbconfig.rb Segmentation fault (core dumped) と怒られてしまいました。 configure の --enable-shared を外しても同様の結果です。 (ML の過去ログを見様見真似で(汗))トレースした結果は以下の通りです。 ----ここから---- earth@aoi2~/ruby-stable% gdb miniruby core GNU gdb 5.0 Copyright 2000 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 "hppa1.1-hp-hpux10.20"... Core was generated by `miniruby'. Program terminated with signal 11, Segmentation fault. warning: The shared libraries were not privately mapped; setting a breakpoint in a shared library will not work until you rerun the program. Reading symbols from ./miniruby...done. Reading symbols from /usr/lib/libc.1...done. Reading symbols from /usr/lib/libdld.sl...done. #0 0x4b91c in Init_stack (addr=0x0) at gc.c:1015 1015 rb_gc_stack_start = __builtin_frame_address(2); (gdb) where #0 0x4b91c in Init_stack (addr=0x0) at gc.c:1015 #1 0x19f3c in ruby_init () at eval.c:1000 #2 0x180dc in main (argc=3, argv=0x7b03a7c4, envp=0x40028cd0) at main.c:48 #3 0xc0061d0c in ?? () from /usr/lib/libc.1 (gdb) up #1 0x19f3c in ruby_init () at eval.c:1000 1000 Init_stack(0); (gdb) up #2 0x180dc in main (argc=3, argv=0x7b03a7c4, envp=0x40028cd0) at main.c:48 48 ruby_init(); (gdb) up #3 0xc0061d0c in ?? () from /usr/lib/libc.1 (gdb) up Initial frame selected; you cannot go up. (gdb) quit ----ここまで---- どうすれば無事 install できるのでしょうか・・・ #足りない情報などがあればご指摘下さい。 ---------------------------------------------------------------- name = "皆川賢";yomi = "ミナカワマサル";pgpkey = "See header."