We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I ran zig translate-c -isystem /usr/include on lpeg's lptree.c and it successfully generated a zig file.
zig translate-c -isystem /usr/include
However, trying to build it as a library zig build-lib translated.zig results in:
zig build-lib translated.zig
/home/daurnimator/src/zig-peg/translated.zig:868:12: error: cast increases pointer alignment return @ptrCast([*c]Pattern, luaL_checkudata(L, idx, c"lpeg-pattern")); ^ /home/daurnimator/src/zig-peg/translated.zig:868:49: note: '?*c_void' has alignment 1 return @ptrCast([*c]Pattern, luaL_checkudata(L, idx, c"lpeg-pattern")); ^ /home/daurnimator/src/zig-peg/translated.zig:868:21: note: '[*c]struct_Pattern' has alignment 8 return @ptrCast([*c]Pattern, luaL_checkudata(L, idx, c"lpeg-pattern")); ^
I assume zig translate-c needs to gain support for emitting alignment casts?
Note, this error is also reported as part of #2257 (comment)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I ran
zig translate-c -isystem /usr/include
on lpeg's lptree.c and it successfully generated a zig file.However, trying to build it as a library
zig build-lib translated.zig
results in:I assume zig translate-c needs to gain support for emitting alignment casts?
Note, this error is also reported as part of #2257 (comment)
The text was updated successfully, but these errors were encountered: