<?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>270689</bug_id>
          
          <creation_ts>2024-03-08 03:02:36 -0800</creation_ts>
          <short_desc>[WPE] [LibWebRTC] Fix build for ARM 32-bit</short_desc>
          <delta_ts>2024-03-11 11:38:12 -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>New Bugs</component>
          <version>WebKit Nightly 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="Diego Pino">dpino</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2019571</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2024-03-08 03:02:36 -0800</bug_when>
    <thetext>When building WPE with build flag `--cmakeargs=-DUSE_GSTREAMER_WEBRTC=FALSE` (enables LibWebRTC) on ARM 32-bit, I got the following build error:

```
In file included from /home/dpino/WPEWebKit/Source/ThirdParty/libwebrtc/Source/third_party/pffft/src/pffft.c:155:
/home/dpino/WPEWebKit/Source/ThirdParty/libwebrtc/Source/third_party/pffft/src/pffft.c: In function ‘passf2_ps’:
/usr/lib/gcc/arm-linux-gnueabihf/11/include/arm_neon.h:1957:1: error: inlining failed in call to ‘always_inline’ ‘vsubq_f32’: target specific option mismatch
 1957 | vsubq_f32 (float32x4_t a, float32x4_t b)
```

This build error also happens in other files such as:

Source/webrtc/modules/audio_processing/aec3/adaptive_fir_filter.cc
Source/webrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl.cc
Source/webrtc/modules/audio_processing/aec3/comfort_noise_generator.cc
Source/webrtc/modules/audio_processing/aec3/matched_filter.cc
Source/webrtc/modules/audio_processing/aec3/suppression_filter.cc
Source/webrtc/modules/audio_processing/aec3/suppression_gain.cc

These files need to be explicitly set with build flags &quot;-mfpu=neon -mfloat-abi=hard&quot;. See:

- Source/ThirdParty/libwebrtc/Source/webrtc/modules/audio_processing/aec3/BUILD.gn
- Source/ThirdParty/libwebrtc/Source/third_party/pffft/README.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019576</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2024-03-08 03:08:54 -0800</bug_when>
    <thetext>Pull request: https://github.com/webkit/webkit/pull/25620</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2020189</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-03-11 11:37:54 -0700</bug_when>
    <thetext>Committed 275915@main (565848432d81): &lt;https://commits.webkit.org/275915@main&gt;

Reviewed commits have been landed. Closing PR #25620 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2020190</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-03-11 11:38:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/124399531&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>