Bug 277881
| Summary: | [CMake] Unable to compile JavaScriptCore shell after bug 277383 landed | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Gary Kwong [:gkw] [:nth10sd] <nth10sd> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Critical | CC: | msaboff, ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | macOS 14 | ||
| Bug Depends on: | |||
| Bug Blocks: | 277383 | ||
Gary Kwong [:gkw] [:nth10sd]
```
[ 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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Gary Kwong [:gkw] [:nth10sd]
Michael, is bug 277383 a likely regressor?
Gary Kwong [:gkw] [:nth10sd]
The immediate parent, webkit rev 718f9c8cd131, seems to compile just fine.
https://github.com/WebKit/WebKit/commit/718f9c8cd131eec824d5b6c1bb3bd3c5365b5d47
Gary Kwong [:gkw] [:nth10sd]
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]
Ping, any hope of fixing this compilation failure anytime soon?