You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to compile this code with 4f8c26d , the following errors arise :
/home/pvd/Devel/zigtests/src/c.zig:1:19: error: compiler bug: @cImport generated invalid zig code
pub const libuv = @cImport({
^
?.c:1:1: note: redefinition of 'uv_connect_t'
TODO: remember C source location to display here
^
?.c:1:1: note: previous definition is here
TODO: remember C source location to display here
^
/home/pvd/Devel/zigtests/src/c.zig:1:19: error: compiler bug: @cImport generated invalid zig code
pub const libuv = @cImport({
^
?.c:1:1: note: redefinition of 'uv_connect_t'
TODO: remember C source location to display here
^
?.c:1:1: note: previous definition is here
TODO: remember C source location to display here
^
/home/pvd/Devel/zigtests/src/c.zig:1:19: error: compiler bug: @cImport generated invalid zig code
pub const libuv = @cImport({
^
?.c:1:1: note: redefinition of 'uv_shutdown_t'
TODO: remember C source location to display here
^
?.c:1:1: note: previous definition is here
TODO: remember C source location to display here
^
/home/pvd/Devel/zigtests/src/c.zig:1:19: error: compiler bug: @cImport generated invalid zig code
pub const libuv = @cImport({
^
?.c:1:1: note: redefinition of 'uv_shutdown_t'
TODO: remember C source location to display here
^
?.c:1:1: note: previous definition is here
TODO: remember C source location to display here
^
/home/pvd/Devel/zigtests/src/c.zig:1:19: error: compiler bug: @cImport generated invalid zig code
pub const libuv = @cImport({
^
?.c:1:1: note: redefinition of 'uv_pipe_t'
TODO: remember C source location to display here
^
?.c:1:1: note: previous definition is here
TODO: remember C source location to display here
^
/home/pvd/Devel/zigtests/src/c.zig:1:19: error: compiler bug: @cImport generated invalid zig code
pub const libuv = @cImport({
^
?.c:1:1: note: redefinition of 'uv_pipe_t'
TODO: remember C source location to display here
^
?.c:1:1: note: previous definition is here
TODO: remember C source location to display here
^
/home/pvd/Devel/zigtests/src/c.zig:1:19: error: compiler bug: @cImport generated invalid zig code
pub const libuv = @cImport({
^
?.c:1:1: note: redefinition of 'uv_read2_cb'
TODO: remember C source location to display here
^
?.c:1:1: note: previous definition is here
TODO: remember C source location to display here
^
/home/pvd/Devel/zigtests/src/c.zig:1:19: error: compiler bug: @cImport generated invalid zig code
pub const libuv = @cImport({
^
?.c:1:1: note: redefinition of 'uv_read2_cb'
TODO: remember C source location to display here
^
?.c:1:1: note: previous definition is here
TODO: remember C source location to display here
^
/home/pvd/Devel/zigtests/src/main.zig:6:16: error: no member named 'uv_loop_init' in '(C import)'
_ = c.libuv.uv_loop_init(loop);
^
/home/pvd/Devel/zigtests/src/main.zig:10:16: error: no member named 'uv_loop_close' in '(C import)'
_ = c.libuv.uv_loop_close(loop);
^
The following command exited with error code 1:
zig build-exe /home/pvd/Devel/zigtests/src/main.zig --cache-dir /home/pvd/Devel/zigtests/zig-cache --output /home/pvd/Devel/zigtests/zig-cache/main --name main --library uv
Build failed. Use the following command to reproduce the failure:
./zig-cache/build zig . ./zig-cache
Maybe it has something to do with the fact that libuv uses a lot of 'opaque' structs to hide private members with C macro magic.
The text was updated successfully, but these errors were encountered:
When trying to compile this code with 4f8c26d , the following errors arise :
Maybe it has something to do with the fact that libuv uses a lot of 'opaque' structs to hide private members with C macro magic.
The text was updated successfully, but these errors were encountered: