Opened 10 months ago

Closed 8 weeks ago

#69072 closed defect (fixed)

zig @0.11.0: Undefined symbols for architecture arm64

Reported by: eric-j-ason Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: mascguy (Christopher Nielsen)
Port: zig

Description

Error while building zig. The following might be the essential part from the log:

: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)

The full log is attached.

Attachments (1)

main.log (2.2 MB) - added by eric-j-ason 10 months ago.

Change History (5)

Changed 10 months ago by eric-j-ason

Attachment: main.log added

comment:1 Changed 10 months ago by jmroot (Joshua Root)

Port: zig added

comment:2 Changed 7 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:3 Changed 7 months ago by mascguy (Christopher Nielsen)

While the original missing symbol issue seems to be resolved, there's a new issue:

[100%] Building stage3

cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_zig/zig/work/zig-0.11.0 &&
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_zig/zig/work/build/zig2 build
--prefix /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_zig/zig/work/build/stage3
--zig-lib-dir /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_zig/zig/work/zig-0.11.0/lib
-Dconfig_h=/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_zig/zig/work/build/config.h
-Denable-llvm -Doptimize=ReleaseFast -Dstrip -Dno-langref -Dno-autodocs -Dtarget=native -Dcpu=native -Dversion-string=0.11.0


dyld[72538]: Library not loaded: @rpath/libc++.1.dylib

  Referenced from: <50933C3E-F4C8-3275-95C8-79E0C1D46C2C>
    /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_zig/zig/work/build/zig2

  Reason: tried: '/opt/local/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libc++.1.dylib' (no such file),
    '/opt/local/lib/libc++.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libc++.1.dylib' (no such file)

comment:4 Changed 8 weeks ago by i0ntempest

Resolution: fixed
Status: newclosed

zig 0.13 now builds on all arm64 macOS. If this is still an issue for you please reopen.

Note: See TracTickets for help on using tickets.