2008-04-19(Sat) [長年日記]
_ [Ruby]ruby_1_8_7 branch revision 16076 build on HP-UX 11.23 ia64/11.11 pa20
メンテナーの方々いつもありがとうございます。今回はちっとは役にたってみたくて作業してみました。hp testdriveでやってみてます。せっかくなので、4パタンやってみました。
- HP-UX 11.23 ia64 cc / td176.testdrive.hp.com
- CFLAGS='-O -D_XOPEN_SOURCE_EXTENDED' ../ruby18/configure --without-gcc
- HP-UX 11.23 ia64 gcc / td176.testdrive.hp.com
- CFLAGS='-O -D_XOPEN_SOURCE_EXTENDED' ../ruby18/configure
- HP-UX 11.11 hppa2.0w cc / td192.testdrive.hp.com
- CFLAGS='-O -D_XOPEN_SOURCE_EXTENDED' ../ruby18/configure --without-gcc
- HP-UX 11.11 hppa2.0w gcc / td192.testdrive.hp.com
- CFLAGS='-O -D_XOPEN_SOURCE_EXTENDED' ../ruby18/configure
svn の revisionは16076, autoconfはCentOS5.1の
autoconf.noarch 2.59-12
svn upして、autoconf したものをパックしてftp転送後、ビルドしています。 サーバの反応がトロいので、telnet.rbでログイン&実行するスクリプトを書いて実行。
HP-UX 11.23 ia64 cc / td176.testdrive.hp.com
gmake test, test-allとも失敗。うわー。
$ gmake test test failed gmake: *** [test] Error 1 $ gmake test-all ./miniruby -I../ruby18/lib ../ruby18/runruby.rb --extout=.ext -- "../ruby18/test/runner.rb" --basedir="../ruby18/test" --runner=console Loaded suite . Started .................................................................................................................................................................................................................................................................................................................................................................Warning: OpenSSL::PKCS7::PKCS7 is deprecated after Ruby 1.9; use OpenSSL::PKCS7 instead .Warning: OpenSSL::PKCS7::PKCS7 is deprecated after Ruby 1.9; use OpenSSL::PKCS7 instead .Warning: OpenSSL::PKCS7::PKCS7 is deprecated after Ruby 1.9; use OpenSSL::PKCS7 instead Warning: OpenSSL::PKCS7::PKCS7 is deprecated after Ruby 1.9; use OpenSSL::PKCS7 instead Warning: OpenSSL::PKCS7::PKCS7 is deprecated after Ruby 1.9; use OpenSSL::PKCS7 instead ................/bin/sh: 6059 Floating exception(coredump) gmake: *** [test-all] Error 136
うむむ。これどこらへんみたらいいんでしょうか...?
HP-UX 11.23 ia64 gcc / td176.testdrive.hp.com
gmake testはおk、test-allはエラーが。
gcc -O -D_XOPEN_SOURCE_EXTENDED -DRUBY_EXPORT -L. -Wl,-E main.o -lruby-static -ldld -ldl -lm -o ruby gmake[1]: Leaving directory `/house/kogkog/src/ruby18-build-ia64-gcc' $ gmake test test succeeded $ gmake test-all ./miniruby -I../ruby18/lib ../ruby18/runruby.rb --extout=.ext -- "../ruby18/test/runner.rb" --basedir="../ruby18/test" --runner=console Loaded suite . Started .........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E..............................................................................................................................................................E.............E...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.............................................................................................................sh: /usr/local/bin/ruby: not found. E, [2008-04-18T11:32:42.278699 #14635] ERROR -- : CGIHandler: /house/kogkog/src/ruby18/test/soap/calc/server.cgi exit with 127 E, [2008-04-18T11:32:42.279242 #14635] ERROR -- : Premature end of script headers: /house/kogkog/src/ruby18/test/soap/calc/server.cgi E......sh: /usr/local/bin/ruby: not found. E, [2008-04-18T11:32:44.678709 #14635] ERROR -- : CGIHandler: /house/kogkog/src/ruby18/test/soap/header/server.cgi exit with 127 E, [2008-04-18T11:32:44.679225 #14635] ERROR -- : Premature end of script headers: /house/kogkog/src/ruby18/test/soap/header/server.cgi Fsh: /usr/local/bin/ruby: not found. E, [2008-04-18T11:32:44.918699 #14635] ERROR -- : CGIHandler: /house/kogkog/src/ruby18/test/soap/header/server.cgi exit with 127 E, [2008-04-18T11:32:44.919219 #14635] ERROR -- : Premature end of script headers: /house/kogkog/src/ruby18/test/soap/header/server.cgi EEEEEEE...........................................................EEEEEEEEEEEEEE.............E........................................................................................................................................................................sh: /usr/local/bin/ruby: not found. F.............................................EEEEEEEEEEEEEEEEEE..EE.EEEEEE.EE............................................................................................................................... Finished in 249.973862 seconds.
zlibがないとか、bind(2)がalready useとか、が多いんで環境がらみと判断。気になるやつを。
4) Failure: test_to_proc(TestSymbol) [../ruby18/test/ruby/test_symbol.rb:80]: Exception raised: Class: <ArgumentError> Message: <"no receiver given"> ---Backtrace--- ../ruby18/test/ruby/test_symbol.rb:58:in `to_proc' ../ruby18/test/ruby/test_symbol.rb:80:in `call' ../ruby18/test/ruby/test_symbol.rb:80:in `test_to_proc' ../ruby18/test/ruby/test_symbol.rb:80:in `test_to_proc' --------------- .....省略..... 11) Error: test_string(SOAP::Header::TestSimpleHandler): NoMethodError: undefined method `shutdown' for nil:NilClass ../ruby18/test/soap/header/test_simplehandler.rb:97:in `teardown_server' ../ruby18/test/soap/header/test_simplehandler.rb:92:in `teardown' .....省略.....
HP-UX 11.11 hppa2.0w cc / td192.testdrive.hp.com
cc -O -D_XOPEN_SOURCE_EXTENDED -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I../ruby18 -c ../ruby18/main.c cc -O -D_XOPEN_SOURCE_EXTENDED -DRUBY_EXPORT -DYYMAXDEPTH=300 -I. -I../ruby18 -c ../ruby18/dmydln.c rm: miniruby not removed. Text file busy gmake: *** [miniruby] Error 2 $ gmake test rm: miniruby not removed. Text file busy gmake: *** [miniruby] Error 2 $ gmake test-all ./miniruby -I../ruby18/lib ../ruby18/runruby.rb --extout=.ext -- "../ruby18/test/runner.rb" --basedir="../ruby18/test" --runner=console ../ruby18/runruby.rb:32:in `require': no such file to load -- rbconfig (LoadError) from ../ruby18/runruby.rb:32 gmake: *** [test-all] Error 1 $ exit
HP-UX 11.11 hppa2.0w gcc / td192.testdrive.hp.com
gcc -O -D_XOPEN_SOURCE_EXTENDED -DRUBY_EXPORT -DYYMAXDEPTH=300 -L. -Wl,-E main.o dmydln.o libruby-static.a -ldld -lcrypt -lm -o miniruby ../ruby18/lib/fileutils.rb:85: NULL pointer given (ArgumentError) from ../ruby18/mkconfig.rb:11:in `require' from ../ruby18/mkconfig.rb:11 gmake: *** [.rbconfig.time] Error 1 $ gmake test ../ruby18/lib/fileutils.rb:85: NULL pointer given (ArgumentError) from ../ruby18/mkconfig.rb:11:in `require' from ../ruby18/mkconfig.rb:11 gmake: *** [.rbconfig.time] Error 1 $ gmake test-all ./miniruby -I../ruby18/lib ../ruby18/runruby.rb --extout=.ext -- "../ruby18/test/runner.rb" --basedir="../ruby18/test" --runner=console ../ruby18/runruby.rb:32:in `require': no such file to load -- rbconfig (LoadError) from ../ruby18/runruby.rb:32 gmake: *** [test-all] Error 1
うーむ。やっぱり4パタンにするとここで書くのつらいなあ...見る人からすっと抜粋じゃなくて全部見せろっていいたくなるだろうし。どうしたらよいんだろ?hot-linksにあるような自動ビルドはちょっと環境整えるのがつらいので、できれば生成物のファイルか、コマンド出力のファイルをとってきて、このホストに直におくとかかなあ。
あと、$HOMEは WindowsからHP-UXからFreeBSDからLinuxから全部共有されているので、ビルドディレクトリをわけて実行したらパターン増やせそう!ってことでやろうとしたらtestdriveが落ちてるみたい(4/19 11:30ごろ)...orz
_ [Ruby]ruby_1_8_7.preview1 build on HP-UX 11.23 ia64/11.11 pa20(別解)
某サーバでのtest-all抜粋をはっておきます。こっちはgmake testは両方おk、test-allのみエラーが。
11.23/ia64
.................................................. Finished in 465.178187 seconds. 1) Failure: test_crlnumber(OpenSSL::TestX509CRL) [../ruby-1.8.7-preview1/test/openssl/test_x509crl.rb:184]: <"0"> expected to be =~ </4294967296/>. 2) Failure: test_event(TestSetTraceFunc) [../ruby-1.8.7-preview1/test/ruby/test_settracefunc.rb:56]: <["line", 23, :test_event, TestSetTraceFunc]> expected but was <["c-call", 23, :==, Fixnum]>. 3) Failure: test_to_proc(TestSymbol) [../ruby-1.8.7-preview1/test/ruby/test_symbol.rb:80]: Exception raised: Class: <ArgumentError> Message: <"no receiver given"> ---Backtrace--- ../ruby-1.8.7-preview1/test/ruby/test_symbol.rb:58:in `to_proc' ../ruby-1.8.7-preview1/test/ruby/test_symbol.rb:80:in `call' ../ruby-1.8.7-preview1/test/ruby/test_symbol.rb:80:in `test_to_proc' ../ruby-1.8.7-preview1/test/ruby/test_symbol.rb:80:in `test_to_proc' --------------- 4) Error: test_fd_passing(TestUNIXSocket): Errno::EBADF: Bad file number - sendmsg(2) ../ruby-1.8.7-preview1/test/socket/test_unix.rb:18:in `send_io' ../ruby-1.8.7-preview1/test/socket/test_unix.rb:18:in `test_fd_passing' 1889 tests, 1344160 assertions, 3 failures, 1 errors gmake: *** [test-all] Error 1
11.11/pa20
................................................................................ Finished in 1638.858235 seconds. 1) Error: test_s_read(TestCSV): Errno::EINVAL: Invalid argument - /tmp/ruby_test_csv_tmp_8937/out.csv /usr/home/kog/src/ruby-1.8.7-preview1/lib/csv.rb:98:in `read' /usr/home/kog/src/ruby-1.8.7-preview1/lib/csv.rb:98:in `read' ../ruby-1.8.7-preview1/test/csv/test_csv.rb:1751:in `test_s_read' 2) Error: test_realpath(TestPathname): ArgumentError: parent directory is world writable, FileUtils#remove_entry_secure does not work; abort: "/tmp/rubytest-pathname20080417-8937-5muj1p" (parent directory mode 40777) /usr/home/kog/src/ruby-1.8.7-preview1/lib/fileutils.rb:694:in `remove_entry_secure' /usr/home/kog/src/ruby-1.8.7-preview1/lib/tmpdir.rb:124:in `mktmpdir' ../ruby-1.8.7-preview1/test/pathname/test_pathname.rb:283:in `test_realpath' 3) Failure: 4) Error: test_eof_0_seek(TestFile): Errno::EINVAL: Invalid argument - /tmp/test-eof20080417-8937-12qv5q7-0 /usr/home/kog/src/ruby-1.8.7-preview1/test/ruby/ut_eof.rb:102:in `open_file_seek' ../ruby-1.8.7-preview1/test/ruby/test_file.rb:39:in `open_file' /usr/home/kog/src/ruby-1.8.7-preview1/test/ruby/ut_eof.rb:101:in `open_file_seek' /usr/home/kog/src/ruby-1.8.7-preview1/test/ruby/ut_eof.rb:108:in `test_eof_0_seek' 5) Error: test_eof_1_seek(TestFile): Errno::EINVAL: Invalid argument - /tmp/test-eof20080417-8937-1wlt5gg-0 /usr/home/kog/src/ruby-1.8.7-preview1/test/ruby/ut_eof.rb:102:in `open_file_seek' ../ruby-1.8.7-preview1/test/ruby/test_file.rb:39:in `open_file' /usr/home/kog/src/ruby-1.8.7-preview1/test/ruby/ut_eof.rb:101:in `open_file_seek' /usr/home/kog/src/ruby-1.8.7-preview1/test/ruby/ut_eof.rb:118:in `test_eof_1_seek' 6) Failure: test_truncate_wbuf(TestFile) [../ruby-1.8.7-preview1/test/ruby/test_file.rb:57]: <"\000\000\000def"> expected but was <"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000def">. 7) Failure: test_event(TestSetTraceFunc) [../ruby-1.8.7-preview1/test/ruby/test_settracefunc.rb:56]: <["line", 23, :test_event, TestSetTraceFunc]> expected but was <["c-call", 23, :==, Fixnum]>. 8) Failure: test_to_proc(TestSymbol) [../ruby-1.8.7-preview1/test/ruby/test_symbol.rb:80]: Exception raised: Class: <ArgumentError> Message: <"no receiver given"> ---Backtrace--- ../ruby-1.8.7-preview1/test/ruby/test_symbol.rb:58:in `to_proc' ../ruby-1.8.7-preview1/test/ruby/test_symbol.rb:80:in `call' ../ruby-1.8.7-preview1/test/ruby/test_symbol.rb:80:in `test_to_proc' ../ruby-1.8.7-preview1/test/ruby/test_symbol.rb:80:in `test_to_proc' --------------- 9) Error: test_fd_passing(TestUNIXSocket): Errno::EBADF: Bad file number - sendmsg(2) ../ruby-1.8.7-preview1/test/socket/test_unix.rb:18:in `send_io' ../ruby-1.8.7-preview1/test/socket/test_unix.rb:18:in `test_fd_passing' 10) Error: test_make_partial_content(WEBrick::TestFileHandler): Errno::EINVAL: Invalid argument - ../ruby-1.8.7-preview1/test/webrick/test_filehandler.rb /usr/home/kog/src/ruby-1.8.7-preview1/lib/webrick/httpservlet/filehandler.rb:104:in `pos=' /usr/home/kog/src/ruby-1.8.7-preview1/lib/webrick/httpservlet/filehandler.rb:104:in `make_partial_content' /usr/home/kog/src/ruby-1.8.7-preview1/lib/open-uri.rb:32:in `open_uri_original_open' /usr/home/kog/src/ruby-1.8.7-preview1/lib/open-uri.rb:32:in `open' /usr/home/kog/src/ruby-1.8.7-preview1/lib/webrick/httpservlet/filehandler.rb:78:in `make_partial_content' ../ruby-1.8.7-preview1/test/webrick/test_filehandler.rb:31:in `make_range_response' ../ruby-1.8.7-preview1/test/webrick/test_filehandler.rb:39:in `test_make_partial_content' 1889 tests, 1344116 assertions, 4 failures, 6 errors gmake: *** [test-all] Error 1
なんでここまで結果が違うんだろう...?