<?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>265218</bug_id>
          
          <creation_ts>2023-11-21 14:28:08 -0800</creation_ts>
          <short_desc>REGRESSION(270651@main): Broke cloop build: LowLevelInterpreter.asm:2778 in call to entry: Could not find macro entry (MacroError)</short_desc>
          <delta_ts>2023-11-30 10:02:59 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>
          <dependson>265510</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>csaavedra</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1994247</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-11-21 14:28:08 -0800</bug_when>
    <thetext>This is sort of a regression from 270651@main. When building for x86_64 with -DENABLE_JIT=OFF -DENABLE_C_LOOP=ON -DENABLE_SAMPLING_PROFILER=OFF we hit this error:

[266/494] Generating ../../JavaScriptCore/DerivedSources/LLIntDesiredOffsets.h
FAILED: JavaScriptCore/DerivedSources/LLIntDesiredOffsets.h /home/mcatanzaro/Projects/WebKit/WebKitBuild/JSCOnly/JavaScriptCore/DerivedSources/LLIntDesiredOffsets.h 
cd /home/mcatanzaro/Projects/WebKit/WebKitBuild/JSCOnly/Source/JavaScriptCore &amp;&amp; /usr/bin/ruby /home/mcatanzaro/Projects/WebKit/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb -I/home/mcatanzaro/Projects/WebKit/WebKitBuild/JSCOnly/JavaScriptCore/DerivedSources/ /home/mcatanzaro/Projects/WebKit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm /home/mcatanzaro/Projects/WebKit/WebKitBuild/JSCOnly/bin/LLIntSettingsExtractor /home/mcatanzaro/Projects/WebKit/WebKitBuild/JSCOnly/JavaScriptCore/DerivedSources/LLIntDesiredOffsets.h C_LOOP normal
LowLevelInterpreter.asm:2778 in call to entry: Could not find macro entry (MacroError)

Problem is here:

entry(wasm, macro()
    include InitWasm
end)

The entry macro is defined only when C_LOOP and C_LOOP_WIN are both disabled, but this new code in the WEBASSEMBLY condition uses it unconditionally. Should WebAssembly be disabled when C_LOOP is enabled, or is there another possible fix?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995401</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-28 14:29:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/118899367&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995456</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-11-28 16:56:17 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21029</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995491</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-28 18:13:52 -0800</bug_when>
    <thetext>Committed 271252@main (49e6e8770b50): &lt;https://commits.webkit.org/271252@main&gt;

Reviewed commits have been landed. Closing PR #21029 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995551</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2023-11-29 01:27:00 -0800</bug_when>
    <thetext>Re-opened since this is blocked by bug 265510</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995612</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-11-29 09:02:12 -0800</bug_when>
    <thetext>Hey Claudio, can you share what went wrong here please? I didn&apos;t notice any problems when I tested a clean build, but no doubt something is wrong in some configuration....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995617</commentid>
    <comment_count>6</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2023-11-29 09:18:14 -0800</bug_when>
    <thetext>Some of the build errors:

1
2
/app/webkit/Source/JavaScriptCore/b3/B3WasmBoundsCheckValue.cpp: In constructor &apos;JSC::B3::WasmBoundsCheckValue::WasmBoundsCheckValue(JSC::B3::Origin, JSC::B3::Value*, unsigned int, size_t)&apos;:
/app/webkit/Source/JavaScriptCore/b3/B3WasmBoundsCheckValue.cpp:53:103: error: &apos;fastMappedRedzoneBytes&apos; is not a member of &apos;JSC::Wasm::Memory&apos;

In file included from /app/webkit/WebKitBuild/GTK/Release/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-23a5fd0e-9.cpp:5:
/app/webkit/Source/JavaScriptCore/b3/B3Validate.cpp: In member function &apos;void JSC::B3::{anonymous}::Validater::run()&apos;:
/app/webkit/Source/JavaScriptCore/b3/B3Validate.cpp:457:58: error: &apos;simdScalarType&apos; is not a member of &apos;JSC::Wasm&apos;
/app/webkit/Source/JavaScriptCore/b3/B3Validate.cpp:457:43: error: &apos;toB3Type&apos; was not declared in this scope
/app/webkit/Source/JavaScriptCore/b3/B3Validate.cpp:465:68: error: &apos;simdScalarType&apos; is not a member of &apos;JSC::Wasm&apos;
/app/webkit/Source/JavaScriptCore/b3/B3Validate.cpp:465:53: error: &apos;toB3Type&apos; was not declared in this scope
/app/webkit/Source/JavaScriptCore/b3/B3Validate.cpp:487:68: error: &apos;simdScalarType&apos; is not a member of &apos;JSC::Wasm&apos;
/app/webkit/Source/JavaScriptCore/b3/B3Validate.cpp:487:53: error: &apos;toB3Type&apos; was not declared in this scope


According to Carlos García this got defined:

#define ENABLE_WEBASSEMBLY 0

And that&apos;s causing the breakage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995744</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-11-29 15:42:56 -0800</bug_when>
    <thetext>I&apos;m afraid I changed the default value of the ENABLE_WEBASSEMBLY setting to &quot;NOT&quot; when I wanted it to be &quot;NOT ${ENABLE_C_LOOP_DEFAULT}&quot;. Don had warned me that it probably wouldn&apos;t work, but I improperly convinced myself that it was fine.

Safe merge queue would have caught this before it landed. Hopefully we can eventually make that work reliably....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995746</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-11-29 15:45:52 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/21078</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995856</commentid>
    <comment_count>9</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2023-11-30 04:39:03 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #7)

&gt; 
&gt; Safe merge queue would have caught this before it landed. Hopefully we can
&gt; eventually make that work reliably....

Maybe not, at least all linux build bots were green even with this patch, so maybe it would not have been caught. That made it tricky to find the culprit too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995920</commentid>
    <comment_count>10</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-30 10:02:57 -0800</bug_when>
    <thetext>Committed 271347@main (e2a9ebe5b7da): &lt;https://commits.webkit.org/271347@main&gt;

Reviewed commits have been landed. Closing PR #21078 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>