Skip to content

Hello world does not compile on WSL2 on ReFS filesystem #24586

@ivanstepanovftw

Description

@ivanstepanovftw

Zig Version

0.15.0-dev.1228+6dbcc3bd5

Steps to Reproduce and Observed Behavior

Reproducible on Windows 11 with ReFS filesystem.
WSL2 installed with archlinux distro.

Tested on ReFS filesystem listed as type 9p.

$ mount
...
C:\ on /mnt/c type 9p (rw,noatime,aname=drvfs;path=C:\;uid=0;gid=0;symlinkroot=/mnt/,cache=5,access=client,msize=65536,trans=fd,rfd=6,wfd=6)

I haven't tested this on NTFS as I don't have it.

Reproducer:

wsl --install archlinux
cd /mnt/c/Users/User  # <- important
mkdir ziginit
cd ziginit
zig init
zig build

Output:

[root@DESKTOP-P6Q15G3 ziginit]# zig build
error: failed to rename compilation results ('.zig-cache/tmp/1ed140a89cbf7917') into local cache ('.zig-cache/o/e51877309a3ece206e0909199e62559d'): AccessDenied

Expected Behavior

Build is successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions