Created
June 30, 2020 17:31
-
-
Save leroycep/9b5fb408620ceccebe3d76fa6cef39b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2000 lines of generated zig... | |
const struct_unnamed_36 = extern struct {}; | |
pub const wasmer_instance_t = struct_unnamed_36; | |
// 2000 more lines of generated zig... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ zig build run | |
./zig-cache/o/Qpf3TB-9wLwns4jjQMCD_uAATIgvGgnCGcHG7FNlklwXtQshteW6QCmtBG4ykhZP/cimport.zig:2357:48: error: C pointers cannot point to non-C-ABI-compatible type '[*c].cimport:1:20.struct_unnamed_36' | |
pub extern fn wasmer_instantiate(instance: [*c][*c]wasmer_instance_t, wasm_bytes: [*c]u8, wasm_bytes_len: u32, imports: [*c]wasmer_import_t, imports_len: c_int) wasmer_result_t; | |
^ | |
./zig-cache/o/Qpf3TB-9wLwns4jjQMCD_uAATIgvGgnCGcHG7FNlklwXtQshteW6QCmtBG4ykhZP/cimport.zig:2357:44: note: referenced here | |
pub extern fn wasmer_instantiate(instance: [*c][*c]wasmer_instance_t, wasm_bytes: [*c]u8, wasm_bytes_len: u32, imports: [*c]wasmer_import_t, imports_len: c_int) wasmer_result_t; | |
^ | |
./server/main.zig:14:28: note: referenced here | |
const compile_result = wasmer_instantiate(wasm_instance, wasm_bytes.ptr, wasm_bytes.len, imports, imports.len); | |
^ | |
block-place-server...The following command exited with error code 1: | |
/nix/store/yqprsqpmwx0bhn1nb1k3d316ssqwajrf-zig-0.6.0/bin/zig build-exe /home/leroycep/projects/fun/block-place/server/main.zig --library c --library enet --library wasmer --cache-dir /home/leroycep/projects/fun/block-place/zig-cache --name block-place-server -I /nix/store/1whil4kyawwh3wfcw3xc6859p7wi8hh2-wasmer-0.17.1/include -L /nix/store/1whil4kyawwh3wfcw3xc6859p7wi8hh2-wasmer-0.17.1/lib --cache on | |
Build failed. The following command failed: | |
/home/leroycep/projects/fun/block-place/zig-cache/o/fafygmaVwvxiMVoi7iWEm6AGTUi_B9e24FyzWpPTKEeK5wAELc6U47sI0j5g39gJ/build /nix/store/yqprsqpmwx0bhn1nb1k3d316ssqwajrf-zig-0.6.0/bin/zig /home/leroycep/projects/fun/block-place /home/leroycep/projects/fun/block-place/zig-cache run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment