Skip to content

unable to build zig from source on NetBSD #13680

Description

@nikkicoon

Zig Version

commit 4e07894

Steps to Reproduce and Observed Behavior

Thanks for fixing #13673
Now this fails with:

[ 98%] Built target zig1
[ 99%] Building stage2 object /usr/work/lang/zig/work/zig-0.10.0/zig2.o
./lib/std/os.zig:5300:17: error: querying for canonical path of a handle is unsupported on this host
        else => @compileError("querying for canonical path of a handle is unsupported on this host"),
                ^
./lib/std/fs.zig:60:38: error: container 'std.os' has no member called 'MAXNAMLEN'
    .netbsd, .openbsd, .solaris => os.MAXNAMLEN,
                                     ^
--- zig2.o ---
*** [zig2.o] Error code 1

make[2]: stopped in /usr/work/lang/zig/work/zig-0.10.0
1 error

make[2]: stopped in /usr/work/lang/zig/work/zig-0.10.0
--- CMakeFiles/zig2.dir/all ---
*** [CMakeFiles/zig2.dir/all] Error code 2

make[1]: stopped in /usr/work/lang/zig/work/zig-0.10.0
1 error

make[1]: stopped in /usr/work/lang/zig/work/zig-0.10.0
*** [all] Error code 2

make: stopped in /usr/work/lang/zig/work/zig-0.10.0
1 error

make: stopped in /usr/work/lang/zig/work/zig-0.10.0
*** Error code 2

Stop.

same in the local git checkout of zig.

Expected Behavior

it compiles

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-netbsdNetBSD

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions