Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails per instructions #89

Open
foxjazz opened this issue Apr 3, 2024 · 1 comment
Open

build fails per instructions #89

foxjazz opened this issue Apr 3, 2024 · 1 comment

Comments

@foxjazz
Copy link

foxjazz commented Apr 3, 2024

Describe the bug
After cloning repo, cd pbui running zig build . on zig 0.11 and fedora 0.12... versions of zig.

foxjazz@Joes-Mac-mini ~/C/pbui-main (master)> zig build .
/Users/foxjazz/Code/pbui-main/build.zig:12:11: error: unused local constant
const run_step = b.step("run", "Execute PBUI");

ARM silicon. both fedora 16 and native mac fails with above error.

@Operachi061
Copy link

change zig version to 0.7.0 if you want build this and if you get this error:

./src/pwd.zig:66:52: error: expected type '*[4096]u8', found '*[1024]u8'
        var phys_pwd = try std.os.realpath(pwd.?, &buffer);
                                                   ^
./src/pwd.zig:66:52: note: pointer type child '[1024]u8' cannot cast into pointer type child '[4096]u8'
        var phys_pwd = try std.os.realpath(pwd.?, &buffer);
                                                   ^

open editor in ./src/pwd.zig and find var buffer: [1024]u8 = undefined; then change it to var buffer: [4096]u8 = undefined;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants