<?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>245621</bug_id>
          
          <creation_ts>2022-09-24 07:55:55 -0700</creation_ts>
          <short_desc>[WPE][GTK] Build error in in ARM64 after 254645@main</short_desc>
          <delta_ts>2022-09-27 15:56:20 -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>WebRTC</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>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1900875</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2022-09-24 07:55:55 -0700</bug_when>
    <thetext>While building WebKitGTK/WPE in ARM64 using LibWebRTC, I get the following build error:

```
FAILED: Source/ThirdParty/libwebrtc/CMakeFiles/webrtc.dir/Source/webrtc/common_audio/fir_filter_sse.cc.o
&lt;CXX&gt;  -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WPE__=1 -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DEXPAT_RELATIVE_PATH -DGETTEXT_PACKAGE=\&quot;WPE\&quot; -DHAVE_CONFIG_H -DHAVE_CONFIG_H=1 -DHAVE_LRINT -DHAVE_LRINTF -DHAVE_NETINET_IN_H -DHAVE_SCTP -DHAVE_STDINT_H -DHAVE_STDLIB_H -DHAVE_UINT64_T -DHAVE_WEBRTC_VIDEO -DHAVE_WEBRTC_VOICE
In file included from ../../../Source/ThirdParty/libwebrtc/Source/webrtc/common_audio/fir_filter_sse.cc:15:
In file included from /usr/lib/llvm-12/lib/clang/12.0.0/include/xmmintrin.h:13:
/usr/lib/llvm-12/lib/clang/12.0.0/include/mmintrin.h:33:5: error: use of undeclared identifier &apos;__builtin_ia32_emms&apos;; did you mean &apos;__builtin_isless&apos;?
    __builtin_ia32_emms();
    ^
/usr/lib/llvm-12/lib/clang/12.0.0/include/mmintrin.h:33:5: note: &apos;__builtin_isless&apos; declared here
/usr/lib/llvm-12/lib/clang/12.0.0/include/mmintrin.h:33:25: error: too few arguments to function call, expected 2, have 0
    __builtin_ia32_emms();
    ~~~~~~~~~~~~~~~~~~~~^
/usr/lib/llvm-12/lib/clang/12.0.0/include/mmintrin.h:50:19: error: use of undeclared identifier &apos;__builtin_ia32_vec_init_v2si&apos;
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
```

It seems the build is using x86 SSE instead of ARM64 NEON.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900880</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2022-09-24 08:03:16 -0700</bug_when>
    <thetext>Pull request: https://github.com/webkit/webkit/pull/4663</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901630</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-27 15:55:09 -0700</bug_when>
    <thetext>Committed 254931@main (e89fe2bc8167): &lt;https://commits.webkit.org/254931@main&gt;

Reviewed commits have been landed. Closing PR #4663 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901631</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-27 15:56:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/100480564&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>