<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 - webkit-gtk 2.9.2 does not build on MIPS64 (cast from 'JSC::MIPSWord* {aka unsigned int*}' to 'int' loses precision)"
   href="https://bugs.webkit.org/show_bug.cgi?id=146058">146058</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>webkit-gtk 2.9.2 does not build on MIPS64 (cast from 'JSC::MIPSWord* {aka unsigned int*}' to 'int' loses precision)
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>alex.kanavin&#64;gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=255013" name="attach_255013" title="build log with the full error output">attachment 255013</a> <a href="attachment.cgi?id=255013&amp;action=edit" title="build log with the full error output">[details]</a></span>
build log with the full error output

I'm building webkitgtk-2.9.2 for a mips64 target under Yocto build system, and the build fails like this:

| [  3%] Built target WebKit2-forwarding-headers
| In file included from /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h:33:0,
|                  from /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/assembler/MacroAssembler.h:44,
|                  from /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/runtime/BasicBlockLocation.h:30,
|                  from /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/runtime/ControlFlowProfiler.h:30,
|                  from /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/runtime/VM.h:32,
|                  from /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/heap/CopiedSpaceInlines.h:33,
|                  from /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/runtime/ButterflyInlines.h:31,
|                  from /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/runtime/JSArray.h:25,
|                  from /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/bytecode/ArrayProfile.h:30,
|                  from /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:28:
| /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/assembler/MIPSAssembler.h: In static member function 'static size_t JSC::MIPSAssembler::linkDirectJump(void*, void*)':
| /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/assembler/MIPSAssembler.h:735:54: error: cast from 'JSC::MIPSWord* {aka unsigned int*}' to 'int' loses precision [-fpermissive]
|          int32_t slotAddr = reinterpret_cast&lt;int&gt;(insn) + 4;
|                                                       ^
| /home/ak/development/poky/build-mips64/tmp/work/mips64-poky-linux/webkitgtk/2.9.2-r0/webkitgtk-2.9.2/Source/JavaScriptCore/assembler/MIPSAssembler.h:736:50: error: cast from 'void*' to 'int' loses precision [-fpermissive]
|          int32_t toAddr = reinterpret_cast&lt;int&gt;(to);
|                                                   ^

(and many more similar errors). Build log is atatched.</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>