Bug 245621 - [WPE][GTK] Build error in in ARM64 after 254645@main
Summary: [WPE][GTK] Build error in in ARM64 after 254645@main
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Diego Pino
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-24 07:55 PDT by Diego Pino
Modified: 2022-09-27 15:56 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Pino 2022-09-24 07:55:55 PDT
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
<CXX>  -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WPE__=1 -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DEXPAT_RELATIVE_PATH -DGETTEXT_PACKAGE=\"WPE\" -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 '__builtin_ia32_emms'; did you mean '__builtin_isless'?
    __builtin_ia32_emms();
    ^
/usr/lib/llvm-12/lib/clang/12.0.0/include/mmintrin.h:33:5: note: '__builtin_isless' 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 '__builtin_ia32_vec_init_v2si'
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
```

It seems the build is using x86 SSE instead of ARM64 NEON.
Comment 1 Diego Pino 2022-09-24 08:03:16 PDT
Pull request: https://github.com/webkit/webkit/pull/4663
Comment 2 EWS 2022-09-27 15:55:09 PDT
Committed 254931@main (e89fe2bc8167): <https://commits.webkit.org/254931@main>

Reviewed commits have been landed. Closing PR #4663 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-09-27 15:56:20 PDT
<rdar://problem/100480564>