Bug 300146
| Summary: | WebGPU Swift build fails on iOS 26 simulator | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Elliott Williams <emw> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | mwyrzykowski, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | iOS 26 | ||
| Bug Depends on: | 300148 | ||
| Bug Blocks: | |||
Elliott Williams
I'm having trouble building using the public iOS 26 SDK, with `build-webkit --ios-device --release`. It fails inside WebGPU for module reasons:
```
/Users/emw/src/public/wk2/WebKitBuild/Release-iphonesimulator/SDKAdditions/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:54:1: error: import of C++ module 'OpenGLES.gltypes' appears within extern "C" language linkage specification
#include <OpenGLES/gltypes.h>
^
/Users/emw/src/public/wk2/WebKitBuild/Release-iphonesimulator/SDKAdditions/System/Library/Frameworks/OpenGLES.framework/Headers/ES2/gl.h:8:1: note: extern "C" language linkage specification begins here
extern "C" {
^
/Users/emw/src/public/wk2/Source/WebGPU/WebGPU/Device.h:35:9: note: while building module 'CoreVideo' imported from /Users/emw/src/public/wk2/Source/WebGPU/WebGPU/Device.h:35:
#import <CoreVideo/CVMetalTextureCache.h>
```
Not sure what the underlying cause is yet. One thing that's different about OpenGLES in the iOS Simulator build compared to the device build is that it's not present in the simulator SDK, so we have to copy its headers out of the device SDK.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Elliott Williams
Mike says that it may make more sense to completely disable WebGPU from building for simulator, since it's not actually supported or used at runtime.
Radar WebKit Bug Importer
<rdar://problem/162398835>
Mike Wyrzykowski
Looks like this is resolved by an OpenGLES change