test
└─ run test
└─ zig test Debug native 6 errors
src/inference/batching.zig:81:30: error: member function expected 0 argument(s), found 1
self.generated_tokens.deinit(allocator);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/Users/myhome/bin/zig-0.14.0/lib/std/array_list.zig:71:13: note: function declared here
pub fn deinit(self: Self) void {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/inference/batching.zig:86:34: error: member function expected 1 argument(s), found 2
try self.generated_tokens.append(allocator, token_id);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/Users/myhome/bin/zig-0.14.0/lib/std/array_list.zig:260:13: note: function declared here
pub fn append(self: *Self, item: T) Allocator.Error!void {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/inference/streaming.zig:183:20: error: member function expected 0 argument(s), found 1
self.chunks.deinit(self.allocator);
~~~~~~~~~~~^~~~~~~
/Users/myhome/bin/zig-0.14.0/lib/std/array_list.zig:71:13: note: function declared here
pub fn deinit(self: Self) void {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
src/inference/streaming.zig:194:24: error: member function expected 1 argument(s), found 2
try self.chunks.append(self.allocator, chunk);
~~~~~~~~~~~^~~~~~~
/Users/myhome/bin/zig-0.14.0/lib/std/array_list.zig:260:13: note: function declared here
pub fn append(self: *Self, item: T) Allocator.Error!void {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.zig:127:31: error: root source file struct 'fs.File' has no member named 'stdout'
const stdout = std.fs.File.stdout().deprecatedWriter();
~~~~~~~~~~~^~~~~~~
/Users/myhome/bin/zig-0.14.0/lib/std/fs/File.zig:1:1: note: struct declared here
/// The OS-specific file descriptor or file handle.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/models/tokenizer.zig:105:30: error: member function expected 1 argument(s), found 2
try vocab.id_to_piece.ensureTotalCapacity(allocator, vocab_size);
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/Users/myhome/bin/zig-0.14.0/lib/std/array_list.zig:441:13: note: function declared here
pub fn ensureTotalCapacity(self: *Self, new_capacity: usize) Allocator.Error!void {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: the following command failed with 6 compilation errors:
/Users/myhome/bin/zig-0.14.0/zig test -ODebug -Mroot=/Users/myhome/Projects/AI/zigllm/src/main.zig --cache-dir /Users/myhome/Projects/AI/zigllm/.zig-cache --global-cache-dir /Users/myhome/.cache/zig --name test --zig-lib-dir /Users/myhome/bin/zig-0.14.0/lib/ --listen=-
Build Summary: 0/3 steps succeeded; 1 failed
test transitive failure
└─ run test transitive failure
└─ zig test Debug native 6 errors
error: the following build command failed with exit code 1:
/Users/myhome/Projects/AI/zigllm/.zig-cache/o/b7a9b7dc45fa22398aeeb085822d20cc/build /Users/myhome/bin/zig-0.14.0/zig /Users/myhome/bin/zig-0.14.0/lib /Users/myhome/Projects/AI/zigllm /Users/myhome/Projects/AI/zigllm/.zig-cache /Users/myhome/.cache/zig --seed 0xd283097b -Z27c81d7586689f25 test
Environment
aarch64-macos0.14.0Bug Description
Attempting to build
zigllmon macOS ARM64 using Zig 0.14.0 results in a build compilation error.Steps to Reproduce
cd zigllmzig build testExpected Behavior
zigllmbuilds successfully without compilation errors.Error Log