Bug 274032

Summary: [GTK] [2.45.1] Fails to build on big-endian machines due to lack of support in Skia
Product: WebKit Reporter: Alberto Garcia <berto>
Component: WebKitGTKAssignee: Diego Pino <dpino>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, mcatanzaro, philn
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Linux   

Alberto Garcia
Reported 2024-05-11 01:51:10 PDT
https://github.com/WebKit/WebKit/blob/webkitgtk-2.45.1/Source/ThirdParty/skia/include/private/base/SkLoadUserConfig.h#L56 #if defined(SK_CPU_BENDIAN) && !defined(I_ACKNOWLEDGE_SKIA_DOES_NOT_SUPPORT_BIG_ENDIAN) #error "The Skia team is not endian-savvy enough to support big-endian CPUs." #error "If you still want to use Skia," #error "please define I_ACKNOWLEDGE_SKIA_DOES_NOT_SUPPORT_BIG_ENDIAN." #endif I confirm that it builds on s390x at least if I use -DUSE_SKIA=OFF so we should autodetect that situation.
Attachments
Michael Catanzaro
Comment 1 2024-05-11 05:11:00 PDT
EWS
Comment 2 2024-05-14 00:36:18 PDT
Committed 278740@main (7a1468c7a3f3): <https://commits.webkit.org/278740@main> Reviewed commits have been landed. Closing PR #28429 and removing active labels.
Philippe Normand
Comment 3 2024-05-14 05:13:06 PDT
This broke builds where CMake is too old (3.16)... CMake Error at Source/cmake/OptionsWPE.cmake:84 (if): if given arguments: "3.16.9" "VERSION_LESS" "3.20" "OR" "STREQUAL" "LITTLE_ENDIAN" Unknown arguments specified
Michael Catanzaro
Comment 4 2024-05-14 06:04:02 PDT
Drat, I forgot we have to do it in two separate conditionals. I'll land a follow-up.
Diego Pino
Comment 5 2024-05-14 09:11:39 PDT
Diego Pino
Comment 6 2024-05-14 09:14:00 PDT
Many post-commit bots are currently failing and there's another build error that needs to be fixed. https://build.webkit.org/#/builders/992
EWS
Comment 7 2024-05-14 09:16:54 PDT
Committed 278764@main (9c1f32d066a4): <https://commits.webkit.org/278764@main> Reviewed commits have been landed. Closing PR #28540 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.