zig icon indicating copy to clipboard operation
zig copied to clipboard

container 'std.os.wasi' has no member called 'PATH_MAX'

Open fschutt opened this issue 3 years ago • 0 comments

Zig Version

0.10.0-dev.3361+c650ccfca

Steps to Reproduce

curl https://ziglang.org/builds/zig-linux-x86_64-0.10.0-dev.3361+c650ccfca.tar.xz --out compiler.tar.gz
curl https://ziglang.org/builds/zig-0.10.0-dev.3361+c650ccfca.tar.xz --out source.tar.gz
tar -xvf compiler.tar.gz
tar -xvf source.tar.gz
cd zig-0.10.0-dev.3361+c650ccfca
../zig-linux-x86_64-0.10.0-dev.3361+c650ccfca/zig build -Dtarget=wasm32-wasi -Drelease

Expected Behavior

The compilation should run properly and output a zig.wasm file.

Actual Behavior

Code Generation [306/3123] std.array_list.ArrayListAligned(
[]const u8,null).addOCode Generation [1368/3123] std.io.reader.Reader
(std.fs.file.File,std.os.ReadErr/home/fs/Development/zig2wapm/test/zig-linux-x86_64-0.10.0-dev.3361+c650ccfca/lib/std/os.zig:110:28:
error: container 'std.os.wasi' has no member called 'PATH_MAX' pub
const PATH_MAX = system.PATH_MAX; ^ error: zig... error: The
following command exited with error code 1:
/home/fs/Development/zig2wapm/test/zig-linux-x86_64-0.10.0-dev.3361+c650ccfca/zig
 build-exe --stack
 33554432 /home/fs/Development/zig2wapm/test/zig-0.10.0-dev.3361+c650ccfca/src/main.zig
 -OReleaseFast --cache-dir /home/fs/Development/zig2wapm/test/zig-0.10.0-dev.3361+c650ccfca/zig-cache
 --global-cache-dir /home/fs/.cache/zig --name zig -target
 wasm32-wasi -mcpu generic --pkg-begin
 build_options /home/fs/Development/zig2wapm/test/zig-0.10.0-dev.3361+c650ccfca/zig-cache/options/H25oHUsQvh3OAVkivvW7ZX_7D1Ru6AcnMvyQQvp6rkx76oq2BMP7kyEjXXxTh91d
 --pkg-end -fno-build-id --enable-cache error: the following build
 command failed with exit code 1:
/home/fs/Development/zig2wapm/test/zig-0.10.0-dev.3361+c650ccfca/zig-cache/o/2af012f33543660b4765d434165bf363/build
 /home/fs/Development/zig2wapm/test/zig-linux-x86_64-0.10.0-dev.3361+c650ccfca/zig
 /home/fs/Development/zig2wapm/test/zig-0.10.0-dev.3361+c650ccfca /home/fs/Development/zig2wapm/test/zig-0.10.0-dev.3361+c650ccfca/zig-cache
 /home/fs/.cache/zig -Dtarget=wasm32-wasi -Drelease

fschutt avatar Jul 28 '22 15:07 fschutt