I tried to build channel on FreeBSD and got this error:
install
└─ install channel
└─ compile exe channel Debug native 1 errors
src/main.zig:177:32: error: expected type '[]c.pollfd__struct_24834', found '*[2]os.linux.pollfd'
_ = try std.posix.poll(&pollfds, -1);
^~~~~~~~
src/main.zig:177:32: note: pointer type child 'os.linux.pollfd' cannot cast into pointer type child 'c.pollfd__struct_24834'
/usr/local/lib/zig/std/os/linux.zig:7427:27: note: struct declared here
pub const pollfd = extern struct {
~~~~~~~^~~~~~
/usr/local/lib/zig/std/c.zig:4306:20: note: struct declared here
else => extern struct {
~~~~~~~^~~~~~
/usr/local/lib/zig/std/posix.zig:1003:18: note: parameter type declared here
pub fn poll(fds: []pollfd, timeout: i32) PollError!usize {
^~~~~~~~
referenced by:
callMain [inlined]: /usr/local/lib/zig/std/start.zig:737:30
callMainWithArgs [inlined]: /usr/local/lib/zig/std/start.zig:638:20
main: /usr/local/lib/zig/std/start.zig:663:28
1 reference(s) hidden; use '-freference-trace=4' to see all references
error: 1 compilation errors
failed command: /usr/local/bin/zig build-exe -I/usr/local/include -L/usr/local/lib -lxkbcommon -ODebug --dep wayland --dep tributary --dep c -Mroot=/home/atom/soft/channel/src/main.zig -I/usr/local/include -I/usr/local/include/libepoll-shim -L/usr/local/lib -lwayland-client -lm -ODebug -Mwayland=.zig-cache/o/cceb8e95059809b64c7f8107e296df5e/wayland.zig -ODebug --dep options --dep wayland -Mtributary=/home/atom/soft/channel/zig-pkg/tributary-0.2.0-tqCfWzeVAACK6V4N7B3kCRvYV8Q1YUWzN_71dgisbvdt/src/root.zig -I/usr/local/include -ODebug -Mc=.zig-cache/o/1857904c3456a65996fd1a96bde223dd/c_headers.zig -Moptions=.zig-cache/c/b5c8484f73495c7c4aa2d625b0e70dcf/options.zig -lc --cache-dir .zig-cache --global-cache-dir /home/atom/.cache/zig --name channel --zig-lib-dir /usr/local/lib/zig/ --listen=-
Build Summary: 4/7 steps succeeded (1 failed)
install transitive failure
└─ install channel transitive failure
└─ compile exe channel Debug native 1 errors
error: the following build command failed with exit code 1:
.zig-cache/o/394383837cbe23dd91d643c8bae23891/build /usr/local/bin/zig /usr/local/lib/zig /home/atom/soft/channel .zig-cache /home/atom/.cache/zig --seed 0x2a29288d -Z1499a456fbbc3dd7
I'm on FreeBSD 15.0 latest repository. Zig version on this repository is 0.16.0 and my cpu is amd64.