[Webkit-unassigned] [Bug 236829] Can't run WebKit (local build & nightly build) with Safari on M1 Max

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 21 22:06:17 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=236829

--- Comment #7 from Lingyun Cai <clyun2002 at 126.com> ---
Thanks for the update.

I've tried to execute run-webkit-archive script in Webkit Build Archive r290089 with below env set, and it succeeded on M1 MBP but failed on M1 Max MBP to load the frameworks/libraries in this package.
DYLD_FRAMEWORK_PATH=$PWD DYLD_LIBRARY_PATH=$PWD __XPC_DYLD_FRAMEWORK_PATH=$PWD __XPC_DYLD_LIBRARY_PATH=$PWD WEBKIT_UNSET_DYLD_FRAMEWORK_PATH=YES DYLD_PRINT_LIBRARIES=YES DYLD_PRINT_SEARCHING=YES 

It might be related with the error "fat file, but missing compatible architecture (have 'x86_64,arm64', need 'arm64e')", but I'm not sure about these. Details as below.

M1 - succeeded
Log (take JavaScriptCore.framework for example, loading framework from the package, no 'fat file' error):
...
dyld[8686]: find path "/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore"
dyld[8686]:   possible path(DYLD_FRAMEWORK/LIBRARY_PATH): "/Users/lingyun/Downloads/290089/Release/JavaScriptCore.framework/Versions/A/JavaScriptCore"
dyld[8686]:   found: dylib-from-disk-to-override-cache: "/Users/lingyun/Downloads/290089/Release/JavaScriptCore.framework/Versions/A/JavaScriptCore"
dyld[8686]: <A791C970-A223-358C-9660-39E0E28C5F65> /Users/lingyun/Downloads/290089/Release/JavaScriptCore.framework/Versions/A/JavaScriptCore
...

Activity monitor (partial, only shows the directory related with frameworks/libraries):
cwd
/Users/lingyun/Downloads/290089/Release/com.apple.WebKit.WebContent.xpc
txt
/Users/lingyun/Downloads/290089/Release/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent.Development
txt
/Users/lingyun/Downloads/290089/Release/WebInspectorUI.framework/Versions/A/WebInspectorUI
txt
/usr/lib/dyld
txt
/Users/lingyun/Downloads/290089/Release/libANGLE-shared.dylib
...
txt
/Users/lingyun/Downloads/290089/Release/WebKitLegacy.framework/Versions/A/WebKitLegacy
...
txt
/Users/lingyun/Downloads/290089/Release/libwebrtc.dylib
txt
/System/Library/Fonts/SFNS.ttf
txt
/Users/lingyun/Downloads/290089/Release/WebKit.framework/Versions/A/WebKit
txt
/Users/lingyun/Downloads/290089/Release/JavaScriptCore.framework/Versions/A/JavaScriptCore
...
txt
/Users/lingyun/Downloads/290089/Release/WebCore.framework/Versions/A/WebCore

-------------------------------------------------------------------------------

M1 Max - failed
Log (loading framework from system default dir, 'fat file' error occurred):
...
dyld[1499]: find path "/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore"
dyld[1499]:   possible path(DYLD_FRAMEWORK/LIBRARY_PATH): "/Users/lingyun/Downloads/290089/Release/JavaScriptCore.framework/Versions/A/JavaScriptCore"
dyld[1499]:   found: dylib-from-disk-to-override-cache: "/Users/lingyun/Downloads/290089/Release/JavaScriptCore.framework/Versions/A/JavaScriptCore"
dyld[1499]:   found: dylib-from-disk-to-override-cache-error: "/Users/lingyun/Downloads/290089/Release/JavaScriptCore.framework/Versions/A/JavaScriptCore" => "fat file, but missing compatible architecture (have 'x86_64,arm64', need 'arm64e')"
dyld[1499]:   possible path(original path): "/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore"
dyld[1499]:   found: dylib-from-cache: (0x01F1) "/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore"
dyld[1499]: <258C04CC-8C23-3C5D-BC2D-5D64DBA3C81C> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
...

Activity monitor (partial, only shows the directory related with frameworks/libraries):
cwd
/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc
txt
/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc/Contents/MacOS/com.apple.WebKit.WebContent
...

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220222/d9dce59a/attachment.htm>


More information about the webkit-unassigned mailing list