RESOLVED FIXED317875
[CMake] Build fails with ObjC type redefinition errors with multiple WebKit checkouts
https://bugs.webkit.org/show_bug.cgi?id=317875
Summary [CMake] Build fails with ObjC type redefinition errors with multiple WebKit c...
Qianlang Chen
Reported 2026-06-25 14:34:27 PDT
1. Clone WebKit into two separate directories, e.g. ~/WebKitA and ~/WebKitB. 2. Build ~/WebKitA with the cmake preset (e.g. `cmake --preset mac-dev-release && cmake --build --preset mac-dev-release`). 3. Build ~/WebKitB the same way, which may fail with: RTCVideoFrame.h: error: redefinition of 'RTCVideoRotation' /Users/.../WebKitA/OpenSource/.../RTCVideoFrame.h: note: previous definition is here Where the paths point at the other checkout, not the one being built. 4. Deleting ~/WebKitB's cmake build directory and rebuilding does not help because ccache intercepts the PCH compilation step before the compiler even runs, returning the cached result every time.
Attachments
Qianlang Chen
Comment 1 2026-06-25 14:47:04 PDT
EWS
Comment 2 2026-06-25 16:05:19 PDT
Committed 315854@main (e4b1a3ecdf51): <https://commits.webkit.org/315854@main> Reviewed commits have been landed. Closing PR #67893 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-06-25 16:06:15 PDT
Note You need to log in before you can comment on or make changes to this bug.