Closed wmertens closed 2 months ago
Seems related and roughly the only hit on the search engines: https://github.com/ziglang/zig/issues/20243. In principle psm
could be modified to not generate the symbol on apple targets by replacing
.rust_psm_on_stack_end:
SIZE(rust_psm_on_stack,.rust_psm_on_stack_end)
and similar occurrences with
SIZE(rust_psm_on_stack,.)
but it'll be up to you to test and make a PR, as it affects an esoteric linker.
Encountered this using cargo-zigbuild targeting the macOS platform, cross compiling from Linux.
= note: error: symbol .rust_psm_on_stack_end not attached to any (sub)section
note: while parsing /work/target/x86_64-apple-darwin/debug/deps/libpsm-1a4b8c5615279a1b.rlib(e4479bd7784abb10-x86_64.o)
Fixes the issue for me, PR submitted.
I'm trying to cross build qwik's optimizer, with the following command:
and it does the build, but it fails the linker step (using Zig 0.13):