-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
arch-x86_6464-bit x8664-bit x86backend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
Description
Zig Version
0.15.0-dev.1149+4e6a04929
Steps to Reproduce and Observed Behavior
$ git clone https://github.com/leecannon/zig-coreutils.git
$ cd zig-coreutils
$ git checkout x86_backend_bug
$ zig build test_linux
test_linux
└─ run test test_zig-coreutils-linux
└─ compile test test_zig-coreutils-linux Debug native-linux 4 errors
src/system/backend/FileSystem.zig:252:5: error: genSetReg called with a value larger than dst_reg
pub fn readAllFile(self: *FileSystem, ptr: *anyopaque, buffer: []u8) usize {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/system/backend/FileSystem.zig:146:5: error: genSetReg called with a value larger than dst_reg
pub fn createFile(
~~~~^~
src/system/backend/FileSystem.zig:227:5: error: genSetReg called with a value larger than dst_reg
pub fn unlinkFile(self: *FileSystem, ptr: *anyopaque, sub_path: []const u8) UnlinkError!void {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/system/backend/FileSystem.zig:14:5: error: genSetReg called with a value larger than dst_reg
pub fn init(self: *FileSystem, backend: *TestBackend, description: *const FileSystemDescription) !void {
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: the following command failed with 4 compilation errors:
/home/lee/.local/share/zigup/0.15.0-dev.1149+4e6a04929/files/zig test -ODebug -target native-linux -mcpu native --dep options --dep target_os -Mroot=/home/lee/src/zig-coreutils/src/main.zig -Moptions=.zig-cache/c/2dee8b6951699e93b510602ff7463c34/options.zig -Mtarget_os=.zig-cache/c/4316a0f32ba129a46b97a87d9f5cd6e5/options.zig --cache-dir .zig-cache --global-cache-dir /home/lee/.cache/zig --name test_zig-coreutils-linux --zig-lib-dir /home/lee/.local/share/zigup/0.15.0-dev.1149+4e6a04929/files/lib/ --listen=-
Build Summary: 3/6 steps succeeded; 1 failed
test_linux transitive failure
└─ run test test_zig-coreutils-linux transitive failure
└─ compile test test_zig-coreutils-linux Debug native-linux 4 errors
error: the following build command failed with exit code 1:
.zig-cache/o/c82522faed8a5eb006682e6cf0430c17/build /home/lee/.local/share/zigup/0.15.0-dev.1149+4e6a04929/files/zig /home/lee/.local/share/zigup/0.15.0-dev.1149+4e6a04929/files/lib /home/lee/src/zig-coreutils .zig-cache /home/lee/.cache/zig --seed 0x2510f7ce -Zea17eaa5f9c9b166 test_linux
Similar to #20122 but still reproduces.
Expected Behavior
Builds fine like when use_llvm
is true.
Metadata
Metadata
Assignees
Labels
arch-x86_6464-bit x8664-bit x86backend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior