<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>187894</bug_id>
          
          <creation_ts>2018-07-22 16:54:44 -0700</creation_ts>
          <short_desc>[GTK][BUILD] JSContextRef.h: No such file or directory</short_desc>
          <delta_ts>2018-07-23 19:46:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Local Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>183788</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>karogyoker2+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>fujii</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1444183</commentid>
    <comment_count>0</comment_count>
    <who name="">karogyoker2+webkit</who>
    <bug_when>2018-07-22 16:54:44 -0700</bug_when>
    <thetext>Hi,

Following these steps, I&apos;m able to compile WebKit in a 32 bit VM (VirtualBox):
1. Install Lubuntu 18.04
2. Update it
3. Download this: https://webkitgtk.org/releases/webkitgtk-2.20.3.tar.xz
4. Extract it and go into folder
5. ./Tools/gtk/install-dependencies
6. cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=&quot;-march=pentium3 -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -g0 -Os&quot; -DCMAKE_CXX_FLAGS=&quot;-march=pentium3 -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -g0 -Os&quot; -DUSE_WOFF2=OFF -DUSE_LD_GOLD=OFF -DENABLE_MINIBROWSER=OFF -DENABLE_JIT=OFF -GNinja
7. ninja
8. sudo ninja install

On an actual Athlon XP machine I got the error message after step #7 (ninja):
Building CXX object Source/....dir/llint/LLIntOffsetsExtractor.cpp.o
FAILED: Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o 
/usr/bin/c++  -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DDATA_DIR=\&quot;share\&quot; -DGETTEXT_PACKAGE=\&quot;WebKit2GTK-4.0\&quot; -DHAVE_CONFIG_H=1 -DLIBDIR=\&quot;/usr/local/lib\&quot; -DSTATICALLY_LINKED_WITH_WTF -DWEBKITGTK_API_VERSION_STRING=\&quot;4.0\&quot; -IDerivedSources/ForwardingHeaders -I. -ISource/JavaScriptCore -ISource/JavaScriptCore/API -ISource/JavaScriptCore/assembler -ISource/JavaScriptCore/b3 -ISource/JavaScriptCore/b3/air -ISource/JavaScriptCore/bindings -ISource/JavaScriptCore/builtins -ISource/JavaScriptCore/bytecode -ISource/JavaScriptCore/bytecompiler -ISource/JavaScriptCore/dfg -ISource/JavaScriptCore/disassembler -ISource/JavaScriptCore/disassembler/ARM64 -ISource/JavaScriptCore/disassembler/ARMv7 -ISource/JavaScriptCore/disassembler/udis86 -ISource/JavaScriptCore/domjit -ISource/JavaScriptCore/ftl -ISource/JavaScriptCore/heap -ISource/JavaScriptCore/debugger -ISource/JavaScriptCore/inspector -ISource/JavaScriptCore/inspector/agents -ISource/JavaScriptCore/inspector/augmentable -ISource/JavaScriptCore/inspector/remote -ISource/JavaScriptCore/interpreter -ISource/JavaScriptCore/jit -ISource/JavaScriptCore/llint -ISource/JavaScriptCore/parser -ISource/JavaScriptCore/profiler -ISource/JavaScriptCore/runtime -ISource/JavaScriptCore/tools -ISource/JavaScriptCore/wasm -ISource/JavaScriptCore/wasm/js -ISource/JavaScriptCore/yarr -IDerivedSources/JavaScriptCore -IDerivedSources/JavaScriptCore/inspector -IDerivedSources/JavaScriptCore/runtime -IDerivedSources/JavaScriptCore/yarr -ISource/JavaScriptCore/inspector/remote/glib -isystem /usr/include/glib-2.0 -isystem /usr/lib/i386-linux-gnu/glib-2.0/include -ISource/bmalloc -IDerivedSources -ISource/ThirdParty -fdiagnostics-color=always -Wno-expansion-to-defined -Wno-attributes -Wno-noexcept-type -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wextra -Wall -march=pentium3 -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -g0 -Os -fno-strict-aliasing -fno-exceptions -std=c++14 -fno-rtti -O3 -DNDEBUG -fPIE -MD -MT Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o -MF Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o.d -o Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o -c Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp
In file included from Source/JavaScriptCore/heap/HeapFinalizerCallback.h:28:0,
                 from Source/JavaScriptCore/heap/Heap.h:33,
                 from Source/JavaScriptCore/heap/DeferGC.h:29,
                 from Source/JavaScriptCore/runtime/ConcurrentJSLock.h:28,
                 from Source/JavaScriptCore/bytecode/ArrayProfile.h:28,
                 from Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:28:
Source/JavaScriptCore/API/JSHeapFinalizerPrivate.h:29:10: fatal error: JavaScriptCore/JSContextRef.h: No such file or directory
 #include &lt;JavaScriptCore/JSContextRef.h&gt;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

I want to emphasize that on the Athlon XP machine I also starting with a fresh system, the same OS and version as for the VM. They are installed from the same image actually.
I have 10 gigs of swap for the physical machine, it wasn&apos;t used at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1444537</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2018-07-23 19:23:08 -0700</bug_when>
    <thetext>Bug 183788 is a similar issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1444539</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-07-23 19:46:17 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 183788 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>