Bug 187894 - [GTK][BUILD] JSContextRef.h: No such file or directory
Summary: [GTK][BUILD] JSContextRef.h: No such file or directory
Status: RESOLVED DUPLICATE of bug 183788
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-22 16:54 PDT by karogyoker2+webkit
Modified: 2018-07-23 19:46 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description karogyoker2+webkit 2018-07-22 16:54:44 PDT
Hi,

Following these steps, I'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="-march=pentium3 -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -g0 -Os" -DCMAKE_CXX_FLAGS="-march=pentium3 -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -g0 -Os" -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=\"share\" -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DHAVE_CONFIG_H=1 -DLIBDIR=\"/usr/local/lib\" -DSTATICALLY_LINKED_WITH_WTF -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -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 <JavaScriptCore/JSContextRef.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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't used at all.
Comment 1 Fujii Hironori 2018-07-23 19:23:08 PDT
Bug 183788 is a similar issue.
Comment 2 Michael Catanzaro 2018-07-23 19:46:17 PDT

*** This bug has been marked as a duplicate of bug 183788 ***