Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2023-03-28 Thread Darin Adler via webkit-dev
> On Mar 28, 2023, at 4:57 PM, Laurence Rowe via webkit-dev 
>  wrote:
> 
> I was hoping to try and wrap the jsc-only build into a rust crate since the 
> existing rust wrappers either include gtk dependencies or only wrap the lower 
> level api and link against the system libraries.

What’s the benefit here? How would this be better than linking against the 
JavaScriptCore framework?

— Darin
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2023-03-28 Thread Michael Saboff via webkit-dev
Laurence,

It grabbed the correct JavaScriptCore framework, so the issue is something else.

After the crash, provide the output of the lldb “bt” command,  Also, after it 
crashes in another terminal window run the command “vmmap jsc”.  This will give 
the memory regions of the process and allow you to see what memory region the 
faulting address is in, in the output below that is 0x10d5ac000,

- Michael

> On Mar 28, 2023, at 3:02 PM, Laurence Rowe  wrote:
> 
> Here is the lldb image list output. It seems to be the same whether I specify 
> DYLD_FRAMEWORK_PATH or not:
> 
> lrowe@Laurences-MacBook-Air WebKit % 
> DYLD_FRAMEWORK_PATH=/Users/lrowe/scratch/WebKit/WebKitBuild/Release lldb 
> ./WebKitBuild/Release/bin/jsc
> (lldb) target create "./WebKitBuild/Release/bin/jsc"
> Current executable set to 
> '/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64).
> 
> (lldb) run
> Process 91742 launched: 
> '/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64)
> Process 91742 stopped
> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS 
> (code=2, address=0x10d5ac000)
> frame #0: 0x0001a1b43f78 libsystem_platform.dylib`_platform_memmove + 
> 168
> libsystem_platform.dylib`:
> ->  0x1a1b43f78 <+168>: stpq2, q3, [x0]
> 0x1a1b43f7c <+172>: subs   x2, x2, #0x40
> 0x1a1b43f80 <+176>: b.ls    0x1a1b43f9c   ; 
> <+204>
> 0x1a1b43f84 <+180>: stpq0, q1, [x3]
> Target 0: (jsc) stopped.
> 
> (lldb) image list
> [  0] 064A1932-6DA6-30DA-AAE0-6E48255D19E9 0x0001 
> /Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc 
> [  1] 191E84F1-4B95-39C8-B253-1C1EF56C0FA8 0x0001a17e6000 /usr/lib/dyld 
> [  2] 2965B7D1-7C3C-3AC2-BF1B-C787A98082F0 0x000101b38000 
> /Users/lrowe/scratch/WebKit/WebKitBuild/Release/lib/JavaScriptCore.framework/Versions/1.0.0/JavaScriptCore
>  
> [  3] C317087F-0609-39AA-844D-9378CB52F508 0x0001e381e000 
> /usr/lib/libedit.3.dylib 
> [  4] 61BADBC5-2602-32FD-A771-1A5DF3E268B6 0x0001c70d3000 
> /usr/lib/libncurses.5.4.dylib 
> [  5] 75D125D4-CB3B-3D71-B5A9-454DE0731FEB 0x0001ad1cc000 
> /usr/lib/libSystem.B.dylib 
> [  6] 671A562C-829A-378C-92D5-68BF20D9B10D 0x0001ad1c6000 
> /usr/lib/system/libcache.dylib 
> [  7] 83AB18AB-518C-33A3-9401-9811A372021D 0x0001ad17f000 
> /usr/lib/system/libcommonCrypto.dylib 
> [  8] 1045AD14-6370-3C2B-8B00-8C4C10610516 0x0001ad1ad000 
> /usr/lib/system/libcompiler_rt.dylib 
> [  9] E5136197-CE86-3F9D-82FD-85127BF03D8F 0x0001ad1a3000 
> /usr/lib/system/libcopyfile.dylib 
> [ 10] B315532A-683B-36D0-9EAB-43B5BB417CB6 0x0001a18d4000 
> /usr/lib/system/libcorecrypto.dylib 
> [ 11] 4D52C3A5-32E6-37A2-9D6C-23C612038354 0x0001a198a000 
> /usr/lib/system/libdispatch.dylib 
> [ 12] 3ECAE184-B3F4-38BA-A9F3-629F01DAA4D3 0x0001a1b1c000 
> /usr/lib/system/libdyld.dylib 
> [ 13] 3FEBE2F0-6CDF-3D7F-9B65-4D0D1C39C49F 0x0001ad1bc000 
> /usr/lib/system/libkeymgr.dylib 
> [ 14] 48DD5AF4-3485-3705-BCEE-1EF259F40AE8 0x0001ad15d000 
> /usr/lib/system/libmacho.dylib 
> [ 15] EA65D28B-25C1-39EE-A71E-91B940DE96B5 0x0001ac81b000 
> /usr/lib/system/libquarantine.dylib 
> [ 16] 39212493-0C60-3913-BA8F-DE930523BA84 0x0001ad1b9000 
> /usr/lib/system/libremovefile.dylib 
> [ 17] 97E87061-20ED-3FA4-A5D2-5AA78A2AA0DB 0x0001a67e4000 
> /usr/lib/system/libsystem_asl.dylib 
> [ 18] DC0068A7-D49A-34B6-A296-6CA3913D9467 0x0001a1871000 
> /usr/lib/system/libsystem_blocks.dylib 
> [ 19] 14CD841B-0C7B-34A2-A342-CC6796EF9259 0x0001a19d5000 
> /usr/lib/system/libsystem_c.dylib 
> [ 20] B5DCE8FF-ACAD-3FA2-AA13-09CF57E260B8 0x0001ad1b1000 
> /usr/lib/system/libsystem_collections.dylib 
> [ 21] CC84D310-8C96-3321-8DC7-46CCB412546C 0x0001abd3b000 
> /usr/lib/system/libsystem_configuration.dylib 
> [ 22] 9D25ADF2-0895-323A-9274-DC4BBA3E3E93 0x0001aadaa000 
> /usr/lib/system/libsystem_containermanager.dylib 
> [ 23] 84CD7D6F-D943-3988-BED8-7D0759C412A3 0x0001ace5c000 
> /usr/lib/system/libsystem_coreservices.dylib 
> [ 24] 3298B664-57B0-3F23-841F-787D8934187E 0x0001a4975000 
> /usr/lib/system/libsystem_darwin.dylib 
> [ 25] 287985EB-DCA6-3851-887A-F6DF5A99F220 0x0001ad1bd000 
> /usr/lib/system/libsystem_dnssd.dylib 
> [ 26] F8C4FA4C-C898-379D-8275-4D67C026F041 0x0001a19d2000 
> /usr/lib/system/libsystem_featureflags.dylib 
> [ 27] 0B8128B1-BE39-33DE-AA69-9FC1BF3C4F7B 0x0001a1b48000 
> /usr/lib/system/libsystem_info.dylib 
> [ 28] 1CE3B16D-4433-3A27-8978-94C653F7B6EE 0x0001ad124000 
> /usr/lib/system/libsystem_m.dylib 
> [ 29] FA535B05-4593-3A78-93D7-7BCFF7431DF6 0x0001a195e000 
> /usr/lib/system/libsystem_malloc.dylib 
> [ 30] F32A2564-6ED1-3DB9-8987-DCF48DBB8BE1 0x0001a6764000 
> /usr/lib/system/libsystem_networkextension.dylib 
> [ 31] C6B67595-08FF-3268-A400-0C0C89F541A8 0x0001a4ddf000 
> /usr/lib/system/libsystem_notify.dylib 
> [ 32] 4593512A-A84B-3D4A-B95A-860679313411 

Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2023-03-28 Thread Laurence Rowe via webkit-dev
Here is the lldb image list output. It seems to be the same whether I
specify DYLD_FRAMEWORK_PATH or not:


lrowe@Laurences-MacBook-Air WebKit %
DYLD_FRAMEWORK_PATH=/Users/lrowe/scratch/WebKit/WebKitBuild/Release lldb
./WebKitBuild/Release/bin/jsc

(lldb) target create "./WebKitBuild/Release/bin/jsc"

Current executable set to
'/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64).


(lldb) run

Process 91742 launched:
'/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64)

Process 91742 stopped

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=2, address=0x10d5ac000)

frame #0: 0x0001a1b43f78 libsystem_platform.dylib`_platform_memmove
+ 168

