something broke ruby floats

J

Joel VanderWerf

Noticed this after rebuilding ruby (with configure args
--disable-pthread --enable-shared):

~/src/ruby> RUBYOPT='' ./ruby -e 'x=0.123; puts x'
123.0
~/src/ruby> ldd ./ruby
linux-gate.so.1 => (0x00b0e000)
libruby.so.1.8 => /usr/local/lib/libruby.so.1.8 (0x00236000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00132000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0x007b8000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x00d63000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00394000)
/lib/ld-linux.so.2 (0x0067e000)
~/src/ruby> ./ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]

(same after make install)

Any ideas what broke? I've never seen anything like this before, and
I've been using p287 on several systems for months (at least). This is
on ubuntu karmic.

Further info:

~/src/ruby> make check
not ok float 1 -- ./sample/test.rb:1172
not ok float 2 -- ./sample/test.rb:1173
not ok float 3 -- ./sample/test.rb:1174
not ok float 4 -- ./sample/test.rb:1175
not ok float 5 -- ./sample/test.rb:1176
not ok float 6 -- ./sample/test.rb:1177
not ok float 7 -- ./sample/test.rb:1178
not ok float 8 -- ./sample/test.rb:1179
not ok float 9 -- ./sample/test.rb:1180
test failed
make: *** [test] Error 1
 
R

Ryan Davis

CC'ing ruby-core@

=20
Noticed this after rebuilding ruby (with configure args =
--disable-pthread --enable-shared):
=20
~/src/ruby> RUBYOPT=3D'' ./ruby -e 'x=3D0.123; puts x'
123.0
~/src/ruby> ldd ./ruby
linux-gate.so.1 =3D> (0x00b0e000)
libruby.so.1.8 =3D> /usr/local/lib/libruby.so.1.8 (0x00236000)
libdl.so.2 =3D> /lib/tls/i686/cmov/libdl.so.2 (0x00132000)
libcrypt.so.1 =3D> /lib/tls/i686/cmov/libcrypt.so.1 (0x007b8000)
libm.so.6 =3D> /lib/tls/i686/cmov/libm.so.6 (0x00d63000)
libc.so.6 =3D> /lib/tls/i686/cmov/libc.so.6 (0x00394000)
/lib/ld-linux.so.2 (0x0067e000)
~/src/ruby> ./ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]
=20
(same after make install)
=20
Any ideas what broke? I've never seen anything like this before, and =
I've been using p287 on several systems for months (at least). This is =
on ubuntu karmic.
=20
Further info:
=20
~/src/ruby> make check
not ok float 1 -- ./sample/test.rb:1172
not ok float 2 -- ./sample/test.rb:1173
not ok float 3 -- ./sample/test.rb:1174
not ok float 4 -- ./sample/test.rb:1175
not ok float 5 -- ./sample/test.rb:1176
not ok float 6 -- ./sample/test.rb:1177
not ok float 7 -- ./sample/test.rb:1178
not ok float 8 -- ./sample/test.rb:1179
not ok float 9 -- ./sample/test.rb:1180
test failed
make: *** [test] Error 1
=20
--=20
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
=20
=20
 
J

Joel VanderWerf

Ryan said:
CC'ing ruby-core@

Thanks.

Brief update: building with gcc-4.3 seems to fix the issue, and `make
check` passes, except for one test in SOAP.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,913
Messages
2,570,027
Members
46,419
Latest member
businessfunding

Latest Threads

Top