Bug #10120
closedTestSprintf#test_float still an issue
Description
The fix for #8358 is build time solution. Unfortunately it turns out that this does not work so well for for distributions such as Fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=1101811
The issues is that the SSE2 support is determined during build time, i.e. if builder supports SSE2, then the instructions are enabled. However, later when the packaged Ruby is executed on platform which does not support SSE2, it may result in issues as described in the above mentioned ticket.
Is there some way, how to resolve this issue in runtime rather than build time?
Updated by vo.x (Vit Ondruch) over 10 years ago
- Related to Bug #8358: TestSprintf#test_float test failure added
Updated by nobu (Nobuyoshi Nakada) over 10 years ago
How can I reproduce the problem of sprintf
on Fedora?
Which version OS, libc, and gcc?
I CAN NEVER REPRODUCE IT ON ANY PLATFORMS, INCLUDE MINGW.¶
Updated by nobu (Nobuyoshi Nakada) over 10 years ago
- Status changed from Open to Feedback
Updated by vo.x (Vit Ondruch) over 10 years ago
The #8358 was always issue on our builders and reproducible locally using mock [1]. E.g. I typically run the i686 build on my x86_64 OS inside the mock environment for i686.
These are approximately steps you should follow to reproduce:
- Run x86_64 Fedora
- yum install mock
- usermod -a -G mock [User name] && newgrp mock
- mock -r fedora-rawhide-i386 --init
- mock -r fedora-rawhide-i386 --install subversion bison
5.1 you can similarly install whatever else you might find handy in the buildroot - mock -r fedora-rawhide-i386 shell
- checkout the ruby repository and configure & make & make check
To be honest, I have never tried to reproduce the issue in pure i686 Fedora. Not sure if that might be of any difference.
Updated by hsbt (Hiroshi SHIBATA) over 10 years ago
- Related to Bug #9705: Installing ruby 2.1.1 fails while compiling (after: rvm install 2.1.1) added
Updated by luislavena (Luis Lavena) over 10 years ago
- Assignee set to nobu (Nobuyoshi Nakada)
Hello,
Now after r47129, mingw-w64 is failing again, so we are back to the beginning.
ruby -v: ruby 2.2.0dev (2014-08-24 trunk 47266) [i386-mingw32]
TestSprintf#test_float [C:/Users/Luis/Code/ruby/ruby/test/ruby/test_sprintf.rb:208]:
[ruby-dev:42551].
<"0x1p+2"> expected but was
<"0x1p+1">.
I'm out of ideas on how to solve this without: force SSE or change the pow/float implementation for MinGW.
Open to suggestions.
Thank you.
Updated by vo.x (Vit Ondruch) about 10 years ago
- Status changed from Feedback to Closed
- Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED
This should be resolved by r48844 according to [1].
Updated by nagachika (Tomoyuki Chikanaga) over 9 years ago
- Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE
r47129 and r48844 were backported into ruby_2_1
branch at r50067.