libsystem_platform.dylib`:

->  0x1a1b43f78 <+168>: stpq2, q3, [x0]

0x1a1b43f7c <+172>: subs   x2, x2, #0x40

0x1a1b43f80 <+176>: b.ls   0x1a1b43f9c   ; <+204>

0x1a1b43f84 <+180>: stpq0, q1, [x3]

Target 0: (jsc) stopped.


(lldb) image list

[  0] 064A1932-6DA6-30DA-AAE0-6E48255D19E9 0x0001
/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc

[  1] 191E84F1-4B95-39C8-B253-1C1EF56C0FA8 0x0001a17e6000 /usr/lib/dyld

[  2] 2965B7D1-7C3C-3AC2-BF1B-C787A98082F0 0x000101b38000
/Users/lrowe/scratch/WebKit/WebKitBuild/Release/lib/JavaScriptCore.framework/Versions/1.0.0/JavaScriptCore

[  3] C317087F-0609-39AA-844D-9378CB52F508 0x0001e381e000
/usr/lib/libedit.3.dylib

[  4] 61BADBC5-2602-32FD-A771-1A5DF3E268B6 0x0001c70d3000
/usr/lib/libncurses.5.4.dylib

[  5] 75D125D4-CB3B-3D71-B5A9-454DE0731FEB 0x0001ad1cc000
/usr/lib/libSystem.B.dylib

[  6] 671A562C-829A-378C-92D5-68BF20D9B10D 0x0001ad1c6000
/usr/lib/system/libcache.dylib

[  7] 83AB18AB-518C-33A3-9401-9811A372021D 0x0001ad17f000
/usr/lib/system/libcommonCrypto.dylib

[  8] 1045AD14-6370-3C2B-8B00-8C4C10610516 0x0001ad1ad000
/usr/lib/system/libcompiler_rt.dylib

[  9] E5136197-CE86-3F9D-82FD-85127BF03D8F 0x0001ad1a3000
/usr/lib/system/libcopyfile.dylib

[ 10] B315532A-683B-36D0-9EAB-43B5BB417CB6 0x0001a18d4000
/usr/lib/system/libcorecrypto.dylib

[ 11] 4D52C3A5-32E6-37A2-9D6C-23C612038354 0x0001a198a000
/usr/lib/system/libdispatch.dylib

[ 12] 3ECAE184-B3F4-38BA-A9F3-629F01DAA4D3 0x0001a1b1c000
/usr/lib/system/libdyld.dylib

[ 13] 3FEBE2F0-6CDF-3D7F-9B65-4D0D1C39C49F 0x0001ad1bc000
/usr/lib/system/libkeymgr.dylib

[ 14] 48DD5AF4-3485-3705-BCEE-1EF259F40AE8 0x0001ad15d000
/usr/lib/system/libmacho.dylib

[ 15] EA65D28B-25C1-39EE-A71E-91B940DE96B5 0x0001ac81b000
/usr/lib/system/libquarantine.dylib

[ 16] 39212493-0C60-3913-BA8F-DE930523BA84 0x0001ad1b9000
/usr/lib/system/libremovefile.dylib

[ 17] 97E87061-20ED-3FA4-A5D2-5AA78A2AA0DB 0x0001a67e4000
/usr/lib/system/libsystem_asl.dylib

[ 18] DC0068A7-D49A-34B6-A296-6CA3913D9467 0x0001a1871000
/usr/lib/system/libsystem_blocks.dylib

[ 19] 14CD841B-0C7B-34A2-A342-CC6796EF9259 0x0001a19d5000
/usr/lib/system/libsystem_c.dylib

[ 20] B5DCE8FF-ACAD-3FA2-AA13-09CF57E260B8 0x0001ad1b1000
/usr/lib/system/libsystem_collections.dylib

[ 21] CC84D310-8C96-3321-8DC7-46CCB412546C 0x0001abd3b000
/usr/lib/system/libsystem_configuration.dylib

[ 22] 9D25ADF2-0895-323A-9274-DC4BBA3E3E93 0x0001aadaa000
/usr/lib/system/libsystem_containermanager.dylib

[ 23] 84CD7D6F-D943-3988-BED8-7D0759C412A3 0x0001ace5c000
/usr/lib/system/libsystem_coreservices.dylib

[ 24] 3298B664-57B0-3F23-841F-787D8934187E 0x0001a4975000
/usr/lib/system/libsystem_darwin.dylib

[ 25] 287985EB-DCA6-3851-887A-F6DF5A99F220 0x0001ad1bd000
/usr/lib/system/libsystem_dnssd.dylib

[ 26] F8C4FA4C-C898-379D-8275-4D67C026F041 0x0001a19d2000
/usr/lib/system/libsystem_featureflags.dylib

[ 27] 0B8128B1-BE39-33DE-AA69-9FC1BF3C4F7B 0x0001a1b48000
/usr/lib/system/libsystem_info.dylib

[ 28] 1CE3B16D-4433-3A27-8978-94C653F7B6EE 0x0001ad124000
/usr/lib/system/libsystem_m.dylib

[ 29] FA535B05-4593-3A78-93D7-7BCFF7431DF6 0x0001a195e000
/usr/lib/system/libsystem_malloc.dylib

[ 30] F32A2564-6ED1-3DB9-8987-DCF48DBB8BE1 0x0001a6764000
/usr/lib/system/libsystem_networkextension.dylib

[ 31] C6B67595-08FF-3268-A400-0C0C89F541A8 0x0001a4ddf000
/usr/lib/system/libsystem_notify.dylib

[ 32] 4593512A-A84B-3D4A-B95A-860679313411 0x0001abd4
/usr/lib/system/libsystem_sandbox.dylib

[ 33] 09FD13E7-266A-38B8-B797-EA32EDFBFB7F 0x0001ad1b6000
/usr/lib/system/libsystem_secinit.dylib

[ 34] 3DCD49B9-B3C5-3D90-BE40-A3B807CB9CD7 0x0001a1ad5000
/usr/lib/system/libsystem_kernel.dylib

[ 35] 4CF75103-429D-3AAE-BA13-2C1F67E47DBB 0x0001a1b4
/usr/lib/system/libsystem_platform.dylib

[ 36] 9F3B729A-ED04-3E65-ADAC-D75AD06EBBDC 0x0001a1b0f000
/usr/lib/system/libsystem_pthread.dylib

[ 37] FFDC0C2D-5E65-32F7-B687-99313DD7CCD0 0x0001a7fb9000
/usr/lib/system/libsystem_symptoms.dylib

[ 38] E71E8D9E-3A87-33E0-B198-31666F5A6FF1 0x0001a18ba000
/usr/lib/system/libsystem_trace.dylib

[ 39] 

Re: [webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2023-03-28 Thread Michael Saboff via webkit-dev
Laurence,

When you try to run the jsc command, are you setting DYLD_FRAMEWORK_PATH to the 
location of the built frameworks?  You can either set it and export it in your 
shell environment, e.g.

 % export DYLD_FRAMEWORK_PATH=/Users/lrowe/scratch/WebKit/WebKitBuild/Release

Or prepend the setting of it in your command string:

 % DYLD_FRAMEWORK_PATH=/Users/lrowe/scratch/WebKit/WebKitBuild/Release lldb 
./WebKitBuild/Release/bin/jsc

I that doesn’t work, a backtrace at the time of the crash and the output of the 
lldb command “image list” would be helpful.

- Michael


> On Mar 27, 2023, at 11:11 PM, Laurence Rowe via webkit-dev 
>  wrote:
> 
> Hi, I’m trying to build jsc on my M1 Mac following the instructions at 
> https://trac.webkit.org/wiki/JSCOnly and https://webkit.org/getting-started/ 
> . However when I run the built binary it exits immediately with a bus error 
> which lldb shows to be EXC_BAD_ACCESS.
> 
> lrowe@Laurences-MacBook-Air WebKit % git reset --hard origin/main
> HEAD is now at b2362a5d6b [UI-side compositing] Safari occasionally crashes 
> when scrolling underneath `NSScrollerImpPair` 
> https://bugs.webkit.org/show_bug.cgi?id=254484 rdar://107139674
> lrowe@Laurences-MacBook-Air WebKit % git clean -Xf
> lrowe@Laurences-MacBook-Air WebKit % sudo xcode-select -s 
> /Applications/Xcode.app/Contents/Developer
> lrowe@Laurences-MacBook-Air WebKit % Tools/Scripts/build-jsc --jsc-only
> # build log below
> lrowe@Laurences-MacBook-Air WebKit % ./WebKitBuild/Release/bin/jsc 
> zsh: bus error  ./WebKitBuild/Release/bin/jsc
> 
> lrowe@Laurences-MacBook-Air WebKit % lldb ./WebKitBuild/Release/bin/jsc
> (lldb) target create "./WebKitBuild/Release/bin/jsc"
> Current executable set to 
> '/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64).
> (lldb) run
> Process 73062 launched: 
> '/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64)
> Process 73062 stopped
> * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS 
> (code=2, address=0x10d5ac000)
> frame #0: 0x0001a1b43f78 libsystem_platform.dylib`_platform_memmove + 
> 168
> libsystem_platform.dylib`:
> ->  0x1a1b43f78 <+168>: stpq2, q3, [x0]
> 0x1a1b43f7c <+172>: subs   x2, x2, #0x40
> 0x1a1b43f80 <+176>: b.ls    0x1a1b43f9c   ; 
> <+204>
> 0x1a1b43f84 <+180>: stpq0, q1, [x3]
> Target 0: (jsc) stopped.
> 
> Versions:
> WebKit main (b2362a5d6b)
> Xcode 14.2 (14C18)
> macOS 13.2.1
> CMake.app 3.26.1 (not mentioned at https://webkit.org/build-tools/ but 
> required)
> 
> I’ve also tried variously with Xcode command line tools, homebrew cmake, 
> WebKit tag WebKit-7615.1.26.10.23, and adding the —debug flag to the build 
> but I see the same error.
> 
> Is there anything else I should be doing to build jsc?
> 
> Thanks,
> 
> Laurence Rowe
> 
> 
> # build log
> +  cmake --build /Users/lrowe/scratch/WebKit/WebKitBuild/Release --config 
> Release -- jsc testb3 testair testapi testmasm testdfg -j8
> [  0%] Built target JavaScriptCore_CopyHeaders
> [  1%] Built target JavaScriptCoreSharedScripts
> [  1%] Built target JSCBuiltins
> [  1%] Built target Bytecodes
> [ 35%] Built target WTF_CopyHeaders
> [ 38%] Built target bmalloc_CopyHeaders
> [ 46%] Built target bmalloc
> [ 53%] Built target WTF
> [ 53%] Built target LLIntSettingsExtractor
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o
> [ 53%] Linking CXX executable ../../bin/LLIntOffsetsExtractor
> [ 53%] Built target LLIntOffsetsExtractor
> [ 53%] Generating ../../JavaScriptCore/DerivedSources/LLIntAssembly.h
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/LowLevelInterpreter.cpp.o
> [ 53%] Built target LowLevelInterpreterLib
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-f0a787a9-7.cpp.o
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-f0a787a9-11.cpp.o
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-4.cpp.o
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-3.cpp.o
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-9.cpp.o
> [ 53%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/dfg/DFGSpeculativeJIT.cpp.o
> [ 54%] Building CXX object 
> Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/dfg/DFGSpeculativeJIT32_64.cpp.o
> [ 54%] Building CXX object 
> 

[webkit-dev] jsc bus error EXC_BAD_ACCESS with jsc-only build on Mac

2023-03-28 Thread Laurence Rowe via webkit-dev
Hi, I’m trying to build jsc on my M1 Mac following the instructions at
https://trac.webkit.org/wiki/JSCOnly and https://webkit.org/getting-started/ .
However when I run the built binary it exits immediately with a bus error
which lldb shows to be EXC_BAD_ACCESS.

lrowe@Laurences-MacBook-Air WebKit % git reset --hard origin/main
HEAD is now at b2362a5d6b [UI-side compositing] Safari occasionally crashes
when scrolling underneath `NSScrollerImpPair`
https://bugs.webkit.org/show_bug.cgi?id=254484 rdar://107139674
lrowe@Laurences-MacBook-Air WebKit % git clean -Xf
lrowe@Laurences-MacBook-Air WebKit % sudo xcode-select -s
/Applications/Xcode.app/Contents/Developer
lrowe@Laurences-MacBook-Air WebKit % Tools/Scripts/build-jsc --jsc-only
# build log below
lrowe@Laurences-MacBook-Air WebKit % ./WebKitBuild/Release/bin/jsc
zsh: bus error  ./WebKitBuild/Release/bin/jsc

lrowe@Laurences-MacBook-Air WebKit % lldb ./WebKitBuild/Release/bin/jsc
(lldb) target create "./WebKitBuild/Release/bin/jsc"
Current executable set to
'/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64).
(lldb) run
Process 73062 launched:
'/Users/lrowe/scratch/WebKit/WebKitBuild/Release/bin/jsc' (arm64)
Process 73062 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
(code=2, address=0x10d5ac000)
frame #0: 0x0001a1b43f78 libsystem_platform.dylib`_platform_memmove
+ 168
libsystem_platform.dylib`:
->  0x1a1b43f78 <+168>: stpq2, q3, [x0]
0x1a1b43f7c <+172>: subs   x2, x2, #0x40
0x1a1b43f80 <+176>: b.ls   0x1a1b43f9c   ; <+204>
0x1a1b43f84 <+180>: stpq0, q1, [x3]
Target 0: (jsc) stopped.

Versions:

   - WebKit main (b2362a5d6b)
   - Xcode 14.2 (14C18)
   - macOS 13.2.1
   - CMake.app 3.26.1 (not mentioned at https://webkit.org/build-tools/ but
   required)


I’ve also tried variously with Xcode command line tools, homebrew cmake,
WebKit tag WebKit-7615.1.26.10.23, and adding the —debug flag to the build
but I see the same error.

Is there anything else I should be doing to build jsc?

Thanks,

Laurence Rowe


# build log
+  cmake --build /Users/lrowe/scratch/WebKit/WebKitBuild/Release --config
Release -- jsc testb3 testair testapi testmasm testdfg -j8
[  0%] Built target JavaScriptCore_CopyHeaders
[  1%] Built target JavaScriptCoreSharedScripts
[  1%] Built target JSCBuiltins
[  1%] Built target Bytecodes
[ 35%] Built target WTF_CopyHeaders
[ 38%] Built target bmalloc_CopyHeaders
[ 46%] Built target bmalloc
[ 53%] Built target WTF
[ 53%] Built target LLIntSettingsExtractor
[ 53%] Building CXX object
Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o
[ 53%] Linking CXX executable ../../bin/LLIntOffsetsExtractor
[ 53%] Built target LLIntOffsetsExtractor
[ 53%] Generating ../../JavaScriptCore/DerivedSources/LLIntAssembly.h
[ 53%] Building CXX object
Source/JavaScriptCore/CMakeFiles/LowLevelInterpreterLib.dir/llint/LowLevelInterpreter.cpp.o
[ 53%] Built target LowLevelInterpreterLib
[ 53%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-f0a787a9-7.cpp.o
[ 53%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-f0a787a9-11.cpp.o
[ 53%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-4.cpp.o
[ 53%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-3.cpp.o
[ 53%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-9.cpp.o
[ 53%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/dfg/DFGSpeculativeJIT.cpp.o
[ 54%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/dfg/DFGSpeculativeJIT32_64.cpp.o
[ 54%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/dfg/DFGSpeculativeJIT64.cpp.o
[ 54%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-bfc896e1-14.cpp.o
[ 54%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-02aa2997-1.cpp.o
[ 54%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/ftl/FTLLowerDFGToB3.cpp.o
[ 54%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-ee8a7a7a-3.cpp.o
[ 54%] Building CXX object
Source/JavaScriptCore/CMakeFiles/JavaScriptCore.dir/__/__/JavaScriptCore/DerivedSources/unified-sources/UnifiedSource-0e543b66-1.cpp.o
[ 54%] Building CXX object