https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-02-27T01:47:38ZRuby Issue Tracking SystemRuby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=371072013-02-27T01:47:38ZSupaIrish (Chris Irish)supairish@gmail.com
<ul></ul><p>I'm seeing a similar failure when trying to install Ruby 2.0.0 with RVM. Here's a gist of the RVM install command I'm running and the error output to the make.log</p>
<p><a href="https://gist.github.com/supairish/5039949" class="external">https://gist.github.com/supairish/5039949</a></p> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=371092013-02-27T02:53:41Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul></ul><p>Can you try <code>rvm get head && rvm install 2.0.0</code>?</p>
<p>As I mentioned on my blog, <code>rvm get stable</code> isn't enough apparently to compile 2.0.0 in many cases.</p> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=371412013-02-27T18:57:40Znstoker (Neil Stoker Stoker)neil.stoker@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/3555">display.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3555/display.txt">display.txt</a> added</li><li><strong>File</strong> <a href="/attachments/3556">make.log</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3556/make.log">make.log</a> added</li></ul><p>I'm getting a similar failure on OSX Snow Leopard, logs attached.</p> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=371532013-02-28T01:10:39Zmpapis (Michal Papis)mpapis@gmail.com
<ul></ul><p>the latest version of <code>rvm get head</code> solves this problem by switching to <code>clang</code> => <code>gcc -v | grep -i llvm && export CC=clang</code> - only on OSX, does not make any troubles on other platforms.</p> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=371552013-02-28T01:16:49Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>mpapis (Michal Papis) wrote:</p>
<blockquote>
<p>the latest version of <code>rvm get head</code> solves this problem by switching to <code>clang</code> => <code>gcc -v | grep -i llvm && export CC=clang</code> - only on OSX, does not make any troubles on other platforms.</p>
</blockquote>
<p>Thanks!</p>
<p>I'm closing this issue, but will reopen if anyone has troubles (in which case please provide logs like nstoker did)</p> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=371572013-02-28T01:42:51Zmpapis (Michal Papis)mpapis@gmail.com
<ul></ul><p>I was using this trick in rvm for some time to avoid the LLVM gcc errors, maybe ruby could adopt it in ./configure => gcc -v | grep -i llvm && export CC=clang</p> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=371782013-02-28T12:46:04Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><p>mpapis (Michal Papis) wrote:</p>
<blockquote>
<p>I was using this trick in rvm for some time to avoid the LLVM gcc errors, maybe ruby could adopt it in ./configure => gcc -v | grep -i llvm && export CC=clang</p>
</blockquote>
<p>Ruby itself sets CC as clang, so it's not required unless rvm sets wrong CC.</p>
<p>Note that old clang is buggy.<br>
See also <a href="https://github.com/sstephenson/ruby-build/issues/290#issuecomment-14013057" class="external">https://github.com/sstephenson/ruby-build/issues/290#issuecomment-14013057</a></p> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=372772013-03-04T06:11:03Znstoker (Neil Stoker Stoker)neil.stoker@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/3566">miniruby_2013-03-03-205700-1_LinkSys.crash</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3566/miniruby_2013-03-03-205700-1_LinkSys.crash">miniruby_2013-03-03-205700-1_LinkSys.crash</a> added</li><li><strong>File</strong> <a href="/attachments/3567">output.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3567/output.txt">output.txt</a> added</li><li><strong>File</strong> <a href="/attachments/3568">make.log</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3568/make.log">make.log</a> added</li><li><strong>File</strong> <a href="/attachments/3569">miniruby_2013-03-03-205700_LinkSys.crash</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3569/miniruby_2013-03-03-205700_LinkSys.crash">miniruby_2013-03-03-205700_LinkSys.crash</a> added</li><li><strong>File</strong> <a href="/attachments/3570">miniruby_2013-03-03-205700_LinkSys.crash</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3570/miniruby_2013-03-03-205700_LinkSys.crash">miniruby_2013-03-03-205700_LinkSys.crash</a> added</li></ul><p>I'm still getting the error when trying to build.</p>
<p>What other information can I provide that would help you to track down the issue?</p> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=372782013-03-04T08:03:47Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Open</i></li></ul><p>Re-opening.</p>
<p>I also sent an email to Michal Papis.</p>
<p>It might be best to open this issue on rvm's side and if Michal finds a problem that ruby-core can solve he could submit that?</p> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=373442013-03-07T10:42:39Zmpapis (Michal Papis)mpapis@gmail.com
<ul></ul><p>=begin<br>
I have just rechecked both with and without RVM and I can not reproduce this problem, make sure to update RVM: (({rvm get head})) - there are two things you could check:</p>
<p>(1) problem with compiler - check this <a href="https://github.com/wayneeseguin/rvm/issues/1660" class="external">https://github.com/wayneeseguin/rvm/issues/1660</a><br>
(2) older homebrew libraries using different compilation settings, rvm has now improved code to update libraries which are outdated if you run (({rvm install 2.0.0 --autolibs=3}))</p>
<p>If none of those help could you please provide a log of: (({rvm install 2.0.0 --autolibs=3 --debug})) it will contain more details about the used commands.<br>
=end</p> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=378712013-03-24T08:30:24Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Third Party's Issue</i></li></ul> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=379712013-03-28T02:29:17Zmpapis (Michal Papis)mpapis@gmail.com
<ul></ul><p>Ok now RVM 1.19 now tries to use gcc-4.2 first and it fails in this case: <a href="https://github.com/wayneeseguin/rvm/issues/1731" class="external">https://github.com/wayneeseguin/rvm/issues/1731</a></p>
<p>We followed the instructions from <a href="http://bugs.ruby-lang.org/issues/7956#note-7" class="external">http://bugs.ruby-lang.org/issues/7956#note-7</a> / <a href="https://github.com/sstephenson/ruby-build/issues/290#issuecomment-14013057" class="external">https://github.com/sstephenson/ruby-build/issues/290#issuecomment-14013057</a> which end as:</p>
<p>So if you support Xcode 3.x and 4.2,</p>
<pre><code>If it is OS X
use gcc-4.2 if it exists
use clang if it exists
raise error
else Don't set CC
</code></pre> Ruby master - Bug #7956: Install fail with RVMhttps://bugs.ruby-lang.org/issues/7956?journal_id=427382013-11-04T15:56:36Zmpapis (Michal Papis)mpapis@gmail.com
<ul></ul><p>the last reported problem is unrelated to the initial one and was fixed in <a class="issue tracker-1 status-8 priority-4 priority-default closed" title="Bug: Compilation failure for 2.0.0 on 10.6.8 (Third Party's Issue)" href="https://bugs.ruby-lang.org/issues/8134">#8134</a> - it can be reclosed</p>