Bug 131584 - Webkit can't be built with GCC
Summary: Webkit can't be built with GCC
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-12 15:13 PDT by LRN
Modified: 2020-06-18 06:43 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LRN 2014-04-12 15:13:01 PDT
WebKit needs an engine to execute JS. Two are available - LLInt and JIT.

JIT can be built on Windows, but only with MS VC compiler (has inline assembly code that is GCC-incompatible).
When building with JIT, ld complains about undefined symbols callToNativeFunction and callToJavaScript.

LLInt can't be built on Windows, GCC complains:

../webkitgtk-2.4.0/Source/JavaScriptCore/llint/LLIntOpcode.h:59:11: error: label 'llint_throw_from_slow_path_trampoline' used but not defined
     macro(llint_throw_from_slow_path_trampoline, 1) \

This, i guess, is because LLIntAssembly.h can't be generated, the asm.rb script complains:
offlineasm: No magic values found. Skipping assembly file generation.

With neither engines being available, it's impossible to build WebKit.

This affects WebKitGTK-2.3.x (confirmed with 2.3.90) and 2.4.0.
WebKitGTK-2.2.5 builds (2.2.6 is said to be buildable as well, but i haven't tried it yet).
Comment 1 Milan Crha 2014-06-25 03:00:49 PDT
I'd mark this as a duplicate of bug 133028, which is similar generic for a build break under mingw32/msys, or if you want the specific JIT bug report, then it's bug 132856. Both contain some proposed fixes. The former has list of dependencies with other fixes for the general build failures under mingw32/msys.