zigwasm / wasmtime-zig

Zig embedding of Wasmtime
Apache License 2.0
82 stars 8 forks source link

update to zig master 0.10.0 and gyro v0.7.0 #21

Open voigt opened 2 years ago

voigt commented 2 years ago

This is the result of issue #20 - Make this repo build again

The goal of this PR is to

Unfortunately, I struggled to make windows work as described here.

Test Linux MacOS Windows
simple
gcd
linking
memory
interrupt
voigt commented 2 years ago

Any help fixing the windows build highly appreciated :)

Luukdegram commented 2 years ago

Apologies for the very late response, but we're currently working hard to get Zig 0.10.0 ready for release. The error in the CI for Windows unfortunately only points to the build runner. To get the full stack trace of the error, you'd have to run the actual executable. Once I have some extra time, I'll try running it through Wine to see what goes wrong.

voigt commented 2 years ago

Thanks for the response. Sure, take your time - if the outcome is zig v0.10.0, I'm happy to wait :D

voigt commented 2 years ago

With zig master(0.10.0-dev.3602+df507edff) macos now fails with

+ gyro build run -Dexample=simple --search-prefix /Users/runner/work/wasmtime-zig/wasmtime-zig/wasmtime-v0.24.0-x86_64-macos-c-api
dyld: Library not loaded: @rpath/libwasmtime.dylib
  Referenced from: /Users/runner/work/wasmtime-zig/wasmtime-zig/zig-cache/o/8a1a1ed3f58575748954ee0b1aaff77f/simple
  Reason: image not found
The following command terminated unexpectedly:
cd . && /Users/runner/work/wasmtime-zig/wasmtime-zig/zig-cache/o/8a1a1ed3f585757489[54](https://github.com/voigt/wasmtime-zig/runs/7907035715?check_suite_focus=true#step:5:55)ee0b1aaff77f/simple 
The following command exited with error code 1 (expected 0):
cd . && /Users/runner/work/wasmtime-zig/wasmtime-zig/zig-cache/o/503416f6b9e14430bf725d3fe5f0aad8/build /Users/runner/work/wasmtime-zig/wasmtime-zig/zig-macos-x86_64-0.10.0-dev.3604+4f2143bec/zig . zig-cache /Users/runner/.cache/zig run -Dexample=simple --search-prefix /Users/runner/work/wasmtime-zig/wasmtime-zig/wasmtime-v0.24.0-x86_64-macos-c-api