chung-leong / zigar

Enable the use of Zig code in JavaScript project
https://chung-leong.github.io/zigar/
MIT License
182 stars 3 forks source link

Unable to return stdin on MacOS #420

Closed chung-leong closed 4 months ago

chung-leong commented 4 months ago
install
+- WriteFile
   +- zig build-lib call-c-functions ReleaseSmall x86_64-macos 1 errors
/Users/cleong/zigar/zigar-compiler/test/integration/function-calling/call-c-functions.zig:10:19: error: expected type '*cimport.struct___sFILE', found '*const fn () callconv(.Inline) [*c]cimport.struct___sFILE'
/Users/cleong/zigar/zigar-compiler/test/integration/function-calling/call-c-functions.zig:10:19: note: cast discards const qualifier
error: the following command failed with 1 compilation errors:
/Users/cleong/.zvm/0.13.0/zig build-lib -OReleaseSmall -target x86_64-macos -mcpu baseline --dep module -Mroot=/Users/cleong/zigar/zigar-compiler/zig/stub-c.zig -I /Users/cleong/zigar/zigar-compiler/test/integration/function-calling -Mmodule=/Users/cleong/zigar/zigar-compiler/test/integration/function-calling/call-c-functions.zig -lc --cache-dir /private/var/folders/zk/7jg3kvwd72jg_5_1w904mw8m0000gn/T/zigar-build/call-c-functions-e1c4cad2/.zig-cache --global-cache-dir /Users/cleong/.cache/zig --name call-c-functions -dynamic -install_name @rpath/libcall-c-functions.dylib --listen=- 
Build Summary: 0/3 steps succeeded; 1 failed (disable with --summary none)
install transitive failure
+- WriteFile transitive failure
   +- zig build-lib call-c-functions ReleaseSmall x86_64-macos 1 errors
   +- zig build-lib call-c-functions ReleaseSmall x86_64-macos (reused)
error: the following build command failed with exit code 1:
/private/var/folders/zk/7jg3kvwd72jg_5_1w904mw8m0000gn/T/zigar-build/call-c-functions-e1c4cad2/.zig-cache/o/fa4aea9e11ff66e9be43498e79f1d8d7/build /Users/cleong/.zvm/0.13.0/zig /private/var/folders/zk/7jg3kvwd72jg_5_1w904mw8m0000gn/T/zigar-build/call-c-functions-e1c4cad2 /private/var/folders/zk/7jg3kvwd72jg_5_1w904mw8m0000gn/T/zigar-build/call-c-functions-e1c4cad2/.zig-cache /Users/cleong/.cache/zig --seed 0xaefe377f -Z4ed46fcf8cdddfff -Doptimize=ReleaseSmall -Dtarget=x86_64-macos