Bug 146058

Summary: webkit-gtk 2.9.2 does not build on MIPS64 (cast from 'JSC::MIPSWord* {aka unsigned int*}' to 'int' loses precision)
Product: WebKit Reporter: Alexander Kanavin <alex.kanavin>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: Linux   
Attachments:
Description Flags
build log with the full error output none

Description Alexander Kanavin 2015-06-17 06:07:09 PDT
Created attachment 255013 [details]
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<int>(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<int>(to);
|                                                   ^

(and many more similar errors). Build log is atatched.