Created attachment 450313 [details] terminal screenshot Hi, I am try to build webkit on macOS 12.1. I xcode 13.2.1 installed along command line tools for 13.2; I cloned webkit from https://github.com/WebKit/WebKit and using branch safari-612.4.9.1-branch; I used terminal to build webkit with the command `Tools/Scripts/build-webkit --debug` also cleaned before build. But got below error after some time, CompileC /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-normal/x86_64/UnifiedSource42.o /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug/DerivedSources/WebCore/unified-sources/UnifiedSource42.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler cd /Volumes/Backup/GitHub/Browser/Desktop/WebKit/Source/WebCore export LANG=en_US.US-ASCII /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos12.0 -fmessage-length=170 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu++1z -stdlib=libc++ -gmodules -Wno-trigraphs -fno-exceptions -fno-rtti -fno-sanitize=vptr -fpascal-strings -O0 -fno-common -Werror -Wno-missing-field-initializers -Wmissing-prototypes -Wunreachable-code -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -DBUILDING_WEBKIT -DGL_SILENCE_DEPRECATION=1 -DGLES_SILENCE_DEPRECATION=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -iquote /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/WebCore-generated-files.hmap -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/WebCore-own-target-headers.hmap -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/WebCore-all-target-headers.hmap -iquote /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/WebCore-project-headers.hmap -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug/include -IPAL -IForwardingHeaders -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/libxslt -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include/libxml2 -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug/DerivedSources/WebCore -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug/usr/local/include -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug/usr/local/include/WebKitAdditions -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/local/include/WebKitAdditions -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug/usr/local/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/local/include -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug/usr/local/include/webrtc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/local/include/webrtc -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug/usr/local/include/webrtc/sdk/objc/Framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/local/include/webrtc/sdk/objc/Framework/Headers -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/Source/WebCore -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/DerivedSources-normal/x86_64 -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/DerivedSources/x86_64 -I/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/DerivedSources -Wall -Wextra -Wcast-qual -Wchar-subscripts -Wconditional-uninitialized -Wextra-tokens -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare -Wimplicit-fallthrough -Wvla -Wno-unknown-warning-option -Wliteral-conversion -Wthread-safety -F/Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/PrivateFrameworks -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/System.framework/PrivateHeaders -include /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/PrecompiledHeaders/WebCorePrefix-cbwbysavgfnmbebunvkcaiwbqosm/WebCorePrefix.h -MMD -MT dependencies -MF /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-normal/x86_64/UnifiedSource42.d --serialize-diagnostics /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-normal/x86_64/UnifiedSource42.dia -c /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug/DerivedSources/WebCore/unified-sources/UnifiedSource42.cpp -o /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-normal/x86_64/UnifiedSource42.o ** BUILD FAILED ** The following build commands failed: CompileC /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-normal/x86_64/UnifiedSource34-mm.o /Volumes/Backup/GitHub/Browser/Desktop/WebKit/WebKitBuild/Debug/DerivedSources/WebCore/unified-sources/UnifiedSource34-mm.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) I don't know what is the issue. Can you please help me to resolve this error? Thank you.
It could quite easily be the case that Safari-612.4.9.1-branch doesn't compile in WebKit without Apple-internal stuff; there's no CI that keeps the branches actually compiling publicly. Does the main branch compile for you? If it does, then it's almost certainly just that branch. Maybe someone else knows more, though.
(In reply to Sam Sneddon [:gsnedders] from comment #1) > It could quite easily be the case that Safari-612.4.9.1-branch doesn't > compile in WebKit without Apple-internal stuff; there's no CI that keeps the > branches actually compiling publicly. Does the main branch compile for you? > If it does, then it's almost certainly just that branch. > > Maybe someone else knows more, though. Yes you are correct. main branch is compiling for me. Thank you for the quick response. I will go with main branch.