<?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>240378</bug_id>
          
          <creation_ts>2022-05-13 04:48:42 -0700</creation_ts>
          <short_desc>Non-unified build broken in debug mode</short_desc>
          <delta_ts>2022-05-13 15:04:14 -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>Tools / Tests</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>dpino</cc>
    
    <cc>lmoura</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1868720</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-05-13 04:48:42 -0700</bug_when>
    <thetext>/app/webkit/Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp: In static member function ‘static void JSC::StructureMemoryManager::commitBlock(void*)’:
/app/webkit/Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp:123:49: error: ‘PROT_READ’ was not declared in this scope
  123 |         mprotect(block, MarkedBlock::blockSize, PROT_READ | PROT_WRITE);
      |                                                 ^~~~~~~~~
/app/webkit/Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp:123:61: error: ‘PROT_WRITE’ was not declared in this scope
  123 |         mprotect(block, MarkedBlock::blockSize, PROT_READ | PROT_WRITE);
      |                                                             ^~~~~~~~~~
/app/webkit/Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp:123:9: error: ‘mprotect’ was not declared in this scope
  123 |         mprotect(block, MarkedBlock::blockSize, PROT_READ | PROT_WRITE);
      |         ^~~~~~~~
/app/webkit/Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp: In static member function ‘static void JSC::StructureMemoryManager::decommitBlock(void*)’:
/app/webkit/Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp:135:49: error: ‘PROT_NONE’ was not declared in this scope; did you mean ‘U_NT_NONE’?
  135 |         mprotect(block, MarkedBlock::blockSize, PROT_NONE);
      |                                                 ^~~~~~~~~
      |                                                 U_NT_NONE
/app/webkit/Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp:135:9: error: ‘mprotect’ was not declared in this scope
  135 |         mprotect(block, MarkedBlock::blockSize, PROT_NONE);
      |         ^~~~~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868721</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-05-13 04:49:33 -0700</bug_when>
    <thetext>We need to include &lt;sys/mman.h&gt; for OS(UNIX).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868724</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-05-13 04:57:51 -0700</bug_when>
    <thetext>Some more build issues with build-webkit --gtk --debug:

/app/webkit/Source/WebCore/contentextensions/ContentExtensionCompiler.cpp: In function ‘std::error_code WebCore::ContentExtensions::compileRuleList(WebCore::ContentExtensions::ContentExtensionCompilationClient&amp;, WTF::String&amp;&amp;, WTF::Vector&lt;WebCore::ContentExtensions::ContentExtensionRule&gt;&amp;&amp;)’:
/app/webkit/Source/WebCore/contentextensions/ContentExtensionCompiler.cpp:274:76: error: ‘crossThreadCopy’ was not declared in this scope
  274 |     callOnMainThread([ruleJSON = ruleJSON.isolatedCopy(), parsedRuleList = crossThreadCopy(parsedRuleList)] {
      |                                                                            ^~~~~~~~~~~~~~~
In file included from /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/StdLibExtras.h:33,
                 from /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/FastMalloc.h:26,
                 from /app/webkit/Source/WebCore/config.h:56,
                 from /app/webkit/Source/WebCore/contentextensions/ContentExtensionCompiler.cpp:26:
/app/webkit/Source/WebCore/contentextensions/ContentExtensionCompiler.cpp: In lambda function:
/app/webkit/Source/WebCore/contentextensions/ContentExtensionCompiler.cpp:275:51: error: ‘parsedRuleList’ is not captured
  275 |         ASSERT(parseRuleList(ruleJSON).value() == parsedRuleList);
      |                                                   ^~~~~~~~~~~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868733</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-05-13 05:51:13 -0700</bug_when>
    <thetext>One more issue:

In file included from /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/StdLibExtras.h:33,
                 from /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/FastMalloc.h:26,                         
                 from /app/webkit/Source/WebCore/config.h:56,                                                                                                  
                 from /app/webkit/Source/WebCore/workers/service/ServiceWorkerClients.cpp:26:
/app/webkit/Source/WebCore/workers/service/ServiceWorkerClients.cpp: In member function ‘void WebCore::ServiceWorkerClients::openWindow(WebCore::ScriptExecutio
nContext&amp;, const WTF::String&amp;, WTF::Ref&lt;WebCore::DeferredPromise&gt;&amp;&amp;)’:
/app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/Assertions.h:174:56: error: ‘LOG_CHANNEL_PREFIXServiceWorker’ was not declared in this scope
  174 | #define LOG_CHANNEL(name) JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, name)
      |                                                        ^~~~~~~~~~~~~~~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868751</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-05-13 07:33:03 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/608</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868877</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-13 15:03:31 -0700</bug_when>
    <thetext>Committed r294177 (250544@main): &lt;https://commits.webkit.org/250544@main&gt;

Reviewed commits have been landed. Closing PR #608 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868880</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-13 15:04:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/93269326&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>