Bug 135450

Summary: [GTK] For some platform, LLIntAssembly.h cannot be generated dynamically
Product: WebKit Reporter: arkuka_reg
Component: WebCore JavaScriptAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, cgarcia, john.frankish, ossy, svillar, zan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description arkuka_reg 2014-07-30 20:21:57 PDT
For some platform, LLIntAssembly.h cannot be generated dynamically, but in Source\JavaScriptCore\GNUmakefile.am, a bunch of .lo files are dependent on LLIntAssembly.h with no condition.

$(libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_OBJECTS): DerivedSources/JavaScriptCore/LLIntAssembly.h
Comment 1 arkuka_reg 2014-07-30 20:22:58 PDT
If LLIntAssembly.h cannot be generated, there will be some log like:

  GEN      DerivedSources/JavaScriptCore/LLIntAssembly.h
offlineasm: Parsing ./Source/JavaScriptCore/llint/LowLevelInterpreter.asm and Programs/LLIntOffsetsExtractor and creating assembly file .
offlineasm: No magic values found. 	 assembly file generation.
Comment 2 arkuka_reg 2014-07-30 20:24:23 PDT
Sorry, fix a typo in Comment#1.

If LLIntAssembly.h cannot be generated, there will be some log like:

  GEN      DerivedSources/JavaScriptCore/LLIntAssembly.h
offlineasm: Parsing ./Source/JavaScriptCore/llint/LowLevelInterpreter.asm and Programs/LLIntOffsetsExtractor and creating assembly file .
offlineasm: No magic values found. Skipping assembly file generation.
Comment 3 Csaba Osztrogonác 2014-07-31 01:31:21 PDT
autotools build system of WebKitGTK was removed from trunk 4 months before - http://trac.webkit.org/changeset/166239 . So I think this bug is related to
an older revision or release. On which revision/release do you get this fail?

( cc-ing GTK developers )
Comment 4 arkuka_reg 2015-04-22 02:06:29 PDT
This problem is found on WebkitGTK 2.0.1
Comment 5 john.frankish 2019-11-22 01:34:02 PST
This error also occurs when compiling webkit-2.20.5 using cmake/ninja on an RPi3 (armv7):

[32/1969] cd /mnt/sda8/usr/src/webkitgtk-2.20.5/build/DerivedSources/JavaScriptCore && /usr/local/bin/ruby /mnt/sda8/usr/src/webkitgtk-2.20.5/Source/JavaScriptCore/offlineasm/asm.rb -I/mnt/sda8/usr/src/webkitgtk-2.20.5/build/DerivedSources/JavaScriptCore/ /mnt/sda8/usr/src/webkitgtk-2.20.5/Source/JavaScriptCore/llint/LowLevelInterpreter.asm /mnt/sda8/usr/src/webkitgtk-2.20.5/build/bin/LLIntOffsetsExtractor /mnt/sda8/usr/src/webkitgtk-2.20.5/build/DerivedSources/JavaScriptCore/LLIntAssembly.h && /tmp/tcloop/cmake/usr/local/bin/cmake -E touch_nocreate /mnt/sda8/usr/src/webkitgtk-2.20.5/build/DerivedSources/JavaScriptCore/LLIntAssembly.h
FAILED: DerivedSources/JavaScriptCore/LLIntAssembly.h 
cd /mnt/sda8/usr/src/webkitgtk-2.20.5/build/DerivedSources/JavaScriptCore && /usr/local/bin/ruby /mnt/sda8/usr/src/webkitgtk-2.20.5/Source/JavaScriptCore/offlineasm/asm.rb -I/mnt/sda8/usr/src/webkitgtk-2.20.5/build/DerivedSources/JavaScriptCore/ /mnt/sda8/usr/src/webkitgtk-2.20.5/Source/JavaScriptCore/llint/LowLevelInterpreter.asm /mnt/sda8/usr/src/webkitgtk-2.20.5/build/bin/LLIntOffsetsExtractor /mnt/sda8/usr/src/webkitgtk-2.20.5/build/DerivedSources/JavaScriptCore/LLIntAssembly.h && /tmp/tcloop/cmake/usr/local/bin/cmake -E touch_nocreate /mnt/sda8/usr/src/webkitgtk-2.20.5/build/DerivedSources/JavaScriptCore/LLIntAssembly.h
offlineasm: No magic values found. Skipping assembly file generation.