NEW 277881
[CMake] Unable to compile JavaScriptCore shell after bug 277383 landed
https://bugs.webkit.org/show_bug.cgi?id=277881
Summary [CMake] Unable to compile JavaScriptCore shell after bug 277383 landed
Gary Kwong [:gkw] [:nth10sd]
Reported 2024-08-09 13:27:28 PDT
``` [ 55%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/posix/CPUTimePOSIX.cpp.o [ 55%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/posix/FileSystemPOSIX.cpp.o [ 55%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/unix/UniStdExtrasUnix.cpp.o [ 55%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/cocoa/MemoryFootprintCocoa.cpp.o [ 55%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/generic/MemoryPressureHandlerGeneric.cpp.o [ 55%] Building C object Source/WTF/wtf/CMakeFiles/WTF.dir/__/__/__/WTF/DerivedSources/mach_excServer.c.o [ 55%] Building C object Source/WTF/wtf/CMakeFiles/WTF.dir/__/__/__/WTF/DerivedSources/mach_excUser.c.o [ 55%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/generic/RunLoopGeneric.cpp.o [ 55%] Built target WTF [ 55%] Generating ../../JavaScriptCore/PrivateHeaders/JavaScriptCore/Bytecodes.h [ 55%] Generating ../../JavaScriptCore/DerivedSources/LLIntDesiredSettings.h [ 55%] Building CXX object Source/JavaScriptCore/CMakeFiles/LLIntSettingsExtractor.dir/llint/LLIntSettingsExtractor.cpp.o [ 55%] Linking CXX executable ../../bin/LLIntSettingsExtractor Undefined symbols for architecture arm64: "_OBJC_CLASS_$_NSBundle", referenced from: in ProcessCheck.mm.o "_OBJC_CLASS_$_NSProcessInfo", referenced from: in ProcessCheck.mm.o "_objc_msgSend", referenced from: in objc-stubs-file ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [bin/LLIntSettingsExtractor] Error 1 make[2]: *** [Source/JavaScriptCore/CMakeFiles/LLIntSettingsExtractor.dir/all] Error 2 make[1]: *** [Source/JavaScriptCore/shell/CMakeFiles/jsc.dir/rule] Error 2 make: *** [jsc] Error 2 ``` I am unable to compile WebKit rev 16f89907d5e9 after this rev 16f89907d5e9 landed, using the following command: `./Tools/Scripts/build-jsc --jsc-only --debug --cmakeargs="-DCMAKE_C_COMPILER='/usr/bin/clang' -DCMAKE_CXX_COMPILER='/usr/bin/clang++'"` $ clang --version Apple clang version 15.0.0 (clang-1500.3.9.4) Target: arm64-apple-darwin23.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin $ sw_vers ProductName: macOS ProductVersion: 14.5 BuildVersion: 23F79
Attachments
Gary Kwong [:gkw] [:nth10sd]
Comment 1 2024-08-09 13:29:22 PDT
Michael, is bug 277383 a likely regressor?
Gary Kwong [:gkw] [:nth10sd]
Comment 2 2024-08-09 13:31:29 PDT
The immediate parent, webkit rev 718f9c8cd131, seems to compile just fine. https://github.com/WebKit/WebKit/commit/718f9c8cd131eec824d5b6c1bb3bd3c5365b5d47
Gary Kwong [:gkw] [:nth10sd]
Comment 3 2024-08-09 23:47:59 PDT
The compile error on a x86_64 macOS seems to be: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_NSBundle", referenced from: in ProcessCheck.mm.o "_OBJC_CLASS_$_NSProcessInfo", referenced from: in ProcessCheck.mm.o "_objc_msgSend", referenced from: bmalloc::ProcessNames::asCString()::'lambda'()::operator()() const in ProcessCheck.mm.o bmalloc::ProcessNames::appName()::'lambda'()::operator()() const in ProcessCheck.mm.o bmalloc::ProcessNames::appName()::'lambda'()::operator()() const in ProcessCheck.mm.o bmalloc::ProcessNames::processName()::'lambda'()::operator()() const in ProcessCheck.mm.o bmalloc::ProcessNames::processName()::'lambda'()::operator()() const in ProcessCheck.mm.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [bin/LLIntSettingsExtractor] Error 1 make[2]: *** [Source/JavaScriptCore/CMakeFiles/LLIntSettingsExtractor.dir/all] Error 2 make[1]: *** [Source/JavaScriptCore/shell/CMakeFiles/jsc.dir/rule] Error 2 make: *** [jsc] Error 2 Tested on WebKit rev 6f39c4886559.
Gary Kwong [:gkw] [:nth10sd]
Comment 4 2024-08-18 11:38:54 PDT
Ping, any hope of fixing this compilation failure anytime soon?
Note You need to log in before you can comment on or make changes to this bug.