Skip to content

Sequence of errors when building any of the samples #742

@PavleMiha

Description

@PavleMiha

Hey! I'm trying to build physically_based_rendering_wgpu or triangle_wgpu, using the latest version of the zig compiler (0.14.0-dev.3047+3a4bb47fe) and I'm getting this sequence of errors:

src\utils.zig:66:26: error: enum 'builtin.Type.Pointer.Size' has no member named 'Slice'
                .size = .Slice,
                        ~^~~~~
C:\zig\lib\std\builtin.zig:623:26: note: enum declared here
        pub const Size = enum(u2) {
                         ^~~~
src\pool.zig:94:48: note: called from here
        pub const ColumnSlices = StructOfSlices(Columns);
                                 ~~~~~~~~~~~~~~^~~~~~~~~
src\utils.zig:66:26: error: enum 'builtin.Type.Pointer.Size' has no member named 'Slice'
                .size = .Slice,
                        ~^~~~~
C:\zig\lib\std\builtin.zig:623:26: note: enum declared here
        pub const Size = enum(u2) {
                         ^~~~
src\pool.zig:94:48: note: called from here
        pub const ColumnSlices = StructOfSlices(Columns);
                                 ~~~~~~~~~~~~~~^~~~~~~~~
src\utils.zig:66:26: error: enum 'builtin.Type.Pointer.Size' has no member named 'Slice'
                .size = .Slice,
                        ~^~~~~
C:\zig\lib\std\builtin.zig:623:26: note: enum declared here
        pub const Size = enum(u2) {
                         ^~~~
src\pool.zig:94:48: note: called from here
        pub const ColumnSlices = StructOfSlices(Columns);
                                 ~~~~~~~~~~~~~~^~~~~~~~~
src\utils.zig:66:26: error: enum 'builtin.Type.Pointer.Size' has no member named 'Slice'
                .size = .Slice,
                        ~^~~~~
C:\zig\lib\std\builtin.zig:623:26: note: enum declared here
        pub const Size = enum(u2) {
                         ^~~~

and so on. Zig 0.13 also doesn't work, for a different reason.

The unclear error message seems to be related to an open issue in the zig compiler issues: ziglang/zig#14492

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions