https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112009-07-06T21:03:39ZRuby Issue Tracking SystemBackport186 - Bug #1735: Ruby compiled with gcc 4.4.0: problems in date.rbhttps://redmine.ruby-lang.org/issues/1735?journal_id=44982009-07-06T21:03:39Ztadf (tadayoshi funaba)
<ul></ul><p>=begin<br>
type ruby -e 'p 1867216.25'.<br>
and try to re-build ruby without optimization.</p>
<p>=end</p> Backport186 - Bug #1735: Ruby compiled with gcc 4.4.0: problems in date.rbhttps://redmine.ruby-lang.org/issues/1735?journal_id=52142009-08-11T13:36:25Zphinze (Paul Hinze)
<ul></ul><p>=begin<br>
Same issue here on fresh install of ArchLinux with gcc 4.4.1:</p>
<p>$ ruby -e 'p 1867216.25'<br>
186721625.0</p>
<p>As per tadayoshi funaba's suggestion, I rebuilt ruby-1.8.6-p286 after editing the root Makefile like so:</p>
<ul>
<li>CFLAGS = -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1</li>
</ul>
<ul>
<li>CFLAGS = -g -DRUBY_EXPORT -D_GNU_SOURCE=1</li>
</ul>
<p>And that solved the problem for me, at least in date.rb. I'm a little worried about what optimization bugs might be lurking elsewhere.</p>
<p>So is there something we should be doing to prevent this from happening to other users? I'm not very familiar with Ruby's C source but I'm willing to dive in if someone points me in the right direction.<br>
=end</p> Backport186 - Bug #1735: Ruby compiled with gcc 4.4.0: problems in date.rbhttps://redmine.ruby-lang.org/issues/1735?journal_id=60542009-09-29T22:42:20Znlugovoi (Nikolai Lugovoi)nlugovoi@gmail.com
<ul></ul><p>=begin<br>
need to backport r23353 from branches/ruby_1_8 to 1.8.7 and 1.8.6<br>
=end</p> Backport186 - Bug #1735: Ruby compiled with gcc 4.4.0: problems in date.rbhttps://redmine.ruby-lang.org/issues/1735?journal_id=68462009-11-16T20:09:35Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul><li><strong>Assignee</strong> set to <i>wyhaines (Kirk Haines)</i></li></ul><p>=begin<br>
Revision r25801 backports this into 1.8.7.<br>
=end</p> Backport186 - Bug #1735: Ruby compiled with gcc 4.4.0: problems in date.rbhttps://redmine.ruby-lang.org/issues/1735?journal_id=115842010-06-10T02:20:39Zwyhaines (Kirk Haines)wyhaines@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>=begin<br>
This was fixed with the r28153, which also resolved Backport <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Backport: "Date.valid_civil?" issue in p383 (Closed)" href="https://redmine.ruby-lang.org/issues/2392">#2392</a> <a href="/issues/2392">[ruby-core:26868]</a>. The r25801 referenced in this ticket was already applied in r25871. My tests for this bug are passing, so I am closing the ticket.<br>
=end</p>