Opened 4 months ago

Last modified 4 weeks ago

#69072 new defect

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 4 months ago.

Change History (4)

Changed 4 months ago by eric-j-ason

Attachment: main.log added

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

Port: zig added

comment:2 Changed 4 weeks ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:3 Changed 4 weeks 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)
Note: See TracTickets for help on using tickets.