WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
315740
Build failure on CMake + macOS 26.4: "incomplete type 'WebKit::TextExtractionAssertionScope'"
https://bugs.webkit.org/show_bug.cgi?id=315740
Summary
Build failure on CMake + macOS 26.4: "incomplete type 'WebKit::TextExtraction...
Elliott Williams
Reported
2026-05-28 01:17:25 PDT
Seems like we're missing an import that is needed when invoking swift to generate WebKit-Swift-CPP.h
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-05-28 01:17:32 PDT
<
rdar://problem/178125965
>
Elliott Williams
Comment 2
2026-05-28 01:18:54 PDT
Full error: ``` /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/usr/include/c++/v1/__memory/unique_ptr.h:75:19: error: invalid application of 'sizeof' to an incomplete type 'WebKit::TextExtractionAssertionScope' 73 | 74 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 void operator()(_Tp* __ptr) const _NOEXCEPT { 75 | static_assert(sizeof(_Tp) >= 0, "cannot delete an incomplete type"); | `- error: invalid application of 'sizeof' to an incomplete type 'WebKit::TextExtractionAssertionScope' 76 | static_assert(!is_void<_Tp>::value, "cannot delete an incomplete type"); 77 | delete __ptr; : 257 | #endif 258 | 259 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 ~unique_ptr() { reset(); } | `- note: in instantiation of member function 'std::unique_ptr<WebKit::TextExtractionAssertionScope>::reset' requested here 260 | 261 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT { : 288 | __ptr_ = __p; 289 | if (__tmp) 290 | __deleter_(__tmp); | `- note: in instantiation of member function 'std::default_delete<WebKit::TextExtractionAssertionScope>::operator()' requested here 291 | } 292 | /tmp/build/WTF/Headers/wtf/UniqueRef.h:67:7: note: in instantiation of member function 'std::unique_ptr<WebKit::TextExtractionAssertionScope>::~unique_ptr' requested here 65 | 66 | template<typename T> 67 | class UniqueRef { | `- note: in instantiation of member function 'std::unique_ptr<WebKit::TextExtractionAssertionScope>::~unique_ptr' requested here 68 | public: 69 | template <typename U> <unknown>:0: note: in implicit move constructor for 'WTF::UniqueRef<WebKit::TextExtractionAssertionScope>' first required here /Users/emw/src/OpenSource/Source/WebKit/UIProcess/WebPageProxy.h:543:7: note: forward declaration of 'WebKit::TextExtractionAssertionScope' 541 | class SuspendedPageProxy; 542 | class SystemPreviewController; 543 | class TextExtractionAssertionScope; | `- note: forward declaration of 'WebKit::TextExtractionAssertionScope' 544 | class UserData; 545 | class UserMediaPermissionRequestManagerProxy; ninja: build stopped: subcommand failed. ``` Build commands: cmake -S /Users/emw/src/OpenSource -B /tmp/build --preset mac-dev-debug && ninja -C /tmp/build
EWS
Comment 3
2026-05-28 02:17:47 PDT
Committed
314024@main
(707ff4ffb301): <
https://commits.webkit.org/314024@main
> Reviewed commits have been landed. Closing PR #65871 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug