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 on Linux due to mark parity #36

Open
ringtailsoftware opened this issue Dec 13, 2024 · 0 comments
Open

Build fails on Linux due to mark parity #36

ringtailsoftware opened this issue Dec 13, 2024 · 0 comments

Comments

@ringtailsoftware
Copy link
Contributor

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
ringtailsoftware added a commit to ringtailsoftware/serial that referenced this issue Dec 13, 2024
Untested, byt now compiles
Only set fields which libc defines
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

1 participant