[ruby-dev:39222] [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

View: New views
13 Messages — Rating Filter:   Alert me  

[ruby-dev:39222] [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Aaron Patterson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bug #2036: AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232
http://redmine.ruby-lang.org/issues/show/2036

起票者: 和弥 寺元
ステータス: Open, 優先度: Normal
カテゴリ: build
ruby -v: 1.8.7-p174

寺元と申します。
AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになりました。
対処方法を教えて頂けないでしょうか。
よろしくお願いします。

$ make test
not ok float 7 -- ./sample/test.rb:1232
test failed
make: 1254-004 最後のコマンドからのエラー・コードは 1 です。


autoconf
./configure
をおこなったときに、次のWARNINGメッセージが表示されました。

checking pthread.h presence... yes
configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h:     check for missing prerequisite headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h:     section "Present But Cannot Be Compiled"
configure: WARNING: pthread.h: proceeding with the preprocessor's result
configure: WARNING: pthread.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for pthread.h... yes

make時のメッセージは以下になります。よろしくお願いします。

$ make
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c array.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c bignum.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c class.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c compar.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c dir.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c dln.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c enum.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c enumerator.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c error.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c eval.c
eval.c: In function `rb_eval_string_wrap':
eval.c:1742: warning: assignment discards qualifiers from pointer target type
eval.c: In function `rb_eval_cmd':
eval.c:1883: warning: assignment discards qualifiers from pointer target type
eval.c: In function `call_trace_func':
eval.c:2734: warning: assignment discards qualifiers from pointer target type
eval.c: In function `rb_raise_jump':
eval.c:4765: warning: assignment discards qualifiers from pointer target type
eval.c: In function `method_missing':
eval.c:5720: warning: assignment discards qualifiers from pointer target type
eval.c: In function `rb_call0':
eval.c:5883: warning: assignment discards qualifiers from pointer target type
eval.c: In function `rb_f_eval':
eval.c:6676: warning: assignment discards qualifiers from pointer target type
eval.c: In function `exec_under':
eval.c:6700: warning: assignment discards qualifiers from pointer target type
eval.c: In function `rb_load':
eval.c:7016: warning: assignment discards qualifiers from pointer target type
eval.c: In function `call_end_proc':
eval.c:8046: warning: assignment discards qualifiers from pointer target type
eval.c: In function `rb_f_END':
eval.c:8059: warning: assignment discards qualifiers from pointer target type
eval.c: In function `mproc':
eval.c:9835: warning: assignment discards qualifiers from pointer target type
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c file.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c gc.c
In file included from gc.c:1089:
gc.c: In function `rb_gc_force_recycle':
gc.c:1085: warning: passing arg of `add_freelist' makes pointer from integer without a cast
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c hash.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c inits.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c io.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c marshal.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c math.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c numeric.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c object.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c pack.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c parse.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c process.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c prec.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c random.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c range.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c re.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c regex.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c ruby.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c signal.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c sprintf.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c st.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c string.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c struct.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c time.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c util.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c variable.c
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c version.c
        ar rcu libruby-static.a array.o  bignum.o  class.o  compar.o  dir.o  dln.o  enum.o  enumerator.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  dmyext.o
        gcc -g -O2    -DRUBY_EXPORT  -I. -I.    -c main.c
         gcc -g -O2    -DRUBY_EXPORT  -L.  -Wl,-bE:ruby.imp -Wl,-brtl   main.o  libruby-static.a -lrt -ldl -lcrypt -lm   -o miniruby
rbconfig.rb updated
compiling Win32API
compiling bigdecimal
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/bigdecimal.so bigdecimal.o -L. -L../.. -L.  -eInit_bigdecimal   -lrt -ldl -lcrypt -lm   -lc
        cp ../.././ext/bigdecimal/lib/bigdecimal/newton.rb ../../.ext/common/bigdecimal
        cp ../.././ext/bigdecimal/lib/bigdecimal/math.rb ../../.ext/common/bigdecimal
        cp ../.././ext/bigdecimal/lib/bigdecimal/jacobian.rb ../../.ext/common/bigdecimal
        cp ../.././ext/bigdecimal/lib/bigdecimal/ludcmp.rb ../../.ext/common/bigdecimal
ターゲット "all" は最新のものです。
compiling curses
        gcc -I. -I../.. -I../../. -I../.././ext/curses -DHAVE_CURSES_H -DHAVE_BEEP -DHAVE_BKGD -DHAVE_BKGDSET -DHAVE_CURS_SET -DHAVE_DELETELN -DHAVE_DOUPDATE -DHAVE_FLASH -DHAVE_GETBKGD -DHAVE_GETNSTR -DHAVE_ISENDWIN -DHAVE_KEYNAME -DHAVE_KEYPAD -DHAVE_SCRL -DHAVE_SETSCRREG -DHAVE_UNGETCH -DHAVE_WATTROFF -DHAVE_WATTRON -DHAVE_WATTRSET -DHAVE_WBKGD -DHAVE_WBKGDSET -DHAVE_WDELETELN -DHAVE_WGETNSTR -DHAVE_WSCRL -DHAVE_WSETSCRREG -DHAVE_DEF_PROG_MODE -DHAVE_RESET_PROG_MODE -DHAVE_TIMEOUT -DHAVE_WTIMEOUT -DHAVE_NODELAY -DHAVE_INIT_COLOR -DHAVE_WCOLOR_SET  -D_LARGE_FILES=1   -g -O2   -c curses.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/curses.so curses.o -L. -L../.. -L.  -eInit_curses   -lcurses  -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling dbm
        gcc -I. -I../.. -I../../. -I../.././ext/dbm -DHAVE_DBM_OPEN -DHAVE_TYPE_DBM -DHAVE_DBM_CLEARERR -DDBM_HDR="<ndbm.h>" -DHAVE_SYS_CDEFS_H  -D_LARGE_FILES=1   -g -O2   -c dbm.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/dbm.so dbm.o -L. -L../.. -L.  -eInit_dbm   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling digest
        gcc -I. -I../.. -I../../. -I../.././ext/digest -D_LARGE_FILES=1   -g -O2   -c digest.c
digest.c: In function `rb_digest_instance_inspect':
digest.c:271: warning: assignment discards qualifiers from pointer target type
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/digest.so digest.o -L. -L../.. -L.  -eInit_digest   -lrt -ldl -lcrypt -lm   -lc
        cp ../.././ext/digest/lib/digest.rb ../../.ext/common
        cp ../.././ext/digest/lib/sha1.rb ../../.ext/common
        cp ../.././ext/digest/lib/md5.rb ../../.ext/common
        cp ../.././ext/digest/digest.h ../../.ext/powerpc-aix5.2.0.0
ターゲット "all" は最新のものです。
compiling digest/bubblebabble
        gcc -I. -I../../.. -I../../../. -I../../.././ext/digest/bubblebabble -I../../.././ext/digest/bubblebabble/.. -DHAVE_CONFIG_H  -D_LARGE_FILES=1   -g -O2   -c bubblebabble.c
        gcc -shared -Wl,-G -o ../../../.ext/powerpc-aix5.2.0.0/digest/bubblebabble.so bubblebabble.o -L. -L../../.. -L.  -eInit_bubblebabble   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling digest/md5
        gcc -I. -I../../.. -I../../../. -I../../.././ext/digest/md5 -I../../.././ext/digest/md5/.. -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H  -D_LARGE_FILES=1   -g -O2   -c md5init.c
        gcc -I. -I../../.. -I../../../. -I../../.././ext/digest/md5 -I../../.././ext/digest/md5/.. -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H  -D_LARGE_FILES=1   -g -O2   -c md5.c
        gcc -shared -Wl,-G -o ../../../.ext/powerpc-aix5.2.0.0/digest/md5.so md5init.o md5.o -L. -L../../.. -L.  -eInit_md5   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling digest/rmd160
        gcc -I. -I../../.. -I../../../. -I../../.././ext/digest/rmd160 -I../../.././ext/digest/rmd160/.. -DNDEBUG -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H  -D_LARGE_FILES=1   -g -O2   -c rmd160init.c
        gcc -I. -I../../.. -I../../../. -I../../.././ext/digest/rmd160 -I../../.././ext/digest/rmd160/.. -DNDEBUG -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H  -D_LARGE_FILES=1   -g -O2   -c rmd160.c
        gcc -shared -Wl,-G -o ../../../.ext/powerpc-aix5.2.0.0/digest/rmd160.so rmd160init.o rmd160.o -L. -L../../.. -L.  -eInit_rmd160   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling digest/sha1
        gcc -I. -I../../.. -I../../../. -I../../.././ext/digest/sha1 -I../../.././ext/digest/sha1/.. -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H  -D_LARGE_FILES=1   -g -O2   -c sha1init.c
        gcc -I. -I../../.. -I../../../. -I../../.././ext/digest/sha1 -I../../.././ext/digest/sha1/.. -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H  -D_LARGE_FILES=1   -g -O2   -c sha1.c
        gcc -shared -Wl,-G -o ../../../.ext/powerpc-aix5.2.0.0/digest/sha1.so sha1init.o sha1.o -L. -L../../.. -L.  -eInit_sha1   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling digest/sha2
        gcc -I. -I../../.. -I../../../. -I../../.././ext/digest/sha2 -I../../.././ext/digest/sha2/.. -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H -DHAVE_TYPE_UINT64_T  -D_LARGE_FILES=1   -g -O2   -c sha2.c
        gcc -I. -I../../.. -I../../../. -I../../.././ext/digest/sha2 -I../../.././ext/digest/sha2/.. -DHAVE_CONFIG_H -DHAVE_SYS_CDEFS_H -DHAVE_INTTYPES_H -DHAVE_UNISTD_H -DHAVE_TYPE_UINT64_T  -D_LARGE_FILES=1   -g -O2   -c sha2init.c
        gcc -shared -Wl,-G -o ../../../.ext/powerpc-aix5.2.0.0/digest/sha2.so sha2.o sha2init.o -L. -L../../.. -L.  -eInit_sha2   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling dl
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/dl.so dl.o ptr.o sym.o handle.o -L. -L../.. -L.  -eInit_dl   -ldl  -lrt -ldl -lcrypt -lm   -lc
        cp ../.././ext/dl/lib/dl/types.rb ../../.ext/common/dl
        cp ../.././ext/dl/lib/dl/struct.rb ../../.ext/common/dl
        cp ../.././ext/dl/lib/dl/win32.rb ../../.ext/common/dl
        cp dlconfig.h ../../.ext/powerpc-aix5.2.0.0
        cp ../.././ext/dl/dl.h ../../.ext/powerpc-aix5.2.0.0
ターゲット "all" は最新のものです。
compiling etc
        gcc -I. -I../.. -I../../. -I../.././ext/etc -DHAVE_GETLOGIN -DHAVE_GETPWENT -DHAVE_GETGRENT -DHAVE_ST_PW_GECOS -DHAVE_ST_PW_PASSWD -DHAVE_ST_GR_PASSWD -DHAVE_TYPE_UID_T -DPW_UID2VAL=UINT2NUM -DPW_VAL2UID=NUM2UINT -DHAVE_TYPE_GID_T -DPW_GID2VAL=UINT2NUM -DPW_VAL2GID=NUM2UINT  -D_LARGE_FILES=1   -g -O2   -c etc.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/etc.so etc.o -L. -L../.. -L.  -eInit_etc   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling fcntl
        gcc -I. -I../.. -I../../. -I../.././ext/fcntl -D_LARGE_FILES=1   -g -O2   -c fcntl.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/fcntl.so fcntl.o -L. -L../.. -L.  -eInit_fcntl   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling gdbm
compiling iconv
        gcc -I. -I../.. -I../../. -I../.././ext/iconv -D_LARGE_FILES=1   -g -O2   -c iconv.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/iconv.so iconv.o -L. -L../.. -L.  -eInit_iconv   -liconv  -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling io/wait
        gcc -I. -I../../.. -I../../../. -I../../.././ext/io/wait -DFIONREAD_HEADER="<sys/ioctl.h>"  -D_LARGE_FILES=1   -g -O2   -c wait.c
        gcc -shared -Wl,-G -o ../../../.ext/powerpc-aix5.2.0.0/io/wait.so wait.o -L. -L../../.. -L.  -eInit_wait   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling nkf
        gcc -I. -I../.. -I../../. -I../.././ext/nkf -D_LARGE_FILES=1   -g -O2   -c nkf.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/nkf.so nkf.o -L. -L../.. -L.  -eInit_nkf   -lrt -ldl -lcrypt -lm   -lc
        cp ../.././ext/nkf/lib/kconv.rb ../../.ext/common
ターゲット "all" は最新のものです。
compiling openssl
compiling pty
        gcc -I. -I../.. -I../../. -I../.././ext/pty -DHAVE_SYS_STROPTS_H -DHAVE_PTSNAME  -D_LARGE_FILES=1   -g -O2   -c pty.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/pty.so pty.o -L. -L../.. -L.  -eInit_pty   -lrt -ldl -lcrypt -lm   -lc
        cp ../.././ext/pty/lib/expect.rb ../../.ext/common
ターゲット "all" は最新のものです。
compiling racc/cparse
        gcc -I. -I../../.. -I../../../. -I../../.././ext/racc/cparse -D_LARGE_FILES=1   -g -O2   -c cparse.c
        gcc -shared -Wl,-G -o ../../../.ext/powerpc-aix5.2.0.0/racc/cparse.so cparse.o -L. -L../../.. -L.  -eInit_cparse   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling readline
compiling sdbm
        gcc -I. -I../.. -I../../. -I../.././ext/sdbm -D_LARGE_FILES=1   -g -O2   -c _sdbm.c
        gcc -I. -I../.. -I../../. -I../.././ext/sdbm -D_LARGE_FILES=1   -g -O2   -c init.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/sdbm.so _sdbm.o init.o -L. -L../.. -L.  -eInit_sdbm   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling socket
        gcc -I. -I../.. -I../../. -I../.././ext/socket -DHAVE_ARPA_INET_H -DENABLE_IPV6 -DINET6 -DHAVE_SIN_LEN -DHAVE_SOCKADDR_STORAGE -DHAVE_SA_LEN  -DHAVE_NETINET_TCP_H -DHAVE_NETINET_UDP_H -DHAVE_SENDMSG -DHAVE_RECVMSG -DHAVE_ST_MSG_CONTROL -DHAVE_GETNAMEINFO -DHAVE_GETADDRINFO -DHAVE_TYPE_SOCKLEN_T -DHAVE_SYS_UN_H -DHAVE_SYS_UIO_H -DHAVE_SOCKET -DHAVE_GETIPNODEBYNAME -DHAVE_SOCKETPAIR -DHAVE_GETHOSTNAME  -D_LARGE_FILES=1   -Dss_family=__ss_family -Dss_len=__ss_len -g -O2   -c socket.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/socket.so socket.o -L. -L../.. -L.  -eInit_socket   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling stringio
        gcc -I. -I../.. -I../../. -I../.././ext/stringio -D_LARGE_FILES=1   -g -O2   -c stringio.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/stringio.so stringio.o -L. -L../.. -L.  -eInit_stringio   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling strscan
        gcc -I. -I../.. -I../../. -I../.././ext/strscan -D_LARGE_FILES=1   -g -O2   -c strscan.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/strscan.so strscan.o -L. -L../.. -L.  -eInit_strscan   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling syck
        gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H  -D_LARGE_FILES=1   -g -O2   -c rubyext.c
        gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H  -D_LARGE_FILES=1   -g -O2   -c yaml2byte.c
        gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H  -D_LARGE_FILES=1   -g -O2   -c bytecode.c
        gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H  -D_LARGE_FILES=1   -g -O2   -c token.c
        gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H  -D_LARGE_FILES=1   -g -O2   -c node.c
        gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H  -D_LARGE_FILES=1   -g -O2   -c emitter.c
        gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H  -D_LARGE_FILES=1   -g -O2   -c handler.c
        gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H  -D_LARGE_FILES=1   -g -O2   -c syck.c
        gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H  -D_LARGE_FILES=1   -g -O2   -c implicit.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/syck.so rubyext.o yaml2byte.o bytecode.o gram.o token.o node.o emitter.o handler.o syck.o implicit.o -L. -L../.. -L.  -eInit_syck   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling syslog
        gcc -I. -I../.. -I../../. -I../.././ext/syslog -DHAVE_SYSLOG_H -DHAVE_OPENLOG -DHAVE_SETLOGMASK  -D_LARGE_FILES=1   -g -O2   -c syslog.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/syslog.so syslog.o -L. -L../.. -L.  -eInit_syslog   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling thread
        gcc -I. -I../.. -I../../. -I../.././ext/thread -D_LARGE_FILES=1   -DUSE_MEM_POOLS -g -O2   -c thread.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/thread.so thread.o -L. -L../.. -L.  -eInit_thread   -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
compiling tk
compiling tk/tkutil
compiling win32ole
compiling zlib
        gcc -I. -I../.. -I../../. -I../.././ext/zlib -DHAVE_ZLIB_H  -DOS_CODE=OS_UNIX  -D_LARGE_FILES=1   -g -O2   -c zlib.c
        gcc -shared -Wl,-G -o ../../.ext/powerpc-aix5.2.0.0/zlib.so zlib.o -L. -L../.. -L.  -eInit_zlib   -lz  -lrt -ldl -lcrypt -lm   -lc
ターゲット "all" は最新のものです。
making ruby
         gcc -g -O2    -DRUBY_EXPORT  -L.  -Wl,-bE:ruby.imp -Wl,-brtl   main.o  -lruby-static -lrt -ldl -lcrypt -lm   -o ruby
$


----------------------------------------
http://redmine.ruby-lang.org


[ruby-dev:39224] Re: [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Nobuyoshi Nakada-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

なかだです。

At Thu, 3 Sep 2009 18:53:00 +0900,
和弥 寺元 wrote in [ruby-dev:39222]:
> AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになりました。
> 対処方法を教えて頂けないでしょうか。
> よろしくお願いします。
>
> $ make test
> not ok float 7 -- ./sample/test.rb:1232

test_ok(2.6.round == 3) の行ですか。

./miniruby -e 'x=2.6.round; p x.class, "%.20f"' の結果はどうなる
でしょうか。

--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦


[ruby-dev:39225] [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Aaron Patterson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

チケット #2036 が更新されました。 (by 和弥 寺元)


寺元です。

> 2009年09月03日 20:29 PM - Nobuyoshi Nakada
>./miniruby -e 'x=2.6.round; p x.class, "%.20f"' の結果はどうなる
>でしょうか。

以下となりました。

$ ./miniruby -e 'x=2.6.round; p x.class, "%.20f"'
Fixnum
"%.20f"
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2036

----------------------------------------
http://redmine.ruby-lang.org


[ruby-dev:39226] Re: [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Nobuyoshi Nakada-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

なかだです。

At Fri, 4 Sep 2009 09:17:46 +0900,
和弥 寺元 wrote in [ruby-dev:39225]:
> >./miniruby -e 'x=2.6.round; p x.class, "%.20f"' の結果はどうなる
> >でしょうか。
>
> 以下となりました。
>
> $ ./miniruby -e 'x=2.6.round; p x.class, "%.20f"'
> Fixnum
> "%.20f"

すいません、'x=2.6.round; p x.class, "%.20f" % x'の最後が抜けて
ました。Fixnumになっていることは確認できたので、
./miniruby -e 'p 2.6.round' だけでも結構です。

--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦


[ruby-dev:39227] [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Aaron Patterson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

チケット #2036 が更新されました。 (by 和弥 寺元)


寺元です。

> 2009年09月04日 09:45 AM - Nobuyoshi Nakada
> すいません、'x=2.6.round; p x.class, "%.20f" % x'の最後が抜けて
> ました。Fixnumになっていることは確認できたので、
> ./miniruby -e 'p 2.6.round' だけでも結構です。

以下となりました。

$ ./miniruby -e 'p 2.6.round'
269333544
$ ./miniruby -e 'x=2.6.round; p x.class, "%.20f" % x'
Fixnum
"269333544.00000000000000000000"
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2036

----------------------------------------
http://redmine.ruby-lang.org


[ruby-dev:39228] Re: [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Nobuyoshi Nakada-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

なかだです。

At Fri, 4 Sep 2009 10:22:51 +0900,
和弥 寺元 wrote in [ruby-dev:39227]:
> $ ./miniruby -e 'p 2.6.round'
> 269333544
> $ ./miniruby -e 'x=2.6.round; p x.class, "%.20f" % x'
> Fixnum
> "269333544.00000000000000000000"

ありがちなところでは、math.hにround()の宣言が抜けていてintと見な
されてゴミを使っているといったあたりでしょうか。
以下のパッチのように宣言を追加してみるとどうでしょうか。


Index: numeric.c
===================================================================
--- numeric.c (revision 24713)
+++ numeric.c (working copy)
@@ -64,4 +64,6 @@
 #endif
 
+extern double round _((double));
+
 #ifndef HAVE_ROUND
 double


--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦


[ruby-dev:39229] Re: [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Nobuyoshi Nakada-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

なかだです。

At Fri, 4 Sep 2009 11:19:19 +0900,
Nobuyoshi Nakada wrote in [ruby-dev:39228]:
> ありがちなところでは、math.hにround()の宣言が抜けていてintと見な
> されてゴミを使っているといったあたりでしょうか。

ちなみに、以下のコードはコンパイルエラーになったり警告が出たりす
るでしょうか。

/* BEGIN */
#include <math.h>

char *round();
/* END */

--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦


[ruby-dev:39231] [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Aaron Patterson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

チケット #2036 が更新されました。 (by 和弥 寺元)


寺元です。

> 2009年09月04日 11:31 AM - Nobuyoshi Nakada
>ちなみに、以下のコードはコンパイルエラーになったり警告が出たりす
>るでしょうか。
>* BEGIN */
>#include <math.h>
>
>char *round();
>/* END */

次のようにtest.cを作成してコンパイルを試みましたが、
コンパイルエラー・警告は、出力しません。

$ more test.c
/* BEGIN */
#include <math.h>

char *round();
/* END */
#include<stdio.h>
main()
{
    printf("Hello, World!\n");
}

$ gcc -o tera test.c
$ ./tera
Hello, World!
$ pwd
/opt/ruby/ruby-1.8.7-p174


----------------------------------------
http://redmine.ruby-lang.org/issues/show/2036

----------------------------------------
http://redmine.ruby-lang.org


[ruby-dev:39241] [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Aaron Patterson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

チケット #2036 が更新されました。 (by 和弥 寺元)


寺元です。

試しにruby-1.8.5-p231を
./configure
make
make test
したところ、ruby-1.8.7-p174と同様の結果になりました。
参考になればと思い、連絡します。
=============
$ make test
./rubytest.rb:40: warning: Insecure world writable dir /opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1643: warning: Insecure world writable dir /opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1650: warning: Insecure world writable dir /opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1651: warning: Insecure world writable dir /opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1658: warning: Insecure world writable dir /opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1668: warning: Insecure world writable dir /opt/CreateForm/FormCast, mode 0240777
./sample/test.rb:1669: warning: Insecure world writable dir /opt/CreateForm/FormCast, mode 0240777
not ok float 7 -- ./sample/test.rb:1178
test failed
make: 1254-004 最後のコマンドからのエラー・コードは 1 です。


停止します。

$ cd ruby-1.8.5-p231
$ pwd
/opt/ruby/ruby-1.8.5-p231
$ ./miniruby -e 'x=2.6.round; p x.class, "%.20f" % x'
Fixnum
"269287488.00000000000000000000"
$ more test.c
/* BEGIN */
#include <math.h>

char *round();
/* END */
#include<stdio.h>
main()
{
    printf("Hello, World!\n");
}

$ gcc -o tera test.c
$ ./tera
Hello, World!
$
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2036

----------------------------------------
http://redmine.ruby-lang.org


[ruby-dev:39243] Re: [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Nobuyoshi Nakada-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

なかだです。

At Fri, 4 Sep 2009 13:26:40 +0900,
和弥 寺元 wrote in [ruby-dev:39231]:
> 次のようにtest.cを作成してコンパイルを試みましたが、
> コンパイルエラー・警告は、出力しません。

[ruby-dev:39228]のパッチを試してみてください。

--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦


[ruby-dev:39263] Re: [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Yutaka Kanemoto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

金本と申します。
横からすみません。

% oslevel -s
5200-10-07-0902
という環境で、

% gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.2.0.0
Configured with: ../configure --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++
--prefix=/opt/freeware --enable-threads
--enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.2.0.0
Thread model: aix
gcc version 4.0.0

を使ってruby-1.8.7-p174を
% ./configure --prefix=$HOME/r187p174
% make
してみたのですが、私のところでは

% make test
test succeeded

となりました。
minirubyでの結果は
% ./miniruby -e 'x=2.6.round; p x.class, "%.20f" % x'
Fixnum
"3.00000000000000000000"
でした。

いったい何が違うのかわからないのでぜんぜんお力になれないのです(すみません)が、
たとえば、gccのバージョンとかどこから持ってきたものとかは
情報ありますでしょうか?
私は確か
ftp.software.ibm.com:/aix/freeSoftware/aixtoolbox/RPMS/ppc/gcc
からもってきました。

最初のメールには./configureにオプションを指定されていないようでしたが、
何か特別なものをご利用ですか?
あるいは、付属のconfigureではなく、autoconfされたようですが、
autoconfのバージョンはいくつをお使いでしょうか?
コンパイルできているようですので関係ないですかね。
一応こちらのmath.hにroundは入っていました。
--
Yutaka KANEMOTO
http://d.hatena.ne.jp/kinpoco/


[ruby-dev:39344] [Bug #2036] AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Aaron Patterson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

チケット #2036 が更新されました。 (by 和弥 寺元)


寺元です。

xlc(8.0.0)コンパイラにて、ruby-1.8.7-p174をインストールしたところ
make testでエラーにならないでインストールできました。


$ ./configure --without-gcc

$ make

$ ./miniruby -e 'x=2.6.round; p x.class, "%.20f" % x'
Fixnum
"3.00000000000000000000"

% su
# make install
# exit

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [powerpc-aix5.2.0.0]

----------------------------------------
http://redmine.ruby-lang.org/issues/show/2036

----------------------------------------
http://redmine.ruby-lang.org


[ruby-dev:39562] [Bug #2036](Closed) AIX 5L 5.2にて、ruby-1.8.7-p174のビルド時にmake testをするとエラーになった。not ok float 7 -- ./sample/test.rb:1232

by Aaron Patterson-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

チケット #2036 が更新されました。 (by Yui NARUSE)

ステータス FeedbackからClosedに変更
担当者 Yutaka Kanemotoにセット

解決ということでいいですかね
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2036

----------------------------------------
http://redmine.ruby-lang.org