<?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>312599</bug_id>
          
          <creation_ts>2026-04-17 13:11:24 -0700</creation_ts>
          <short_desc>[GTK] [2.53.1] Fails to build on i386: &quot;libpas, mimalloc, or system malloc needs to be specified&quot;</short_desc>
          <delta_ts>2026-04-17 16:36:55 -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>Other</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alberto Garcia">berto</reporter>
          <assigned_to name="Alberto Garcia">berto</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2201633</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2026-04-17 13:11:24 -0700</bug_when>
    <thetext>What the title says.

I wonder if we should do something like this:

--- a/Source/cmake/WebKitFeatures.cmake
+++ b/Source/cmake/WebKitFeatures.cmake
@@ -120,7 +120,7 @@ macro(WEBKIT_OPTION_BEGIN)
     else ()
         set(ENABLE_JIT_DEFAULT OFF)
         set(ENABLE_FTL_DEFAULT OFF)
-        set(USE_SYSTEM_MALLOC_DEFAULT OFF)
+        set(USE_SYSTEM_MALLOC_DEFAULT ON)
         set(USE_MIMALLOC_DEFAULT OFF)
         set(ENABLE_C_LOOP_DEFAULT ON)
         set(ENABLE_SAMPLING_PROFILER_DEFAULT OFF)

Or fix the check in bmalloc/BPlatform.h:

#if defined(USE_SYSTEM_MALLOC) &amp;&amp; USE_SYSTEM_MALLOC
#define BUSE_SYSTEM_MALLOC 1
#else
#if BOS(DARWIN) &amp;&amp; !BCPU(ADDRESS64)
#define BUSE_SYSTEM_MALLOC 1
#else
#define BUSE_SYSTEM_MALLOC 0
#endif
#endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201647</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2026-04-17 13:51:51 -0700</bug_when>
    <thetext>Uh, does bmalloc not support ix86 anymore?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201667</commentid>
    <comment_count>2</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2026-04-17 15:05:18 -0700</bug_when>
    <thetext>I think that commit https://commits.webkit.org/305908@main changed that default in the else() branch of WebKitFeatures.cmake</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201676</commentid>
    <comment_count>3</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2026-04-17 15:17:36 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/63005</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201700</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-04-17 16:36:52 -0700</bug_when>
    <thetext>Committed 311494@main (def81584975d): &lt;https://commits.webkit.org/311494@main&gt;

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

    </bug>

</bugzilla>