build failure on macOS 12.4: undefined reference to symbol '___emutls_get_address'
Zig Version
0.9.1
Steps to Reproduce
Build zig on macOS 12.4
Expected Behavior
It builds
Actual Behavior
:info:destroot -- Installing: /opt/local/lib
:info:destroot error(link): undefined reference to symbol '___emutls_get_address'
:info:destroot error(link): first referenced in '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.9.1/zig-cache/o/8c8e1d0293d93fa83f2451e5253da17a/build.o'
:info:destroot error: UndefinedSymbolReference
:info:destroot ::
:info:destroot :: ERROR: 1
:info:destroot :: (execute_process)
:info:destroot ::
:info:destroot :: argv: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/zig build --zig-lib-dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.9.1/lib -Dlib-files-only --prefix /opt/local -Dconfig_h=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/config.h install
:info:destroot ::
:info:destroot :: argv[0]: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/zig
:info:destroot :: argv[1]: build
:info:destroot :: argv[2]: --zig-lib-dir
:info:destroot :: argv[3]: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.9.1/lib
:info:destroot :: argv[4]: -Dlib-files-only
:info:destroot :: argv[5]: --prefix
:info:destroot :: argv[6]: /opt/local
:info:destroot :: argv[7]: -Dconfig_h=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/build/config.h
:info:destroot :: argv[8]: install
:info:destroot ::
:info:destroot CMake Error at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_zig/zig/work/zig-0.9.1/cmake/install.cmake:36 (message):
:info:destroot Call Stack (most recent call first):
:info:destroot cmake_install.cmake:63 (include)
:info:destroot make: *** [install/fast] Error 1
See here for the full build log: https://trac.macports.org/attachment/ticket/65333/main.log
Just to add, this is not a macports problem. This is what I get when manually installing:
$ make install DESTDIR=/Users/Admin/Downloads/install_dir/
Consolidate compiler generated dependencies of target embedded_softfloat
[ 77%] Built target embedded_softfloat
Consolidate compiler generated dependencies of target zigcpp
[ 82%] Built target zigcpp
Consolidate compiler generated dependencies of target opt_c_util
[ 83%] Built target opt_c_util
Consolidate compiler generated dependencies of target zigstage1
[ 97%] Built target zigstage1
Consolidate compiler generated dependencies of target zig0
[ 98%] Built target zig0
Consolidate compiler generated dependencies of target zig
[100%] Built target zig
Install the project...
-- Install configuration: "Debug"
-- Installing: /Users/Admin/Downloads/install_dir/Users/Admin/Downloads/zig-0.9.1/build/bin/zig
-- Installing: /Users/Admin/Downloads/zig-0.9.1/build/lib
error(link): undefined reference to symbol '___emutls_get_address'
error(link): first referenced in '/Users/Admin/Downloads/zig-0.9.1/zig-cache/o/17eaee4ecf53c650a4b9641b544d2225/build.o'
thread 982343 panic: attempt to unwrap error: UndefinedSymbolReference
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/MachO.zig:952:13: 0x10753a134 in link.MachO.flushModule (zig1)
return error.UndefinedSymbolReference;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/MachO.zig:411:5: 0x10751b857 in link.MachO.flush (zig1)
try self.flushModule(comp);
^
/Users/Admin/Downloads/zig-0.9.1/src/link.zig:553:23: 0x1074e40ee in link.File.flush (zig1)
.macho => return @fieldParentPtr(MachO, "base", base).flush(comp),
^
/Users/Admin/Downloads/zig-0.9.1/src/Compilation.zig:1930:5: 0x1074dc70b in Compilation.update (zig1)
try self.bin_file.flush(self);
^
/Users/Admin/Downloads/zig-0.9.1/src/main.zig:2952:5: 0x1074707be in main.updateModule (zig1)
try comp.update();
^
/Users/Admin/Downloads/zig-0.9.1/src/main.zig:3532:25: 0x10738eebd in main.cmdBuild (zig1)
else => |e| return e,
^
/Users/Admin/Downloads/zig-0.9.1/src/main.zig:241:9: 0x1073524e1 in main.mainArgs (zig1)
return cmdBuild(gpa, arena, cmd_args);
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-0.9.1/src/link/tapi/yaml.zig:59:28: 0x107961d13 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
???:?:?: 0x10cec1e31 in ___zig_fail_unwrap (???)
/Users/Admin/Downloads/zig-0.9.1/src/stage1.zig:48:43: 0x107351569 in main (zig1)
stage2.mainArgs(gpa, arena, args) catch unreachable;
^
???:?:?: 0x11eb0351d in ??? (???)
???:?:?: 0x0 in ??? (???)
::
:: ERROR: Subprocess aborted
:: (execute_process)
::
:: argv: /Users/Admin/Downloads/zig-0.9.1/build/zig build --zig-lib-dir /Users/Admin/Downloads/zig-0.9.1/lib -Dlib-files-only --prefix /Users/Admin/Downloads/zig-0.9.1/build -Dconfig_h=/Users/Admin/Downloads/zig-0.9.1/build/config.h install
::
:: argv[0]: /Users/Admin/Downloads/zig-0.9.1/build/zig
:: argv[1]: build
:: argv[2]: --zig-lib-dir
:: argv[3]: /Users/Admin/Downloads/zig-0.9.1/lib
:: argv[4]: -Dlib-files-only
:: argv[5]: --prefix
:: argv[6]: /Users/Admin/Downloads/zig-0.9.1/build
:: argv[7]: -Dconfig_h=/Users/Admin/Downloads/zig-0.9.1/build/config.h
:: argv[8]: install
::
CMake Error at /Users/Admin/Downloads/zig-0.9.1/cmake/install.cmake:36 (message):
Call Stack (most recent call first):
cmake_install.cmake:67 (include)
make: *** [install] Error 1
I need a confirmation that this happens for master branch of zig, and then I am happy to re-open the issue.
@andrewrk It does happen with master.
$ make install DESTDIR=/Users/Admin/Downloads/install_dir/
Consolidate compiler generated dependencies of target embedded_softfloat
[ 81%] Built target embedded_softfloat
Consolidate compiler generated dependencies of target zigcpp
[ 85%] Built target zigcpp
Consolidate compiler generated dependencies of target opt_c_util
[ 86%] Built target opt_c_util
Consolidate compiler generated dependencies of target zigstage1
[ 98%] Built target zigstage1
Consolidate compiler generated dependencies of target zig0
[ 99%] Built target zig0
Consolidate compiler generated dependencies of target zig
[100%] Built target zig
Install the project...
-- Install configuration: "Debug"
-- Installing: /Users/Admin/Downloads/install_dir/Users/Admin/Downloads/zig-master/build/stage1/bin/zig
-- Installing: /Users/Admin/Downloads/zig-master/build/stage1/lib
error(link): undefined reference to symbol '___emutls_get_address'
error(link): first referenced in '/Users/Admin/Downloads/zig-master/zig-cache/o/27410e2b0afb4af5f2b47f6752281c3f/build.o'
thread 149628 panic: attempt to unwrap error: UndefinedSymbolReference
/Users/Admin/Downloads/zig-master/src/link/MachO.zig:1126:13: 0x106ab7d9a in link.MachO.flushModule (zig1)
return error.UndefinedSymbolReference;
^
/Users/Admin/Downloads/zig-master/src/link/MachO.zig:444:5: 0x106a983bf in link.MachO.flush (zig1)
return self.flushModule(comp, prog_node);
^
/Users/Admin/Downloads/zig-master/src/link.zig:639:23: 0x106a954b1 in link.File.flush (zig1)
.macho => return @fieldParentPtr(MachO, "base", base).flush(comp, prog_node),
^
/Users/Admin/Downloads/zig-master/src/Compilation.zig:2328:5: 0x106a62577 in Compilation.flush (zig1)
try comp.bin_file.flush(comp, prog_node); // This is needed before reading the error flags.
^
/Users/Admin/Downloads/zig-master/src/Compilation.zig:2297:13: 0x106a57ca1 in Compilation.update (zig1)
try comp.flush(main_progress_node);
^
/Users/Admin/Downloads/zig-master/src/main.zig:3213:5: 0x1069ec8fe in main.updateModule (zig1)
try comp.update();
^
/Users/Admin/Downloads/zig-master/src/main.zig:3807:25: 0x10694e06b in main.cmdBuild (zig1)
else => |e| return e,
^
/Users/Admin/Downloads/zig-master/src/main.zig:250:9: 0x1068f1c77 in main.mainArgs (zig1)
return cmdBuild(gpa, arena, cmd_args);
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
/Users/Admin/Downloads/zig-master/src/link/tapi/yaml.zig:59:28: 0x106f23033 in link.tapi.yaml.Value.asList (zig1)
if (self != .list) return error.TypeMismatch;
^
???:?:?: 0x10c948171 in ___zig_fail_unwrap (???)
/Users/Admin/Downloads/zig-master/src/stage1.zig:48:43: 0x1068f0c99 in main (zig1)
stage2.mainArgs(gpa, arena, args) catch unreachable;
^
???:?:?: 0x11955651d in ??? (???)
???:?:?: 0x0 in ??? (???)
::
:: ERROR: Subprocess aborted
:: (execute_process)
::
:: argv: /Users/Admin/Downloads/zig-master/build/zig build --zig-lib-dir /Users/Admin/Downloads/zig-master/lib -Dlib-files-only --prefix /Users/Admin/Downloads/zig-master/build/stage1 -Dconfig_h=/Users/Admin/Downloads/zig-master/build/config.h install
::
:: argv[0]: /Users/Admin/Downloads/zig-master/build/zig
:: argv[1]: build
:: argv[2]: --zig-lib-dir
:: argv[3]: /Users/Admin/Downloads/zig-master/lib
:: argv[4]: -Dlib-files-only
:: argv[5]: --prefix
:: argv[6]: /Users/Admin/Downloads/zig-master/build/stage1
:: argv[7]: -Dconfig_h=/Users/Admin/Downloads/zig-master/build/config.h
:: argv[8]: install
::
CMake Error at /Users/Admin/Downloads/zig-master/cmake/install.cmake:36 (message):
Call Stack (most recent call first):
cmake_install.cmake:67 (include)
make: *** [install] Error 1
Crash log from macOS
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: zig [37600]
Path: /Users/USER/Downloads/*/zig
Identifier: zig
Version: ???
Code Type: X86-64 (Native)
Parent Process: Exited process [37574]
Responsible: Terminal [1443]
User ID: 501
Date/Time: 2022-06-28 09:18:40.3014 -0400
OS Version: macOS 12.4 (21F79)
Report Version: 12
Anonymous UUID: 05303478-48B3-6E2B-E349-62EEF3C31795
Time Awake Since Boot: 1700 seconds
System Integrity Protection: disabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
ID Vend/Dev
da7c 1f8210de
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff819a0600e __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff819a3c1ff pthread_kill + 263
2 libsystem_c.dylib 0x7ff819987dbe __abort + 139
3 libsystem_c.dylib 0x7ff819987d33 abort + 138
4 zig 0x10c947e79 std.os.abort + 9 (os.zig:505)
5 zig 0x10c948100 std.debug.panicImpl + 640 (debug.zig:365)
6 zig 0x10c947e68 std.builtin.default_panic + 56 (builtin.zig:844)
7 zig 0x10c948172 __zig_fail_unwrap + 114
8 zig 0x1068f0c9a main + 602 (stage1.zig:48)
9 dyld 0x11955651e start + 462
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00000001195d1600 rcx: 0x00007ff7b961cf28 rdx: 0x0000000000000000
rdi: 0x0000000000000103 rsi: 0x0000000000000006 rbp: 0x00007ff7b961cf50 rsp: 0x00007ff7b961cf28
r8: 0x0000000000000000 r9: 0x0000000000989680 r10: 0x00000001195d1600 r11: 0x0000000000000246
r12: 0x0000000000000103 r13: 0x00007ff7b961d568 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007ff819a0600e rfl: 0x0000000000000246 cr2: 0x00007fcbf8122000
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x7ff8199fe000 - 0x7ff819a35fff libsystem_kernel.dylib (*) <61711d11-e776-3bc3-b9a2-6f9f37cb8499> /usr/lib/system/libsystem_kernel.dylib
0x7ff819a36000 - 0x7ff819a41fff libsystem_pthread.dylib (*) <bc574849-1aae-31e7-b350-916dda999d97> /usr/lib/system/libsystem_pthread.dylib
0x7ff819906000 - 0x7ff81998efff libsystem_c.dylib (*) <d9ba0660-744d-3f84-9f80-afb51d450512> /usr/lib/system/libsystem_c.dylib
0x1068e2000 - 0x10e735fff zig (*) <dab37f70-6095-3c95-b62c-22709a8418b8> /Users/USER/Downloads/*/zig
0x119551000 - 0x1195bcfff dyld (*) <b70ce1ec-b902-3852-8268-05de00bfa8d5> /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=513.2M resident=0K(0%) swapped_out_or_unallocated=513.2M(100%)
Writable regions: Total=5.5G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=5.5G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Kernel Alloc Once 8K 1
MALLOC 3.3G 148
MALLOC guard page 24K 6
MALLOC_MEDIUM (reserved) 1.6G 16 reserved VM address space (unallocated)
MALLOC_NANO (reserved) 256.0M 1 reserved VM address space (unallocated)
ObjC additional data 15K 1
STACK GUARD 4K 1
Stack 64.0M 1
VM_ALLOCATE 237.8M 7
VM_ALLOCATE (reserved) 120K 1 reserved VM address space (unallocated)
__DATA 924K 45
__DATA_CONST 10.3M 39
__DATA_DIRTY 66K 24
__LINKEDIT 377.8M 7
__TEXT 135.4M 49
dyld private memory 1152K 3
mapped file 223.5M 2
shared memory 8K 1
=========== ======= =======
TOTAL 6.2G 353
TOTAL, minus reserved VM space 4.4G 353
-----------
Full Report
-----------
{"app_name":"zig","timestamp":"2022-06-28 09:18:45.00 -0400","app_version":"","slice_uuid":"dab37f70-6095-3c95-b62c-22709a8418b8","build_version":"","platform":1,"share_with_app_devs":1,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.4 (21F79)","incident_id":"AFF62ABA-28AE-4B47-B742-549E116AE924","name":"zig"}
{
"uptime" : 1700,
"procLaunch" : "2022-06-28 09:18:18.2207 -0400",
"procRole" : "Unspecified",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacPro7,1",
"procStartAbsTime" : 1741280483489,
"coalitionID" : 1047,
"osVersion" : {
"train" : "macOS 12.4",
"build" : "21F79",
"releaseType" : "User"
},
"captureTime" : "2022-06-28 09:18:40.3014 -0400",
"incident" : "AFF62ABA-28AE-4B47-B742-549E116AE924",
"bug_type" : "309",
"pid" : 37600,
"procExitAbsTime" : 1763360422359,
"cpuType" : "X86-64",
"procName" : "zig",
"procPath" : "\/Users\/USER\/Downloads\/*\/zig",
"parentProc" : "Exited process",
"parentPid" : 37574,
"coalitionName" : "com.apple.Terminal",
"crashReporterKey" : "05303478-48B3-6E2B-E349-62EEF3C31795",
"responsiblePid" : 1443,
"responsibleProc" : "Terminal",
"sip" : "disabled",
"externalGPUInfo" : "ID Vend\/Dev\nda7c 1f8210de\n",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"asi" : {"libsystem_c.dylib":["abort() called"]},
"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":149628,"threadState":{"r13":{"value":140701943846248},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":0},"cr2":{"value":140514017026048},"rdx":{"value":0},"r10":{"value":4720498176,"symbolLocation":0,"symbol":"_main_thread"},"r9":{"value":10000000},"r15":{"value":22},"rbx":{"value":4720498176,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703558557710,"matchesCrashFrame":1},"rbp":{"value":140701943844688},"rsp":{"value":140701943844648},"r12":{"value":259},"rcx":{"value":140701943844648},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":32782,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":25087,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":531902,"symbol":"__abort","symbolLocation":139,"imageIndex":2},{"imageOffset":531763,"symbol":"abort","symbolLocation":138,"imageIndex":2},{"imageOffset":101080697,"sourceLine":505,"sourceFile":"os.zig","symbol":"std.os.abort","imageIndex":3,"symbolLocation":9},{"imageOffset":101081344,"sourceLine":365,"sourceFile":"debug.zig","symbol":"std.debug.panicImpl","imageIndex":3,"symbolLocation":640},{"imageOffset":101080680,"sourceLine":844,"sourceFile":"builtin.zig","symbol":"std.builtin.default_panic","imageIndex":3,"symbolLocation":56},{"imageOffset":101081458,"symbol":"__zig_fail_unwrap","symbolLocation":114,"imageIndex":3},{"imageOffset":60570,"sourceLine":48,"sourceFile":"stage1.zig","symbol":"main","imageIndex":3,"symbolLocation":602},{"imageOffset":21790,"symbol":"start","symbolLocation":462,"imageIndex":4}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703558524928,
"size" : 229376,
"uuid" : "61711d11-e776-3bc3-b9a2-6f9f37cb8499",
"path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703558754304,
"size" : 49152,
"uuid" : "bc574849-1aae-31e7-b350-916dda999d97",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 140703557509120,
"size" : 561152,
"uuid" : "d9ba0660-744d-3f84-9f80-afb51d450512",
"path" : "\/usr\/lib\/system\/libsystem_c.dylib",
"name" : "libsystem_c.dylib"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4404944896,
"size" : 132464640,
"uuid" : "dab37f70-6095-3c95-b62c-22709a8418b8",
"path" : "\/Users\/USER\/Downloads\/*\/zig",
"name" : "zig"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4719972352,
"size" : 442368,
"uuid" : "b70ce1ec-b902-3852-8268-05de00bfa8d5",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
}
],
"sharedCache" : {
"base" : 140703555497984,
"size" : 15220686848,
"uuid" : "398acfb4-57f6-31e0-bc82-e9959e5c92ce"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=513.2M resident=0K(0%) swapped_out_or_unallocated=513.2M(100%)\nWritable regions: Total=5.5G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=5.5G(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nKernel Alloc Once 8K 1 \nMALLOC 3.3G 148 \nMALLOC guard page 24K 6 \nMALLOC_MEDIUM (reserved) 1.6G 16 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 256.0M 1 reserved VM address space (unallocated)\nObjC additional data 15K 1 \nSTACK GUARD 4K 1 \nStack 64.0M 1 \nVM_ALLOCATE 237.8M 7 \nVM_ALLOCATE (reserved) 120K 1 reserved VM address space (unallocated)\n__DATA 924K 45 \n__DATA_CONST 10.3M 39 \n__DATA_DIRTY 66K 24 \n__LINKEDIT 377.8M 7 \n__TEXT 135.4M 49 \ndyld private memory 1152K 3 \nmapped file 223.5M 2 \nshared memory 8K 1 \n=========== ======= ======= \nTOTAL 6.2G 353 \nTOTAL, minus reserved VM space 4.4G 353 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "607844aa04477260f58a8077",
"factorPackIds" : {
"SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
},
"deploymentId" : 240000066
},
{
"rolloutId" : "61af99aeda72d16a4beb7756",
"factorPackIds" : {
"SIRI_DIALOG_ASSETS" : "62b1ed22af63386d44eb350e"
},
"deploymentId" : 240000227
}
],
"experiments" : [
]
}
}
Model: MacPro7,1, BootROM 1731.100.130.0.0, 8 processors, 8-Core Intel Core i9, 3.6 GHz, 32 GB, SMC
Graphics: AMD Radeon RX 6800 XT, AMD Radeon RX 6800 XT, PCIe, 16 GB
Display: BenQ LCD, 3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition), MirrorOff, Online
Display: BenQ LCD, 3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition), MirrorOff, Online
Display: ROG PG258Q, 1920 x 1080 (1080p FHD - Full High Definition), Main, MirrorOff, Online
Memory Module: BANK 0/ChannelA-DIMM0, 16 GB, DDR4, 3466 MHz, Kingston, KHX3200C16D4/16GX
Memory Module: BANK 2/ChannelB-DIMM0, 16 GB, DDR4, 3466 MHz, Kingston, KHX3200C16D4/16GX
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x111), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1710.3)
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Marvell Ethernet, Ethernet, en2
PCI Card: Intel Z390 USB 3.1 xHCI Host Controller, USB controller, Built In
PCI Card: Intel Z390 SATA Controller, AHCI controller, Built In
PCI Card: Apple High Definition Audio Controller, Audio device, Built In
PCI Card: Intel Z390 SPI Controller, Serial bus controller, Built In
PCI Card: Aquantia AQC107, Ethernet Controller, Slot-4
PCI Card: BCM4360 802.11ac Wireless Network Adapter, Network Controller, Slot-5
PCI Card: Intel JHL7540 Titan Ridge Thunderbolt 3 NHI, Thunderbolt 3 Controller, Slot-6
PCI Card: AMD Radeon RX 6800 XT, gpu-controller, Slot-1
PCI Card: Intel JHL7540 Titan Ridge USB 3.1, USB eXtensible Host Controller, Slot-6
PCI Card: pci1b21,625, AHCI Controller, Thunderbolt@189,0,0
PCI Card: pci1b21,625, AHCI Controller, Thunderbolt@190,0,0
PCI Card: display, VGA-Compatible Controller, Slot-2
PCI Card: pci10de,10fa, Audio Device, Thunderbolt@124,0,1
PCI Card: pci1b21,2142, USB eXtensible Host Controller, Thunderbolt@193,0,0
Serial ATA Device: Samsung SSD 860 EVO M.2 500GB, 500.11 GB
Serial ATA Device: ST16000NM000J-2TW103, 16 TB
Serial ATA Device: Samsung SSD 870 EVO 1TB, 1 TB
Serial ATA Device: HL-DT-ST BD-RE BU40N
Serial ATA Device: ST2000LX001-1RG174, 2 TB
Serial ATA Device: ST5000LM000-2AN170, 5 TB
USB Device: USB31Bus
USB Device: USB Storage
USB Device: USB3.1 Hub
USB Device: VLI Product String
USB Device: 4-Port USB 3.0 Hub
USB Device: 4-Port USB 3.0 Hub
USB Device: Ugreen Storage Device
USB Device: USB2.0 Hub
USB Device: USB 2.0 Hub
USB Device: CP1500AVRLCDa
USB Device: HanChen Wise Camera
USB Device: FiiO K3
USB Device: USB 2.0 Hub
USB Device: G502 HERO SE
USB Device: XBOX ACC
USB Device: G815 RGB MECHANICAL GAMING KEYBOARD
USB Device: Magic Trackpad
USB Device: ITE Device(8595)
USB Device: USB2.0 Hub
USB Device: USB2.0 Hub
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: USB2.0 Hub
USB Device: flirc
USB Device: 4-Port USB 2.0 Hub
USB Device: 4-Port USB 2.0 Hub
USB Device: USB30Bus
USB Device: USB30Bus
USB Device: 4-Port USB 3.0 Hub
USB Device: 4-Port USB 3.0 Hub
USB Device: Logitech StreamCam
USB Device: 4-Port USB 2.0 Hub
USB Device: 4-Port USB 2.0 Hub
USB Device: USB31Bus
USB Device: USB2.0 Hub
USB Device: 4-Port USB 2.0 Hub
USB Device: 4-Port USB 2.0 Hub
USB Device: USB3.1 Hub
USB Device: 4-Port USB 3.0 Hub
USB Device: 4-Port USB 3.0 Hub
Thunderbolt Bus:
@andrewrk Can we reopen this now?
@i0ntempest could you paste your cmake invocation in full, and also could you check if this still happens for you with latest master?
We've just found out it's caused by one of the patches applied to MacPorts' LLVM: https://trac.macports.org/ticket/65333, though the exact reason is stil unknown as it shouldn't change anything on new systems.
@i0ntempest is the issue still there?
Yes, it's caused by this patch we use for our clang compilers, though we could not figure out exactly why because it shouldn't change anything on new systems, and why is it telling zig to use emulated tls. EDIT: haven't tried 0.10.0 yet, will report back.
Yes, it's caused by this patch we use for our clang compilers, though we could not figure out exactly why because it shouldn't change anything on new systems, and why is it telling zig to use emulated tls. EDIT: haven't tried 0.10.0 yet, will report back.
Isn't it this line
- return isAndroid() || isOSOpenBSD() || isWindowsCygwinEnvironment();
+ return isAndroid() || isOSOpenBSD() || isWindowsCygwinEnvironment() || isMacOSXVersionLT(10, 7);
Prior to the patch it would unconditionally return false for macOS. Now, it depends.
Yes, it's caused by this patch we use for our clang compilers, though we could not figure out exactly why because it shouldn't change anything on new systems, and why is it telling zig to use emulated tls. EDIT: haven't tried 0.10.0 yet, will report back.
Isn't it this line
- return isAndroid() || isOSOpenBSD() || isWindowsCygwinEnvironment(); + return isAndroid() || isOSOpenBSD() || isWindowsCygwinEnvironment() || isMacOSXVersionLT(10, 7);Prior to the patch it would unconditionally return
falsefor macOS. Now, it depends.
Yea we figured it’s probably that one as well, but it’s supposed to change stuff only on systems older than 10.7, yet I have this problem on 12.6. I’m not a cpp expert, is this isMacOSXVersionLT(10, 7) somehow wrong or misbehaving?
Yes, it's caused by this patch we use for our clang compilers, though we could not figure out exactly why because it shouldn't change anything on new systems, and why is it telling zig to use emulated tls. EDIT: haven't tried 0.10.0 yet, will report back.
Isn't it this line
- return isAndroid() || isOSOpenBSD() || isWindowsCygwinEnvironment(); + return isAndroid() || isOSOpenBSD() || isWindowsCygwinEnvironment() || isMacOSXVersionLT(10, 7);Prior to the patch it would unconditionally return
falsefor macOS. Now, it depends.Yea we figured it’s probably that one as well, but it’s supposed to change stuff only on systems older than 10.7, yet I have this problem on 12.6. I’m not a cpp expert, is this
isMacOSXVersionLT(10, 7)somehow wrong or misbehaving?
Good question. Perhaps the target triple is wrongly assumed to be the lowest default value which happens to be something less than 10.7 in LLVM? We do not pass any version info for default target triple AFAIK as in x86_64-macos.13-none or similar.
EDIT: the next step would be working out what the default version of macOS is assumed by LLVM.
Just tried upgrading to 0.10.0, for whatever reason it's not affected by this (our llvm-15 port also have this patch applied). I'll open a upgrade PR in macports-ports repo and see if it clears the checks there.
Just tried upgrading to 0.10.0, for whatever reason it's not affected by this (our llvm-15 port also have this patch applied). I'll open a upgrade PR in macports-ports repo and see if it clears the checks there.
Good news then. I just recalled that we have landed this change https://github.com/ziglang/zig/pull/11684 after 0.9.1 release changing ABI we pass to LLVM from gnu to none. This could potentially affect the aforementioned function I believe. Anyhow, looking forward to your macports patch!
@i0ntempest can you confirm we can now close this issue?
This is kinda complicated, it’s now affecting arm64 systems only and with a different error message:
Undefined symbols for architecture arm64:
"_panic_stage", referenced from:
_std.debug.panicImpl in zig2.o
"_panic_state_raw", referenced from:
_crash_report.PanicSwitch.preDispatch in zig2.o
_crash_report.PanicSwitch.dispatch in zig2.o
"_zir_state", referenced from:
_crash_report.AnalyzeBody.push in zig2.o
_crash_report.AnalyzeBody.pop in zig2.o
_crash_report.dumpStatusReport in zig2.o
ld: symbol(s) not found for architecture arm64
Since it’s one of MacPort’s patches that is causing this you may close it, but we might have questions later. Given the patches are needed for some other stuff in MacPorts this seems rather impossible to fix…
This is kinda complicated, it’s now affecting arm64 systems only and with a different error message:
Undefined symbols for architecture arm64: "_panic_stage", referenced from: _std.debug.panicImpl in zig2.o "_panic_state_raw", referenced from: _crash_report.PanicSwitch.preDispatch in zig2.o _crash_report.PanicSwitch.dispatch in zig2.o "_zir_state", referenced from: _crash_report.AnalyzeBody.push in zig2.o _crash_report.AnalyzeBody.pop in zig2.o _crash_report.dumpStatusReport in zig2.o ld: symbol(s) not found for architecture arm64Since it’s one of MacPort’s patches that is causing this you may close it, but we might have questions later. Given the patches are needed for some other stuff in MacPorts this seems rather impossible to fix…
Interesting. The error message you submitted comes from the system linker and I would not expect it to fail. Looks like a missing .o on the linker line.
As suggested above, marking this as closed for the time being.
this is still hitting the bug for me
jeff@wasteland zig/build ( tags/0.10.1!)$ cmake .. -DZIG_STATIC_LLVM=ON -DCMAKE_PREFIX_PATH="/opt/local/bin;/opt/local" -DLLVM_CONFIG=llvm-config-mp-15
-- Found ccache /opt/local/bin/ccache
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- 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
-- Configuring zig version 0.10.1
-- Found llvm: /opt/local/libexec/llvm-15/lib/libLLVMWindowsManifest.a;/opt/local/libexec/llvm-15/lib/libLLVMWindowsDriver.a;/opt/local/libexec/llvm-15/lib/libLLVMXRay.a;/opt/local/libexec/llvm-15/lib/libLLVMLibDriver.a;/opt/local/libexec/llvm-15/lib/libLLVMDlltoolDriver.a;/opt/local/libexec/llvm-15/lib/libLLVMCoverage.a;/opt/local/libexec/llvm-15/lib/libLLVMLineEditor.a;/opt/local/libexec/llvm-15/lib/libLLVMXCoreDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMXCoreCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMXCoreDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMXCoreInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMX86TargetMCA.a;/opt/local/libexec/llvm-15/lib/libLLVMX86Disassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMX86AsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMX86CodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMX86Desc.a;/opt/local/libexec/llvm-15/lib/libLLVMX86Info.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyUtils.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMVEDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMVEAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMVECodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMVEDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMVEInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMSystemZDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMSystemZAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMSystemZCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMSystemZDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMSystemZInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMSparcDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMSparcAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMSparcCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMSparcDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMSparcInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMRISCVDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMRISCVAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMRISCVCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMRISCVDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMRISCVInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMPowerPCDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMPowerPCAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMPowerPCCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMPowerPCDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMPowerPCInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMNVPTXCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMNVPTXDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMNVPTXInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMMSP430Disassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMMSP430AsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMMSP430CodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMMSP430Desc.a;/opt/local/libexec/llvm-15/lib/libLLVMMSP430Info.a;/opt/local/libexec/llvm-15/lib/libLLVMMipsDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMMipsAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMMipsCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMMipsDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMMipsInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMLanaiDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMLanaiCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMLanaiAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMLanaiDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMLanaiInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMHexagonDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMHexagonCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMHexagonAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMHexagonDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMHexagonInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMBPFDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMBPFAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMBPFCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMBPFDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMBPFInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMAVRDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMAVRAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMAVRCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMAVRDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMAVRInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMARMDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMARMAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMARMCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMARMDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMARMUtils.a;/opt/local/libexec/llvm-15/lib/libLLVMARMInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUTargetMCA.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUUtils.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64Disassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64AsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64CodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64Desc.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64Utils.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64Info.a;/opt/local/libexec/llvm-15/lib/libLLVMOrcJIT.a;/opt/local/libexec/llvm-15/lib/libLLVMMCJIT.a;/opt/local/libexec/llvm-15/lib/libLLVMJITLink.a;/opt/local/libexec/llvm-15/lib/libLLVMInterpreter.a;/opt/local/libexec/llvm-15/lib/libLLVMExecutionEngine.a;/opt/local/libexec/llvm-15/lib/libLLVMRuntimeDyld.a;/opt/local/libexec/llvm-15/lib/libLLVMOrcTargetProcess.a;/opt/local/libexec/llvm-15/lib/libLLVMOrcShared.a;/opt/local/libexec/llvm-15/lib/libLLVMDWP.a;/opt/local/libexec/llvm-15/lib/libLLVMDebugInfoGSYM.a;/opt/local/libexec/llvm-15/lib/libLLVMOption.a;/opt/local/libexec/llvm-15/lib/libLLVMObjectYAML.a;/opt/local/libexec/llvm-15/lib/libLLVMObjCopy.a;/opt/local/libexec/llvm-15/lib/libLLVMMCA.a;/opt/local/libexec/llvm-15/lib/libLLVMMCDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMLTO.a;/opt/local/libexec/llvm-15/lib/libLLVMCFGuard.a;/opt/local/libexec/llvm-15/lib/libLLVMFrontendOpenACC.a;/opt/local/libexec/llvm-15/lib/libLLVMExtensions.a;/opt/local/libexec/llvm-15/lib/libPolly.a;/opt/local/libexec/llvm-15/lib/libPollyISL.a;/opt/local/libexec/llvm-15/lib/libLLVMPasses.a;/opt/local/libexec/llvm-15/lib/libLLVMObjCARCOpts.a;/opt/local/libexec/llvm-15/lib/libLLVMCoroutines.a;/opt/local/lijeff@wasteland zig/build ( tags/0.10.1!)$ cmake .. -DZIG_STATIC_LLVM=ON -DCMAKE_PREFIX_PATH="/opt/local/bin;/opt/local"
-- Found ccache /opt/local/bin/ccache
-- The C compiler identification is AppleClang 14.0.3.14030022
-- The CXX compiler identification is AppleClang 14.0.3.14030022
-- 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
-- Configuring zig version 0.10.1
-- Found llvm: /opt/local/libexec/llvm-15/lib/libLLVMWindowsManifest.a;/opt/local/libexec/llvm-15/lib/libLLVMWindowsDriver.a;/opt/local/libexec/llvm-15/lib/libLLVMXRay.a;/opt/local/libexec/llvm-15/lib/libLLVMLibDriver.a;/opt/local/libexec/llvm-15/lib/libLLVMDlltoolDriver.a;/opt/local/libexec/llvm-15/lib/libLLVMCoverage.a;/opt/local/libexec/llvm-15/lib/libLLVMLineEditor.a;/opt/local/libexec/llvm-15/lib/libLLVMXCoreDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMXCoreCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMXCoreDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMXCoreInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMX86TargetMCA.a;/opt/local/libexec/llvm-15/lib/libLLVMX86Disassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMX86AsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMX86CodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMX86Desc.a;/opt/local/libexec/llvm-15/lib/libLLVMX86Info.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyUtils.a;/opt/local/libexec/llvm-15/lib/libLLVMWebAssemblyInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMVEDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMVEAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMVECodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMVEDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMVEInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMSystemZDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMSystemZAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMSystemZCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMSystemZDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMSystemZInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMSparcDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMSparcAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMSparcCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMSparcDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMSparcInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMRISCVDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMRISCVAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMRISCVCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMRISCVDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMRISCVInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMPowerPCDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMPowerPCAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMPowerPCCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMPowerPCDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMPowerPCInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMNVPTXCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMNVPTXDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMNVPTXInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMMSP430Disassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMMSP430AsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMMSP430CodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMMSP430Desc.a;/opt/local/libexec/llvm-15/lib/libLLVMMSP430Info.a;/opt/local/libexec/llvm-15/lib/libLLVMMipsDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMMipsAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMMipsCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMMipsDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMMipsInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMLanaiDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMLanaiCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMLanaiAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMLanaiDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMLanaiInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMHexagonDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMHexagonCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMHexagonAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMHexagonDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMHexagonInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMBPFDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMBPFAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMBPFCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMBPFDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMBPFInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMAVRDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMAVRAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMAVRCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMAVRDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMAVRInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMARMDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMARMAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMARMCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMARMDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMARMUtils.a;/opt/local/libexec/llvm-15/lib/libLLVMARMInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUTargetMCA.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUDesc.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUUtils.a;/opt/local/libexec/llvm-15/lib/libLLVMAMDGPUInfo.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64Disassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64AsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64CodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64Desc.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64Utils.a;/opt/local/libexec/llvm-15/lib/libLLVMAArch64Info.a;/opt/local/libexec/llvm-15/lib/libLLVMOrcJIT.a;/opt/local/libexec/llvm-15/lib/libLLVMMCJIT.a;/opt/local/libexec/llvm-15/lib/libLLVMJITLink.a;/opt/local/libexec/llvm-15/lib/libLLVMInterpreter.a;/opt/local/libexec/llvm-15/lib/libLLVMExecutionEngine.a;/opt/local/libexec/llvm-15/lib/libLLVMRuntimeDyld.a;/opt/local/libexec/llvm-15/lib/libLLVMOrcTargetProcess.a;/opt/local/libexec/llvm-15/lib/libLLVMOrcShared.a;/opt/local/libexec/llvm-15/lib/libLLVMDWP.a;/opt/local/libexec/llvm-15/lib/libLLVMDebugInfoGSYM.a;/opt/local/libexec/llvm-15/lib/libLLVMOption.a;/opt/local/libexec/llvm-15/lib/libLLVMObjectYAML.a;/opt/local/libexec/llvm-15/lib/libLLVMObjCopy.a;/opt/local/libexec/llvm-15/lib/libLLVMMCA.a;/opt/local/libexec/llvm-15/lib/libLLVMMCDisassembler.a;/opt/local/libexec/llvm-15/lib/libLLVMLTO.a;/opt/local/libexec/llvm-15/lib/libLLVMCFGuard.a;/opt/local/libexec/llvm-15/lib/libLLVMFrontendOpenACC.a;/opt/local/libexec/llvm-15/lib/libLLVMExtensions.a;/opt/local/libexec/llvm-15/lib/libPolly.a;/opt/local/libexec/llvm-15/lib/libPollyISL.a;/opt/local/libexec/llvm-15/lib/libLLVMPasses.a;/opt/local/libexec/llvm-15/lib/libLLVMObjCARCOpts.a;/opt/local/libexec/llvm-15/lib/libLLVMCoroutines.a;/opt/local/libexec/llvm-15/lib/libLLVMipo.a;/opt/local/libexec/llvm-15/lib/libLLVMInstrumentation.a;/opt/local/libexec/llvm-15/lib/libLLVMVectorize.a;/opt/local/libexec/llvm-15/lib/libLLVMLinker.a;/opt/local/libexec/llvm-15/lib/libLLVMFrontendOpenMP.a;/opt/local/libexec/llvm-15/lib/libLLVMDWARFLinker.a;/opt/local/libexec/llvm-15/lib/libLLVMGlobalISel.a;/opt/local/libexec/llvm-15/lib/libLLVMMIRParser.a;/opt/local/libexec/llvm-15/lib/libLLVMAsmPrinter.a;/opt/local/libexec/llvm-15/lib/libLLVMSelectionDAG.a;/opt/local/libexec/llvm-15/lib/libLLVMCodeGen.a;/opt/local/libexec/llvm-15/lib/libLLVMIRReader.a;/opt/local/libexec/llvm-15/lib/libLLVMAsmParser.a;/opt/local/libexec/llvm-15/lib/libLLVMInterfaceStub.a;/opt/local/libexec/llvm-15/lib/libLLVMFileCheck.a;/opt/local/libexec/llvm-15/lib/libLLVMFuzzMutate.a;/opt/local/libexec/llvm-15/lib/libLLVMTarget.a;/opt/local/libexec/llvm-15/lib/libLLVMScalarOpts.a;/opt/local/libexec/llvm-15/lib/libLLVMInstCombine.a;/opt/local/libexec/llvm-15/lib/libLLVMAggressiveInstCombine.a;/opt/local/libexec/llvm-15/lib/libLLVMTransformUtils.a;/opt/local/libexec/llvm-15/lib/libLLVMBitWriter.a;/opt/local/libexec/llvm-15/lib/libLLVMAnalysis.a;/opt/local/libexec/llvm-15/lib/libLLVMProfileData.a;/opt/local/libexec/llvm-15/lib/libLLVMSymbolize.a;/opt/local/libexec/llvm-15/lib/libLLVMDebugInfoPDB.a;/opt/local/libexec/llvm-15/lib/libLLVMDebugInfoMSF.a;/opt/local/libexec/llvm-15/lib/libLLVMDebugInfoDWARF.a;/opt/local/libexec/llvm-15/lib/libLLVMObject.a;/opt/local/libexec/llvm-15/lib/libLLVMTextAPI.a;/opt/local/libexec/llvm-15/lib/libLLVMMCParser.a;/opt/local/libexec/llvm-15/lib/libLLVMMC.a;/opt/local/libexec/llvm-15/lib/libLLVMDebugInfoCodeView.a;/opt/local/libexec/llvm-15/lib/libLLVMBitReader.a;/opt/local/libexec/llvm-15/lib/libLLVMFuzzerCLI.a;/opt/local/libexec/llvm-15/lib/libLLVMCore.a;/opt/local/libexec/llvm-15/lib/libLLVMRemarks.a;/opt/local/libexec/llvm-15/lib/libLLVMBitstreamReader.a;/opt/local/libexec/llvm-15/lib/libLLVMBinaryFormat.a;/opt/local/libexec/llvm-15/lib/libLLVMTableGen.a;/opt/local/libexec/llvm-15/lib/libLLVMSupport.a;/opt/local/libexec/llvm-15/lib/libLLVMDemangle.a;-lm;-lz;-lzstd;-lcurses;-lxml2 (Required is at least version "15")
-- Found clang: /opt/local/libexec/llvm-15/lib/libclangFrontendTool.a;/opt/local/libexec/llvm-15/lib/libclangCodeGen.a;/opt/local/libexec/llvm-15/lib/libclangFrontend.a;/opt/local/libexec/llvm-15/lib/libclangDriver.a;/opt/local/libexec/llvm-15/lib/libclangSerialization.a;/opt/local/libexec/llvm-15/lib/libclangSema.a;/opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerFrontend.a;/opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerCheckers.a;/opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerCore.a;/opt/local/libexec/llvm-15/lib/libclangAnalysis.a;/opt/local/libexec/llvm-15/lib/libclangASTMatchers.a;/opt/local/libexec/llvm-15/lib/libclangAST.a;/opt/local/libexec/llvm-15/lib/libclangParse.a;/opt/local/libexec/llvm-15/lib/libclangSema.a;/opt/local/libexec/llvm-15/lib/libclangBasic.a;/opt/local/libexec/llvm-15/lib/libclangEdit.a;/opt/local/libexec/llvm-15/lib/libclangLex.a;/opt/local/libexec/llvm-15/lib/libclangARCMigrate.a;/opt/local/libexec/llvm-15/lib/libclangRewriteFrontend.a;/opt/local/libexec/llvm-15/lib/libclangRewrite.a;/opt/local/libexec/llvm-15/lib/libclangCrossTU.a;/opt/local/libexec/llvm-15/lib/libclangIndex.a;/opt/local/libexec/llvm-15/lib/libclangToolingCore.a;/opt/local/libexec/llvm-15/lib/libclangExtractAPI.a;/opt/local/libexec/llvm-15/lib/libclangSupport.a (Required is at least version "15")
-- Found lld: /opt/local/libexec/llvm-15/lib/liblldMinGW.a;/opt/local/libexec/llvm-15/lib/liblldELF.a;/opt/local/libexec/llvm-15/lib/liblldCOFF.a;/opt/local/libexec/llvm-15/lib/liblldWasm.a;/opt/local/libexec/llvm-15/lib/liblldMachO.a;/opt/local/libexec/llvm-15/lib/liblldCommon.a (Required is at least version "15")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/zig/build
jeff@wasteland zig/build ( tags/0.10.1!)$ make -j8
[ 0%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o
[ 2%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o
[ 3%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o
[ 3%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o
[ 3%] Building C object CMakeFiles/opt_c_util.dir/src/stage1/parse_f128.c.o
[ 3%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o
[ 3%] Building CXX object CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o
[ 3%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/f128M_isSignalingNaN.c.o
[ 4%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/extF80M_isSignalingNaN.c.o
[ 4%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF128M.c.o
[ 5%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToExtF80M.c.o
[ 5%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF16UI.c.o
[ 6%] Linking C static library zigcpp/libopt_c_util.a
[ 7%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF32UI.c.o
[ 7%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF64UI.c.o
[ 7%] Built target opt_c_util
[ 7%] Building CXX object CMakeFiles/zigcpp.dir/src/windows_sdk.cpp.o
[ 8%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f128MToCommonNaN.c.o
[ 8%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_extF80MToCommonNaN.c.o
[ 9%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f16UIToCommonNaN.c.o
[ 9%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f32UIToCommonNaN.c.o
[ 10%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f64UIToCommonNaN.c.o
[ 10%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_propagateNaNF128M.c.o
[ 11%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_propagateNaNExtF80M.c.o
[ 11%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_propagateNaNF16UI.c.o
[ 12%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/softfloat_raiseFlags.c.o
[ 12%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_add.c.o
[ 13%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_div.c.o
[ 13%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_eq.c.o
[ 14%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_eq_signaling.c.o
[ 14%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_le.c.o
[ 15%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_le_quiet.c.o
[ 15%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_lt.c.o
[ 16%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_lt_quiet.c.o
[ 16%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_mul.c.o
[ 17%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_mulAdd.c.o
[ 17%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_rem.c.o
[ 18%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_roundToInt.c.o
[ 18%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_sqrt.c.o
[ 19%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_sub.c.o
[ 19%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f16.c.o
[ 20%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f32.c.o
[ 20%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f64.c.o
[ 21%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_extF80M.c.o
[ 21%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i32.c.o
[ 22%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i32_r_minMag.c.o
[ 22%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i64.c.o
[ 23%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i64_r_minMag.c.o
[ 24%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui32.c.o
[ 24%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui32_r_minMag.c.o
[ 25%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui64.c.o
[ 25%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui64_r_minMag.c.o
[ 26%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_add.c.o
[ 26%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_div.c.o
[ 27%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_eq.c.o
[ 27%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_le.c.o
[ 28%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_lt.c.o
[ 28%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_mul.c.o
[ 29%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_rem.c.o
[ 29%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_roundToInt.c.o
[ 30%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_sqrt.c.o
[ 30%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_sub.c.o
[ 31%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_to_f16.c.o
[ 31%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_to_f32.c.o
[ 32%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_to_f64.c.o
[ 32%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/extF80M_to_f128M.c.o
[ 33%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_add.c.o
[ 33%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_div.c.o
[ 34%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_eq.c.o
[ 34%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_isSignalingNaN.c.o
[ 35%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_lt.c.o
[ 35%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_mul.c.o
[ 36%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_rem.c.o
[ 36%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_roundToInt.c.o
[ 37%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_sqrt.c.o
[ 37%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_sub.c.o
[ 38%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_to_extF80M.c.o
[ 38%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_to_f128M.c.o
[ 39%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_to_f64.c.o
[ 39%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f32_to_extF80M.c.o
[ 40%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f32_to_f128M.c.o
[ 40%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f64_to_extF80M.c.o
[ 41%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f64_to_f128M.c.o
[ 41%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f64_to_f16.c.o
[ 42%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/i32_to_f128M.c.o
[ 42%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_add256M.c.o
[ 44%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addCarryM.c.o
[ 44%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addComplCarryM.c.o
[ 45%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addExtF80M.c.o
[ 45%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addF128M.c.o
[ 46%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addMagsF16.c.o
[ 46%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addM.c.o
[ 47%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addMagsF64.c.o
[ 47%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addMagsF32.c.o
[ 47%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecip32_1.c.o
[ 48%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecipSqrt32_1.c.o
[ 48%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecipSqrt_1Ks.c.o
[ 49%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecip_1Ks.c.o
[ 49%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_compare128M.c.o
[ 50%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_compare96M.c.o
[ 51%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_compareNonnormExtF80M.c.o
[ 51%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros16.c.o
[ 51%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros32.c.o
[ 52%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros64.c.o
[ 52%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros8.c.o
[ 53%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_eq128.c.o
[ 53%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_invalidF128M.c.o
[ 54%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_invalidExtF80M.c.o
[ 54%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_isNaNF128M.c.o
[ 55%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_le128.c.o
[ 56%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mul128MTo256M.c.o
[ 56%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_lt128.c.o
[ 57%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mul64To128M.c.o
[ 57%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF128M.c.o
[ 57%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF16.c.o
[ 58%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF32.c.o
[ 58%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF64.c.o
[ 59%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_negXM.c.o
[ 59%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normExtF80SigM.c.o
[ 60%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackMToF128M.c.o
[ 60%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackMToExtF80M.c.o
[ 61%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackToF16.c.o
[ 61%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackToF32.c.o
[ 62%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackToF64.c.o
[ 62%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF128SigM.c.o
[ 63%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF16Sig.c.o
[ 64%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF32Sig.c.o
[ 64%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF64Sig.c.o
[ 65%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_remStepMBy32.c.o
[ 65%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundMToI64.c.o
[ 66%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundMToUI64.c.o
[ 66%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackMToExtF80M.c.o
[ 66%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackToF16.c.o
[ 67%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackMToF128M.c.o
[ 68%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackToF32.c.o
[ 68%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackToF64.c.o
[ 69%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToI32.c.o
[ 69%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToI64.c.o
[ 70%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToUI32.c.o
[ 70%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToUI64.c.o
[ 70%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftNormSigF128M.c.o
[ 71%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftLeftM.c.o
[ 72%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJam256M.c.o
[ 72%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJam32.c.o
[ 73%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJamM.c.o
[ 73%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJam64.c.o
[ 74%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightM.c.o
[ 74%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftLeft64To96M.c.o
[ 75%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftLeftM.c.o
[ 75%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightExtendM.c.o
[ 76%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightJamM.c.o
[ 76%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightJam64.c.o
[ 77%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightM.c.o
[ 77%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_sub1XM.c.o
[ 78%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_sub256M.c.o
[ 78%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subM.c.o
[ 79%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subMagsF16.c.o
[ 79%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subMagsF32.c.o
[ 80%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subMagsF64.c.o
[ 80%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_tryPropagateNaNF128M.c.o
[ 81%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_tryPropagateNaNExtF80M.c.o
[ 81%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_mulAdd.c.o
[ 82%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/softfloat_state.c.o
[ 83%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/ui64_to_f128M.c.o
[ 83%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/ui32_to_f128M.c.o
[ 84%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/ui32_to_extF80M.c.o
[ 84%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/ui64_to_extF80M.c.o
[ 85%] Linking C static library zigcpp/libembedded_softfloat.a
[ 85%] Built target embedded_softfloat
[ 86%] Linking CXX static library zigcpp/libzigcpp.a
[ 86%] Built target zigcpp
[ 86%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/analyze.cpp.o
[ 86%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/bigfloat.cpp.o
[ 86%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/buffer.cpp.o
[ 88%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/errmsg.cpp.o
[ 89%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/astgen.cpp.o
[ 89%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/codegen.cpp.o
[ 90%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/bigint.cpp.o
[ 90%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/error.cpp.o
[ 90%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/heap.cpp.o
[ 91%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/ir.cpp.o
[ 91%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/ir_print.cpp.o
[ 92%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/mem.cpp.o
[ 92%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/os.cpp.o
[ 93%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/parser.cpp.o
[ 93%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/range_set.cpp.o
[ 94%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/softfloat_ext.cpp.o
[ 94%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/stage1.cpp.o
[ 95%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/target.cpp.o
[ 95%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/tokenizer.cpp.o
[ 96%] Building CXX object CMakeFiles/zigstage1.dir/src/stage1/util.cpp.o
[ 97%] Linking CXX static library zigcpp/libzigstage1.a
[ 97%] Built target zigstage1
[ 98%] Building CXX object CMakeFiles/zig1.dir/src/stage1/zig0.cpp.o
[ 98%] Linking CXX executable zig1
[ 98%] Built target zig1
[ 99%] Building stage2 object /tmp/zig/build/zig2.o
[ 99%] Building CXX object CMakeFiles/zig2.dir/src/stage1/empty.cpp.o
[100%] Linking CXX executable zig2
Undefined symbols for architecture arm64:
"_panic_stage", referenced from:
_std.debug.panicImpl in zig2.o
"_panic_state_raw", referenced from:
_crash_report.PanicSwitch.preDispatch in zig2.o
_crash_report.PanicSwitch.dispatch in zig2.o
"_zir_state", referenced from:
_crash_report.AnalyzeBody.push in zig2.o
_crash_report.AnalyzeBody.pop in zig2.o
_crash_report.dumpStatusReport in zig2.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [zig2] Error 1
make[1]: *** [CMakeFiles/zig2.dir/all] Error 2
make: *** [all] Error 2
where i have the following diff applied so that i can build
diff --git a/cmake/Findllvm.cmake b/cmake/Findllvm.cmake
index d86620345..e1e11e52f 100644
--- a/cmake/Findllvm.cmake
+++ b/cmake/Findllvm.cmake
@@ -14,7 +14,7 @@ if(ZIG_USE_LLVM_CONFIG)
while(1)
unset(LLVM_CONFIG_EXE CACHE)
find_program(LLVM_CONFIG_EXE
- NAMES llvm-config-15 llvm-config-15.0 llvm-config150 llvm-config15 llvm-config NAMES_PER_DIR
+ NAMES llvm-config-mp-15 llvm-config-15 llvm-config-15.0 llvm-config150 llvm-config15 llvm-config NAMES_PER_DIR
PATHS
"/mingw64/bin"
"/c/msys64/mingw64/bin"
Having the same issue too.
I'm hitting this as well - MacBook Air M2 2022, macOS 13.4.1 (22F82):
:info:build [100%] Linking CXX executable zig2
:info:build /opt/local/bin/cmake -E cmake_link_script CMakeFiles/zig2.dir/link.txt --verbose=ON
:info:build /opt/local/bin/clang++-mp-15 -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -mmacosx-version-min=13.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk CMakeFiles/zig2.dir/src/stage1/empty.cpp.o zig2.o -o zig2 -L/opt/local/share/cmake/Modules -L/opt/local/libexec/llvm-15 -L/opt/local/libexec/llvm-15/lib -Wl,-rpath,/opt/local/lib zigcpp/libzigstage1.a zigcpp/libopt_c_util.a zigcpp/libembedded_softfloat.a zigcpp/libzigcpp.a /opt/local/libexec/llvm-15/lib/libclangFrontendTool.a /opt/local/libexec/llvm-15/lib/libclangCodeGen.a /opt/local/libexec/llvm-15/lib/libclangFrontend.a /opt/local/libexec/llvm-15/lib/libclangDriver.a /opt/local/libexec/llvm-15/lib/libclangSerialization.a /opt/local/libexec/llvm-15/lib/libclangSema.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerFrontend.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerCheckers.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerCore.a /opt/local/libexec/llvm-15/lib/libclangAnalysis.a /opt/local/libexec/llvm-15/lib/libclangASTMatchers.a /opt/local/libexec/llvm-15/lib/libclangAST.a /opt/local/libexec/llvm-15/lib/libclangParse.a /opt/local/libexec/llvm-15/lib/libclangSema.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerFrontend.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerCheckers.a /opt/local/libexec/llvm-15/lib/libclangStaticAnalyzerCore.a /opt/local/libexec/llvm-15/lib/libclangAnalysis.a /opt/local/libexec/llvm-15/lib/libclangASTMatchers.a /opt/local/libexec/llvm-15/lib/libclangAST.a /opt/local/libexec/llvm-15/lib/libclangParse.a /opt/local/libexec/llvm-15/lib/libclangBasic.a /opt/local/libexec/llvm-15/lib/libclangEdit.a /opt/local/libexec/llvm-15/lib/libclangLex.a /opt/local/libexec/llvm-15/lib/libclangARCMigrate.a /opt/local/libexec/llvm-15/lib/libclangRewriteFrontend.a /opt/local/libexec/llvm-15/lib/libclangRewrite.a /opt/local/libexec/llvm-15/lib/libclangCrossTU.a /opt/local/libexec/llvm-15/lib/libclangIndex.a /opt/local/libexec/llvm-15/lib/libclangToolingCore.a /opt/local/libexec/llvm-15/lib/libclangExtractAPI.a /opt/local/libexec/llvm-15/lib/libclangSupport.a /opt/local/libexec/llvm-15/lib/liblldMinGW.a /opt/local/libexec/llvm-15/lib/liblldELF.a /opt/local/libexec/llvm-15/lib/liblldCOFF.a /opt/local/libexec/llvm-15/lib/liblldWasm.a /opt/local/libexec/llvm-15/lib/liblldMachO.a /opt/local/libexec/llvm-15/lib/liblldCommon.a -lLLVMWindowsManifest -lLLVMWindowsDriver -lLLVMXRay -lLLVMLibDriver -lLLVMDlltoolDriver -lLLVMCoverage -lLLVMLineEditor -lLLVMXCoreDisassembler -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo -lLLVMX86TargetMCA -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info -lLLVMWebAssemblyDisassembler -lLLVMWebAssemblyAsmParser -lLLVMWebAssemblyCodeGen -lLLVMWebAssemblyDesc -lLLVMWebAssemblyUtils -lLLVMWebAssemblyInfo -lLLVMVEDisassembler -lLLVMVEAsmParser -lLLVMVECodeGen -lLLVMVEDesc -lLLVMVEInfo -lLLVMSystemZDisassembler -lLLVMSystemZAsmParser -lLLVMSystemZCodeGen -lLLVMSystemZDesc -lLLVMSystemZInfo -lLLVMSparcDisassembler -lLLVMSparcAsmParser -lLLVMSparcCodeGen -lLLVMSparcDesc -lLLVMSparcInfo -lLLVMRISCVDisassembler -lLLVMRISCVAsmParser -lLLVMRISCVCodeGen -lLLVMRISCVDesc -lLLVMRISCVInfo -lLLVMPowerPCDisassembler -lLLVMPowerPCAsmParser -lLLVMPowerPCCodeGen -lLLVMPowerPCDesc -lLLVMPowerPCInfo -lLLVMNVPTXCodeGen -lLLVMNVPTXDesc -lLLVMNVPTXInfo -lLLVMMSP430Disassembler -lLLVMMSP430AsmParser -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMMipsDisassembler -lLLVMMipsAsmParser -lLLVMMipsCodeGen -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMLanaiDisassembler -lLLVMLanaiCodeGen -lLLVMLanaiAsmParser -lLLVMLanaiDesc -lLLVMLanaiInfo -lLLVMHexagonDisassembler -lLLVMHexagonCodeGen -lLLVMHexagonAsmParser -lLLVMHexagonDesc -lLLVMHexagonInfo -lLLVMBPFDisassembler -lLLVMBPFAsmParser -lLLVMBPFCodeGen -lLLVMBPFDesc -lLLVMBPFInfo -lLLVMAVRDisassembler -lLLVMAVRAsmParser -lLLVMAVRCodeGen -lLLVMAVRDesc -lLLVMAVRInfo -lLLVMARMDisassembler -lLLVMARMAsmParser -lLLVMARMCodeGen -lLLVMARMDesc -lLLVMARMUtils -lLLVMARMInfo -lLLVMAMDGPUTargetMCA -lLLVMAMDGPUDisassembler -lLLVMAMDGPUAsmParser -lLLVMAMDGPUCodeGen -lLLVMAMDGPUDesc -lLLVMAMDGPUUtils -lLLVMAMDGPUInfo -lLLVMAArch64Disassembler -lLLVMAArch64AsmParser -lLLVMAArch64CodeGen -lLLVMAArch64Desc -lLLVMAArch64Utils -lLLVMAArch64Info -lLLVMOrcJIT -lLLVMMCJIT -lLLVMJITLink -lLLVMInterpreter -lLLVMExecutionEngine -lLLVMRuntimeDyld -lLLVMOrcTargetProcess -lLLVMOrcShared -lLLVMDWP -lLLVMDebugInfoGSYM -lLLVMOption -lLLVMObjectYAML -lLLVMObjCopy -lLLVMMCA -lLLVMMCDisassembler -lLLVMLTO -lLLVMCFGuard -lLLVMFrontendOpenACC -lLLVMExtensions -lPolly -lPollyISL -lLLVMPasses -lLLVMObjCARCOpts -lLLVMCoroutines -lLLVMipo -lLLVMInstrumentation -lLLVMVectorize -lLLVMLinker -lLLVMFrontendOpenMP -lLLVMDWARFLinker -lLLVMGlobalISel -lLLVMMIRParser -lLLVMAsmPrinter -lLLVMSelectionDAG -lLLVMCodeGen -lLLVMIRReader -lLLVMAsmParser -lLLVMInterfaceStub -lLLVMFileCheck -lLLVMFuzzMutate -lLLVMTarget -lLLVMScalarOpts -lLLVMInstCombine -lLLVMAggressiveInstCombine -lLLVMTransformUtils -lLLVMBitWriter -lLLVMAnalysis -lLLVMProfileData -lLLVMSymbolize -lLLVMDebugInfoPDB -lLLVMDebugInfoMSF -lLLVMDebugInfoDWARF -lLLVMObject -lLLVMTextAPI -lLLVMMCParser -lLLVMMC -lLLVMDebugInfoCodeView -lLLVMBitReader -lLLVMFuzzerCLI -lLLVMCore -lLLVMRemarks -lLLVMBitstreamReader -lLLVMBinaryFormat -lLLVMTableGen -lLLVMSupport -lLLVMDemangle -lm -lz -lzstd -lcurses -lxml2
:info:build ld: warning: directory not found for option '-L/opt/local/share/cmake/Modules'
:info:build Undefined symbols for architecture arm64:
:info:build "_panic_stage", referenced from:
:info:build _std.debug.panicImpl in zig2.o
:info:build "_panic_state_raw", referenced from:
:info:build _crash_report.PanicSwitch.preDispatch in zig2.o
:info:build _crash_report.PanicSwitch.dispatch in zig2.o
:info:build "_zir_state", referenced from:
:info:build _crash_report.AnalyzeBody.push in zig2.o
:info:build _crash_report.AnalyzeBody.pop in zig2.o
:info:build _crash_report.dumpStatusReport in zig2.o
:info:build ld: symbol(s) not found for architecture arm64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
This looks to me like an upstream issue that should be fixed in machports rather than in Zig.