<?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>240650</bug_id>
          
          <creation_ts>2022-05-19 07:53:15 -0700</creation_ts>
          <short_desc>Missing JSCInlines.h header for non-unified 2.36.2 build</short_desc>
          <delta_ts>2022-05-31 13:26:47 -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 Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=241123</see_also>
          <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 name="Dennis Nezic">dennisn</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1870368</commentid>
    <comment_count>0</comment_count>
    <who name="Dennis Nezic">dennisn</who>
    <bug_when>2022-05-19 07:53:15 -0700</bug_when>
    <thetext>These files seem to be missing  #include &quot;JSCInlines.h&quot;

Source/JavaScriptCore/dfg/DFGCapabilities.cpp
Source/JavaScriptCore/jit/JITDisassembler.cpp
Source/JavaScriptCore/jit/JITPlan.cpp
Source/JavaScriptCore/llint/LLIntEntrypoint.cpp
Source/JavaScriptCore/runtime/FileBasedFuzzerAgentBase.cpp
Source/JavaScriptCore/wasm/js/WebAssemblyFunctionBase.cpp

The compilation/linking errors look like:

Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/dfg/DFGCapabilities.cpp.o: in function `JSC::DFG::capabilityLevel(JSC::CodeBlock*)&apos;:
DFGCapabilities.cpp:(.text+0x4ea): undefined reference to `JSC::JSCell::structure() const</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872183</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-05-26 15:36:46 -0700</bug_when>
    <thetext>(In reply to Dennis Nezic from comment #0)
&gt; These files seem to be missing  #include &quot;JSCInlines.h&quot;
&gt; 
&gt; Source/JavaScriptCore/dfg/DFGCapabilities.cpp
&gt; Source/JavaScriptCore/jit/JITDisassembler.cpp
&gt; Source/JavaScriptCore/jit/JITPlan.cpp
&gt; Source/JavaScriptCore/llint/LLIntEntrypoint.cpp
&gt; Source/JavaScriptCore/runtime/FileBasedFuzzerAgentBase.cpp
&gt; Source/JavaScriptCore/wasm/js/WebAssemblyFunctionBase.cpp
&gt; 
&gt; The compilation/linking errors look like:
&gt; 
&gt; Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/dfg/DFGCapabilities.cpp.
&gt; o: in function `JSC::DFG::capabilityLevel(JSC::CodeBlock*)&apos;:
&gt; DFGCapabilities.cpp:(.text+0x4ea): undefined reference to
&gt; `JSC::JSCell::structure() const

Could you share the CMake invocation you are using? I have tried the
following but have not been able to reproduce the issue:

  cmake -Bbuild -S. -DPORT=GTK -DENABLE_UNIFIED_BUILDS=OFF -GNinja
  ninja -Cbuild

If you could also indicate if you are defining CFLAGS, CXXFLAGS, LDFLAGS,
and/or CPPFLAGS in the environment when running CMake, that may help us
reproduce and fix your issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872546</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-05-28 07:28:02 -0700</bug_when>
    <thetext>FWIW, we just released version 2.36.3 which includes a flurry of
build fixes. You may want to try it instead:

  https://webkitgtk.org/2022/05/28/webkitgtk2.36.3-released.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872641</commentid>
    <comment_count>3</comment_count>
    <who name="Dennis Nezic">dennisn</who>
    <bug_when>2022-05-29 10:52:57 -0700</bug_when>
    <thetext>Same issue with 2.36.3. I&apos;m assuming you tested with DENABLE_UNIFIED_BUILDS=no ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872642</commentid>
    <comment_count>4</comment_count>
    <who name="Dennis Nezic">dennisn</who>
    <bug_when>2022-05-29 10:54:15 -0700</bug_when>
    <thetext>Err, woops, ofc you did. Any tips on how I can figure out which other -DENABLE flag might be causing this? Maybe it&apos;s my -DENABLE_VIDEO=no</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872643</commentid>
    <comment_count>5</comment_count>
    <who name="Dennis Nezic">dennisn</who>
    <bug_when>2022-05-29 11:06:39 -0700</bug_when>
    <thetext>Ie. to clarify / rephrase the question, where is that undefined reference to JSC::JSCell supposed to have been included/defined? Ie. where was it included/defined during YOUR compilation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872905</commentid>
    <comment_count>6</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-05-31 00:28:16 -0700</bug_when>
    <thetext>(In reply to Dennis Nezic from comment #4)
&gt; Err, woops, ofc you did. Any tips on how I can figure out which other
&gt; -DENABLE flag might be causing this? Maybe it&apos;s my -DENABLE_VIDEO=no

It&apos;s quite likely this. Thanks for mentioning it, I will do a test build
with video support disabled and fix any issues found with that configuration.
For the record, we do not officially support building with ENABLE_VIDEO
disabled; but when issues appear with it disabled appear we do try to fix
them in a best-effort basis -- so thanks for reporting the issue!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1872955</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-05-31 06:29:47 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #6)
&gt; For the record, we do not officially support building with ENABLE_VIDEO
&gt; disabled; but when issues appear with it disabled appear we do try to fix
&gt; them in a best-effort basis -- so thanks for reporting the issue!

Bug #241128</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873087</commentid>
    <comment_count>8</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-05-31 12:53:31 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #6)
&gt; (In reply to Dennis Nezic from comment #4)
&gt; &gt; Err, woops, ofc you did. Any tips on how I can figure out which other
&gt; &gt; -DENABLE flag might be causing this? Maybe it&apos;s my -DENABLE_VIDEO=no
&gt; 
&gt; It&apos;s quite likely this. Thanks for mentioning it, I will do a test build
&gt; with video support disabled and fix any issues found with that configuration.
&gt; For the record, we do not officially support building with ENABLE_VIDEO
&gt; disabled; but when issues appear with it disabled appear we do try to fix
&gt; them in a best-effort basis -- so thanks for reporting the issue!

So I tried -DENABLE_VIDEO=OFF and also a different build adding
the -DENABLE_WEB_RTC=OFF option using 2.36.3, but I could not
reproduce your build issue.

Could you please share your full CMake invocation, indicate what
is your target hardware, and whether you are cross-compiling WebKit
or not?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873096</commentid>
    <comment_count>9</comment_count>
    <who name="Dennis Nezic">dennisn</who>
    <bug_when>2022-05-31 13:26:47 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #7)
&gt; (In reply to Adrian Perez from comment #6)
&gt; &gt; For the record, we do not officially support building with ENABLE_VIDEO
&gt; &gt; disabled; but when issues appear with it disabled appear we do try to fix
&gt; &gt; them in a best-effort basis -- so thanks for reporting the issue!
&gt; 
&gt; Bug #241128

Hm. Youtube doesn&apos;t work at all (not even to read/post comments) without ENABLE_VIDEO? https://imgur.com/a/Qznz74j (ie. all the greyed-out boxes.) Sigh.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>