Bug 244751

Summary: build-jsc CMake build fails with linker errors (shouldAllowMiniMode, _initializeLibraryPathDiagnostics)
Product: WebKit Reporter: bigsean123
Component: bmallocAssignee: Ben Nham <nham>
Status: RESOLVED FIXED    
Severity: Blocker CC: david_quesada, ggaren, nham, saam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Mac (Apple Silicon)   
OS: macOS 12   

bigsean123
Reported 2022-09-02 19:52:02 PDT
This is my output : ./Tools/Scripts/build-jsc --jsc-only --debug --cmakeargs="-DENABLE_STATIC_JSC=ON -DCMAKE_CXX_FLAGS='-fsanitize-coverage=trace-pc-guard -O3'" + cmake -DPORT="JSCOnly" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -G Ninja -DDEVELOPER_MODE=ON -DENABLE_STATIC_JSC=ON -DCMAKE_CXX_FLAGS='-fsanitize-coverage=trace-pc-guard -O3' -DENABLE_FTL_JIT=ON "/Users/bootywarrior/Downloads/Webkit/latest/WebKit" -- The C compiler identification is AppleClang 13.1.6.13160021 -- The CXX compiler identification is AppleClang 13.1.6.13160021 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- The CMake build type is: Debug -- Found Perl: /usr/bin/perl (found suitable version "5.30.3", minimum required is "5.10.0") -- Found PerlModules: TRUE found components: English FindBin JSON::PP -- Found Python: /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/bin/python3.8 (found version "3.8.9") found components: Interpreter -- Found Ruby: /usr/bin/ruby (found suitable version "2.6.8", minimum required is "1.9") -- Enabling ccache: Setting ccache prefix for compiler. -- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing -- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing -- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing - Success -- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions -- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions -- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti -- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti - Success -- Performing Test C_COMPILER_SUPPORTS_-Wno-tautological-compare -- Performing Test C_COMPILER_SUPPORTS_-Wno-tautological-compare - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-tautological-compare -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-tautological-compare - Success -- Performing Test C_COMPILER_SUPPORTS_-Wcast-align -- Performing Test C_COMPILER_SUPPORTS_-Wcast-align - Success -- Performing Test C_COMPILER_SUPPORTS_-Wformat-security -- Performing Test C_COMPILER_SUPPORTS_-Wformat-security - Success -- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute -- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success -- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith -- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith - Success -- Performing Test C_COMPILER_SUPPORTS_-Wundef -- Performing Test C_COMPILER_SUPPORTS_-Wundef - Success -- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings -- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align -- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security -- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute -- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith -- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wundef -- Performing Test CXX_COMPILER_SUPPORTS_-Wundef - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings -- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings - Success -- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments -- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments - Success -- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized -- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Failed -- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality -- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality - Success -- Performing Test C_COMPILER_SUPPORTS_-Wno-misleading-indentation -- Performing Test C_COMPILER_SUPPORTS_-Wno-misleading-indentation - Success -- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi -- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments -- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Failed -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-misleading-indentation -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-misleading-indentation - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type - Success -- Performing Test C_COMPILER_SUPPORTS_-pipe -- Performing Test C_COMPILER_SUPPORTS_-pipe - Success -- Performing Test CXX_COMPILER_SUPPORTS_-pipe -- Performing Test CXX_COMPILER_SUPPORTS_-pipe - Success -- Performing Test C_COMPILER_SUPPORTS_-Wall -- Performing Test C_COMPILER_SUPPORTS_-Wall - Success -- Performing Test C_COMPILER_SUPPORTS_-Wextra -- Performing Test C_COMPILER_SUPPORTS_-Wextra - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wall -- Performing Test CXX_COMPILER_SUPPORTS_-Wall - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wextra -- Performing Test CXX_COMPILER_SUPPORTS_-Wextra - Success -- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics -- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics - Success -- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always -- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics -- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always -- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success -- Performing Test ATOMICS_ARE_BUILTIN -- Performing Test ATOMICS_ARE_BUILTIN - Success -- Performing Test STD_FILESYSTEM_IS_AVAILABLE -- Performing Test STD_FILESYSTEM_IS_AVAILABLE - Success -- Linker variant in use: UNKNOWN -- Linker supports thin archives - FALSE -- Linker supports split debug info - FALSE -- Linker supports --gdb-index - FALSE -- Linker supports --disable-new-dtags - FALSE -- Archiver variant in use: -- Archiver supports thin archives - FALSE -- Performing Test CXX_COMPILER_SUPPORTS_GSPLIT_DWARF -- Performing Test CXX_COMPILER_SUPPORTS_GSPLIT_DWARF - Success -- Looking for features.h -- Looking for features.h - not found -- Looking for errno.h -- Looking for errno.h - found -- Looking for langinfo.h -- Looking for langinfo.h - found -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for pthread_np.h -- Looking for pthread_np.h - not found -- Looking for sys/param.h -- Looking for sys/param.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for sys/timeb.h -- Looking for sys/timeb.h - found -- Looking for linux/memfd.h -- Looking for linux/memfd.h - not found -- Looking for _aligned_malloc -- Looking for _aligned_malloc - not found -- Looking for IsDebuggerPresent -- Looking for IsDebuggerPresent - not found -- Looking for localtime_r -- Looking for localtime_r - found -- Looking for malloc_trim -- Looking for malloc_trim - not found -- Looking for strnstr -- Looking for strnstr - found -- Looking for timegm -- Looking for timegm - found -- Looking for vasprintf -- Looking for vasprintf - found -- Looking for regexec -- Looking for regexec - found -- Looking for MAP_ALIGNED -- Looking for MAP_ALIGNED - not found -- Looking for SHM_ANON -- Looking for SHM_ANON - not found -- Looking for timingsafe_bcmp -- Looking for timingsafe_bcmp - found -- Looking for SIGTRAP -- Looking for SIGTRAP - found -- Performing Test HAVE_STAT_BIRTHTIME_value -- Performing Test HAVE_STAT_BIRTHTIME_value - Success -- Performing Test HAVE_TM_GMTOFF_value -- Performing Test HAVE_TM_GMTOFF_value - Success -- Performing Test HAVE_TM_ZONE_value -- Performing Test HAVE_TM_ZONE_value - Success -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of __int128_t -- Check size of __int128_t - done -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Found ICU: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libicucore.tbd -- Platform-specific CMakeLists not found: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Source/bmalloc/PlatformJSCOnly.cmake -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-missing-field-initializers -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-missing-field-initializers - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-cast-align -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-cast-align - Success -- Using platform-specific CMakeLists: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Source/WTF/wtf/PlatformJSCOnly.cmake -- Copying generate-unified-source-bundles.rb to: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/WTF/Scripts -- Using platform-specific CMakeLists: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Source/JavaScriptCore/PlatformJSCOnly.cmake -- Performing Test CXX_COMPILER_SUPPORTS_-ffp-contract=off -- Performing Test CXX_COMPILER_SUPPORTS_-ffp-contract=off - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fno-slp-vectorize -- Performing Test CXX_COMPILER_SUPPORTS_-fno-slp-vectorize - Success -- Using source list file: Sources.txt -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-array-bounds -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-array-bounds - Success -- Platform-specific CMakeLists not found: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Source/JavaScriptCore/shell/PlatformJSCOnly.cmake -- Platform-specific CMakeLists not found: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Source/ThirdParty/gtest/PlatformJSCOnly.cmake -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-undef -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-undef - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-stringop-truncation -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-stringop-truncation - Failed -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-suggest-attribute=format -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-suggest-attribute=format - Failed -- Platform-specific CMakeLists not found: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Source/PlatformJSCOnly.cmake -- Platform-specific CMakeLists not found: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Tools/PlatformJSCOnly.cmake -- Using platform-specific CMakeLists: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Tools/TestWebKitAPI/PlatformJSCOnly.cmake -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-dangling-else -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-dangling-else - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-sign-compare -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-sign-compare - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-unused-parameter -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-unused-parameter - Success -- Platform-specific CMakeLists not found: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/PerformanceTests/MallocBench/MallocBench/PlatformJSCOnly.cmake -- Platform-specific CMakeLists not found: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/PerformanceTests/PlatformJSCOnly.cmake -- Enabled features: -- ENABLE_STATIC_JSC ............................. ON -- Configuring done -- Generating done -- Build files have been written to: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug + cmake --build FuzzBuildnew/Debug --config Debug -- jsc testb3 testair testapi testmasm testdfg -j8 [463/2265] Building CXX object Source/...as/src/libpas/pas_heap_config_kind.c.o clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] [509/2265] Building CXX object Source/...loc.dir/libpas/src/libpas/jit_heap.c.o clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] [659/2265] Building CXX object Source/...libpas/pas_bitfit_page_config_kind.c.o clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] [679/2265] Building CXX object Source/...as/pas_segregated_page_config_kind.c.o clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] [701/2265] Building CXX object Source/...pas/src/libpas/bmalloc_heap_config.c.o clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] [1072/2265] Building CXX object Source...dir/libpas/src/libpas/bmalloc_heap.c.o clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] [1428/2265] Building CXX object Source...sources/UnifiedSource-3a3c4ec0-2.cpp.o In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-3a3c4ec0-2.cpp:4: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Source/JavaScriptCore/jit/ExecutableAllocator.cpp:47: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/jit_heap_config.h:35: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_heap_config_utils.h:32: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_bitfit_page_config_utils.h:31: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_bitfit_page.h:82:12: warning: cast from 'char *' to 'unsigned int *' increases required alignment from 1 to 4 [-Wcast-align] return (unsigned*)( ^~~~~~~~~~~~ /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_bitfit_page.h:146:12: warning: cast from 'pas_page_base *' to 'pas_bitfit_page *' increases required alignment from 1 to 8 [-Wcast-align] return (pas_bitfit_page*)pas_page_base_for_boundary(boundary, page_config.base); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-3a3c4ec0-2.cpp:4: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Source/JavaScriptCore/jit/ExecutableAllocator.cpp:47: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/jit_heap_config.h:35: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_heap_config_utils.h:32: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_bitfit_page_config_utils.h:33: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_bitfit_page_inlines.h:282:18: warning: cast from 'unsigned int *' to 'uint64_t *' (aka 'unsigned long long *') increases required alignment from 4 to 8 [-Wcast-align] free_words = (uint64_t*)pas_bitfit_page_free_bits(page); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_bitfit_page_inlines.h:283:24: warning: cast from 'unsigned int *' to 'uint64_t *' (aka 'unsigned long long *') increases required alignment from 4 to 8 [-Wcast-align] object_end_words = (uint64_t*)pas_bitfit_page_object_end_bits(page, page_config); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_bitfit_page_inlines.h:623:18: warning: cast from 'unsigned int *' to 'uint64_t *' (aka 'unsigned long long *') increases required alignment from 4 to 8 [-Wcast-align] free_words = (uint64_t*)pas_bitfit_page_free_bits(page); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_bitfit_page_inlines.h:624:24: warning: cast from 'unsigned int *' to 'uint64_t *' (aka 'unsigned long long *') increases required alignment from 4 to 8 [-Wcast-align] object_end_words = (uint64_t*)pas_bitfit_page_object_end_bits(page, page_config); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-3a3c4ec0-2.cpp:4: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/Source/JavaScriptCore/jit/ExecutableAllocator.cpp:47: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/jit_heap_config.h:35: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_heap_config_utils.h:34: In file included from /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_segregated_page_config_utils.h:31: /Users/bootywarrior/Downloads/Webkit/latest/WebKit/FuzzBuildnew/Debug/bmalloc/Headers/bmalloc/pas_segregated_page.h:365:12: warning: cast from 'pas_page_base *' to 'pas_segregated_page *' increases required alignment from 1 to 16 [-Wcast-align] return (pas_segregated_page*)pas_page_base_for_boundary(boundary, page_config.base); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 warnings generated. [2248/2265] Linking CXX executable bin/testapi FAILED: bin/testapi : && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fsanitize-coverage=trace-pc-guard -O3 -fno-strict-aliasing -fno-exceptions -fno-rtti -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/CompareAndSwapTest.cpp.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/CustomGlobalObjectClassTest.c.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/ExecutionTimeLimitTest.cpp.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/FunctionOverridesTest.cpp.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/GlobalContextWithFinalizerTest.cpp.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/JSONParseTest.cpp.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/JSObjectGetProxyTargetTest.cpp.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/MultithreadedMultiVMExecutionTest.cpp.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/PingPongStackOverflowTest.cpp.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/TypedArrayCTest.cpp.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/testapi.c.o Source/JavaScriptCore/shell/CMakeFiles/testapi.dir/__/API/tests/testapi.cpp.o -o bin/testapi lib/libJavaScriptCore.a lib/libWTF.a /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libicucore.tbd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libicucore.tbd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libicucore.tbd lib/libbmalloc.a && : Undefined symbols for architecture arm64: "bmalloc::shouldAllowMiniMode()", referenced from: bmalloc::api::enableMiniMode() in libbmalloc.a(bmalloc.cpp.o) "_initializeLibraryPathDiagnostics", referenced from: void std::__1::__call_once_proxy<std::__1::tuple<WTF::initialize()::$_1&&> >(void*) in libWTF.a(Threading.cpp.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) [2255/2265] Building CXX object Source...stmasm.dir/__/assembler/testmasm.cpp.o ninja: build stopped: subcommand failed. My branch commit is 0ac614b6822ca9eccec5f40b7d00bf746f1f08a9.
Attachments
bigsean123
Comment 1 2022-09-02 20:06:36 PDT
Looking through WebKit for "bmalloc::shouldAllowMiniMode()" I only found one commit related to this which was 7 days ago https://github.com/WebKit/WebKit/commit/0df435b1b392cd078f13d555a63a36a96f519c57
bigsean123
Comment 2 2022-09-02 20:33:08 PDT
the branch that is right before those commits that caused the problem I changed to works even though I wanted the most up to date code I'll have to settle with this until the problem is solved. This is the last up to date commit that'll successfully compile "git checkout 1688bc7a4268582841a1c446e5ef7953aeb33091 ".
Ben Nham
Comment 3 2022-09-04 20:18:51 PDT
Seems like the CMake build on macOS doesn't compile ProcessCheck.m.
Ben Nham
Comment 4 2022-09-04 20:44:57 PDT
PlatformCheck.mm is specified in the Mac port but not the JSCOnly port. TBH I'm not even really sure what the JSCOnly port is. Will ask the JSC team on Tuesday. Probably we'll just add a bmalloc/PlatformJSCOnly.cmake for bmalloc that compiles PlatformCheck.mm when building for Darwin, but I'll see if the team prefers some other solution.
Radar WebKit Bug Importer
Comment 5 2022-09-04 20:45:42 PDT
Ben Nham
Comment 7 2022-09-04 21:57:57 PDT
EWS
Comment 8 2022-09-06 12:23:28 PDT
Committed 254194@main (75b85477b7b0): <https://commits.webkit.org/254194@main> Reviewed commits have been landed. Closing PR #4015 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.