Skip to content

Build fails on Linux due to mark parity #36

Open
@ringtailsoftware

Description

@ringtailsoftware
zig version
0.13.0

uname -a
Linux howlin 4.15.0-33-generic #36~16.04.1-Ubuntu SMP Wed Aug 15 17:21:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


zig build examples
examples
└─ install echo
   └─ zig build-exe echo Debug native 1 errors
src/serial.zig:855:32: error: no field named 'CMSPAR' in struct 'os.linux.tc_cflag_t__struct_2972'
                settings.cflag.CMSPAR = config.parity == .mark;
                               ^~~~~~
/home/trj/org/zig/zig-linux-x86_64-0.13.0/lib/std/os/linux.zig:5763:20: note: struct declared here
    else => packed struct(u32) {
            ~~~~~~~^~~~~~
referenced by:
    main: examples/echo.zig:16:19
    callMain: /home/trj/org/zig/zig-linux-x86_64-0.13.0/lib/std/start.zig:524:32
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
error: the following command failed with 1 compilation errors:
/home/trj/org/zig/zig-linux-x86_64-0.13.0/zig build-exe -ODebug --dep serial -Mroot=/home/trj/org/zig/serial/examples/echo.zig -Mserial=/home/trj/org/zig/serial/src/serial.zig --cache-dir /home/trj/org/zig/serial/.zig-cache --global-cache-dir /home/trj/.cache/zig --name echo --listen=-
Build Summary: 4/7 steps succeeded; 1 failed (disable with --summary none)
examples transitive failure
├─ zig build-exe echo Debug native 1 errors
└─ install echo transitive failure
   └─ zig build-exe echo Debug native (reused)
error: the following build command failed with exit code 1:
/home/trj/org/zig/serial/.zig-cache/o/6200eed03a0d0657c578d910ebfb459f/build /home/trj/org/zig/zig-linux-x86_64-0.13.0/zig /home/trj/org/zig/serial /home/trj/org/zig/serial/.zig-cache /home/trj/.cache/zig --seed 0x8d50afca -Z76b708a5cf854f53 examples

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