Managed to build ART 1.12.1 on macOS Monterey

The current version works fine for me.

hi guys, here is my crash report. It appears immediately after start. It is the same for the latest version and x86 64 version. thanks to developers to share this code and builds for Mac OS.


Translated Report (Full Report Below)

Process: art [2365]
Path: /Volumes/VOLUME/ART.app/Contents/MacOS/art
Identifier: us.pixls.art.ART
Version: 1.0.1291 (1.0.1291)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2022-11-20 18:16:17.9103 +0100
OS Version: macOS 12.6 (21G115)
Report Version: 12
Bridge OS Version: 6.6 (19P6067)
Anonymous UUID: CC196825-3CDF-A087-FEBA-56FC7992DA59

Sleep/Wake UUID: 344742CD-75C4-41B7-A7A7-FEF55F77AD55

Time Awake Since Boot: 23000 seconds
Time Since Wake: 1584 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace DYLD, Code 1 Library missing
Library not loaded: ‘/Applications/ART.app/Contents/Frameworks/libomp.dylib’
Referenced from: ‘/Volumes/VOLUME/ART.app/Contents/MacOS/art’
Reason: tried: ‘/Applications/ART.app/Contents/Frameworks/libomp.dylib’ (no such file), ‘’ (no such file)
(terminated at launch; ignore backtrace)

Thread 0 Crashed:
0 dyld 0x11002698e __abort_with_payload + 10
1 dyld 0x11003ca72 abort_with_payload_wrapper_internal + 80
2 dyld 0x11003caa4 abort_with_payload + 9
3 dyld 0x10ffea699 dyld4::halt(char const*) + 615
4 dyld 0x10ffe65b5 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3995
5 dyld 0x10ffe54e4 start + 388

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007ff7bac34248 rdx: 0x00007ff7bac346b0
rdi: 0x0000000000000006 rsi: 0x0000000000000001 rbp: 0x00007ff7bac34290 rsp: 0x00007ff7bac34248
r8: 0x00007ff7bac342b0 r9: 0x0000000000000000 r10: 0x0000000000000087 r11: 0x0000000000000246
r12: 0x0000000000000087 r13: 0x00007ff7bac346b0 r14: 0x0000000000000001 r15: 0x0000000000000006
rip: 0x000000011002698e rfl: 0x0000000000000246 cr2: 0x000000010ffecda4

Logical CPU: 0
Error Code: 0x02000209
Trap Number: 133

Binary Images:
0x10ffe0000 - 0x11004bfff dyld (*) <71febccd-d9dc-3599-9971-2b3407c588a8> /usr/lib/dyld

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=9384K resident=0K(0%) swapped_out_or_unallocated=9384K(100%)
Writable regions: Total=9268K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9268K(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
STACK GUARD 56.0M 1
Stack 8192K 1
VM_ALLOCATE 12K 3
__DATA 80K 3
__DATA_CONST 992K 2
__LINKEDIT 1792K 4
__TEXT 7616K 2
dyld private memory 1024K 1
=========== ======= =======
TOTAL 75.2M 17


Full Report

{“app_name”:“art”,“timestamp”:“2022-11-20 18:16:18.00 +0100”,“app_version”:“1.0.1291”,“slice_uuid”:“33d538ca-6404-37a9-ae12-ea60d4263a03”,“build_version”:“1.0.1291”,“platform”:1,“bundleID”:“us.pixls.art.ART”,“share_with_app_devs”:0,“is_first_party”:0,“bug_type”:“309”,“os_version”:“macOS 12.6 (21G115)”,“incident_id”:“80620699-F173-4BBA-94BB-6B587B4C2209”,“name”:“art”}
{
“uptime” : 23000,
“procLaunch” : “2022-11-20 18:15:55.0052 +0100”,
“procRole” : “Background”,
“version” : 2,
“userID” : 501,
“deployVersion” : 210,
“modelCode” : “MacBookPro16,3”,
“procStartAbsTime” : 23938673862597,
“coalitionID” : 2593,
“osVersion” : {
“train” : “macOS 12.6”,
“build” : “21G115”,
“releaseType” : “User”
},
“captureTime” : “2022-11-20 18:16:17.9103 +0100”,
“incident” : “80620699-F173-4BBA-94BB-6B587B4C2209”,
“bug_type” : “309”,
“pid” : 2365,
“procExitAbsTime” : 23961573616153,
“cpuType” : “X86-64”,
“procName” : “art”,
“procPath” : “/Volumes/VOLUME/ART.app/Contents/MacOS/art”,
“bundleInfo” : {“CFBundleShortVersionString”:“1.0.1291”,“CFBundleVersion”:“1.0.1291”,“CFBundleIdentifier”:“us.pixls.art.ART”},
“storeInfo” : {“deviceIdentifierForVendor”:“50BF2A35-83E0-5B14-8617-A066DAEEDB7A”,“thirdParty”:true},
“parentProc” : “launchd”,
“parentPid” : 1,
“coalitionName” : “us.pixls.art.ART”,
“crashReporterKey” : “CC196825-3CDF-A087-FEBA-56FC7992DA59”,
“wakeTime” : 1584,
“bridgeVersion” : {“build”:“19P6067”,“train”:“6.6”},
“sleepWakeUUID” : “344742CD-75C4-41B7-A7A7-FEF55F77AD55”,
“sip” : “enabled”,
“isCorpse” : 1,
“exception” : {“codes”:“0x0000000000000000, 0x0000000000000000”,“rawCodes”:[0,0],“type”:“EXC_CRASH”,“signal”:“SIGABRT”},
“termination” : {“code”:1,“flags”:518,“namespace”:“DYLD”,“indicator”:“Library missing”,“details”:["(terminated at launch; ignore backtrace)"],“reasons”:[“Library not loaded: ‘/Applications/ART.app/Contents/Frameworks/libomp.dylib’”,“Referenced from: ‘/Volumes/VOLUME/ART.app/Contents/MacOS/art’”,“Reason: tried: ‘/Applications/ART.app/Contents/Frameworks/libomp.dylib’ (no such file), ‘’ (no such file)”]},
“extMods” : {“caller”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“system”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“targeted”:{“thread_create”:0,“thread_set_state”:0,“task_for_pid”:0},“warnings”:0},
“faultingThread” : 0,
“threads” : [{“triggered”:true,“id”:142794,“threadState”:{“r13”:{“value”:140701967009456},“rax”:{“value”:33554953},“rflags”:{“value”:582},“cpu”:{“value”:0},“r14”:{“value”:1},“rsi”:{“value”:1},“r8”:{“value”:140701967008432},“cr2”:{“value”:4563324324},“rdx”:{“value”:140701967009456},“r10”:{“value”:135},“r9”:{“value”:0},“r15”:{“value”:6},“rbx”:{“value”:0},“trap”:{“value”:133},“err”:{“value”:33554953},“r11”:{“value”:582},“rip”:{“value”:4563560846,“matchesCrashFrame”:1},“rbp”:{“value”:140701967008400},“rsp”:{“value”:140701967008328},“r12”:{“value”:135},“rcx”:{“value”:140701967008328},“flavor”:“x86_THREAD_STATE”,“rdi”:{“value”:6}},“frames”:[{“imageOffset”:289166,“symbol”:"__abort_with_payload",“symbolLocation”:10,“imageIndex”:0},{“imageOffset”:379506,“symbol”:“abort_with_payload_wrapper_internal”,“symbolLocation”:80,“imageIndex”:0},{“imageOffset”:379556,“symbol”:“abort_with_payload”,“symbolLocation”:9,“imageIndex”:0},{“imageOffset”:42649,“symbol”:“dyld4::halt(char const*)”,“symbolLocation”:615,“imageIndex”:0},{“imageOffset”:26037,“symbol”:“dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)”,“symbolLocation”:3995,“imageIndex”:0},{“imageOffset”:21732,“symbol”:“start”,“symbolLocation”:388,“imageIndex”:0}]}],
“usedImages” : [
{
“source” : “P”,
“arch” : “x86_64”,
“base” : 4563271680,
“size” : 442368,
“uuid” : “71febccd-d9dc-3599-9971-2b3407c588a8”,
“path” : “/usr/lib/dyld”,
“name” : “dyld”
}
],
“sharedCache” : {
“base” : 140703270031360,
“size” : 19331678208,
“uuid” : “73669942-bd8a-3e40-951f-7fbe07b51cb8”
},
“vmSummary” : “ReadOnly portion of Libraries: Total=9384K resident=0K(0%) swapped_out_or_unallocated=9384K(100%)\nWritable regions: Total=9268K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9268K(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8192K 1 \nVM_ALLOCATE 12K 3 \n__DATA 80K 3 \n__DATA_CONST 992K 2 \n__LINKEDIT 1792K 4 \n__TEXT 7616K 2 \ndyld private memory 1024K 1 \n=========== ======= ======= \nTOTAL 75.2M 17 \n”,
“legacyInfo” : {
“threadTriggered” : {

}
},
“trialInfo” : {
“rollouts” : [
{
“rolloutId” : “5fc94383418129005b4e9ae0”,
“factorPackIds” : {

  },
  "deploymentId" : 240000544
},
{
  "rolloutId" : "60da5e84ab0ca017dace9abf",
  "factorPackIds" : {

  },
  "deploymentId" : 240000008
}

],
“experiments” : [

]
}
}

Model: MacBookPro16,3, BootROM 1731.140.2.0.0 (iBridge: 19.16.16067.0.0,0), 4 processors, Quad-Core Intel Core i5, 1,4 GHz, 8 GB, SMC
Graphics: Intel Iris Plus Graphics 645, Intel Iris Plus Graphics 645, Built-In
Display: Color LCD, 2560 x 1600 Retina, Main, MirrorOff, Online
Memory Module: BANK 0/ChannelA-DIMM0, 4 GB, LPDDR3, 2133 MHz, SK Hynix, H9CCNNNBJTALAR-NVD
Memory Module: BANK 2/ChannelB-DIMM0, 4 GB, LPDDR3, 2133 MHz, SK Hynix, H9CCNNNBJTALAR-NVD
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x870), wl0: Jul 16 2021 18:25:13 version 16.20.328.0.3.6.105 FWID 01-30be2b3a
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: T2Bus
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5

I experience the same issue as above.
The funny thing is that the libomp.dylib is in the folder where art is not finding it.

I notice that when I launch the macosx_bundle command there are a lot of messages similar to

ditto: Cannot get the real path for source '/opt/homebrew/lib/libomp.dylib'

the messages are for other libraries also, not just libomp.

Can these be the cause of the problem?

Also, it worths mentioning that starting ART from the build/Release/MacOS folder from command line works fine, trying to start the generated ART.app is what fails with the error:

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: /Applications/ART.app/Contents/Frameworks/libomp.dylib