Closed GregoryConrad closed 1 year ago
Please provide a list of steps to reproduce this issue.
After all necessary dependencies installed:
# Slightly modified from my CI (basically just a `cargo zigbuild` with some extra fluff I need):
zig_build () {
local TARGET="$1"
local PLATFORM_NAME="$2"
local LIBNAME="$3"
rustup target add "$TARGET"
cargo zigbuild --target "$TARGET" -r
mkdir "$PLATFORM_NAME"
cp "target/$TARGET/release/$LIBNAME" "$PLATFORM_NAME/"
}
LINUX_LIBNAME=libembedded_milli.so
zig_build aarch64-unknown-linux-gnu linux-arm64 $LINUX_LIBNAME
zig_build x86_64-unknown-linux-gnu linux-x64 $LINUX_LIBNAME
Running above script for this Cargo project: https://github.com/GregoryConrad/mimir/tree/main/packages/mimir/native
Build fails when running on Linux x86-64, compiling to both aarch64-unknown-linux-gnu
and x86_64-unknown-linux-gnu
.
Seems to build fine locally on macOS.
Fixed in zig: https://github.com/ziglang/zig/pull/14680
Until the next major release of Zig is tagged, you can (and probably should, especially for code not written in Zig) use Zig 0.10.1 instead.
This error just started popping up in my CI several days ago after not seeing it before. I noticed 0.16.0 was released recently, but based on the changelog this issue looks unrelated. I just wanted to check here, but I am guessing this is just a missing linker arg over in zig and I should open an issue there?