Bug 315740
| Summary: | Build failure on CMake + macOS 26.4: "incomplete type 'WebKit::TextExtractionAssertionScope'" | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Elliott Williams <emw> |
| Component: | Tools / Tests | Assignee: | Elliott Williams <emw> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Elliott Williams
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
<rdar://problem/178125965>
Elliott Williams
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
Committed 314024@main (707ff4ffb301): <https://commits.webkit.org/314024@main>
Reviewed commits have been landed. Closing PR #65871 and removing active labels.