<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - REGRESSION(r189293): JavaScriptCore/offlineasm/x86.rb -- Build failure with ruby &lt; 2.0"
   href="https://bugs.webkit.org/show_bug.cgi?id=148795">148795</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>REGRESSION(r189293): JavaScriptCore/offlineasm/x86.rb -- Build failure with ruby &lt; 2.0
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>clopez&#64;igalia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>achristensen&#64;apple.com, bfulgham&#64;webkit.org, cgarcia&#64;igalia.com, msaboff&#64;apple.com, ossy&#64;webkit.org, thorton&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After r189293 &lt;<a href="http://trac.webkit.org/r189293">http://trac.webkit.org/r189293</a>&gt; WebKit fails to build with the following error:

Source/JavaScriptCore/offlineasm/x86.rb:218:in `+': String can't be coerced into FixnumAt /home/slave/webkitgtk/gtk-linux-64-release/build/Source/JavaScriptCore/llint/LowLevelInterpreter64.asm:135 (TypeError)

<a href="https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20%28Build%29/builds/61907/steps/compile-webkit/logs/stdio/text">https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20%28Build%29/builds/61907/steps/compile-webkit/logs/stdio/text</a>


This happens only when using ruby1.8 but not when using ruby2.0

On a system that has both ruby interpreters installed, CMake will prefer ruby1.8 therefore causing the build failure.

The proposed fix is to explicit require ruby2.0.

This will also help to prevent further issues with different ruby interpreters used.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>