-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
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
wasmer 1.0.0 #68341
wasmer 1.0.0 #68341
Conversation
Won't work for ARM yet; needs a new |
Upstream issue: wasmerio/wasmer#1986 |
@carlocab Looks like version 1.0.0 fails for a different reason unrelated to ➜ wasmer git:(aa03cab26) cargo install --path .
error: specified package `wasmer-workspace v1.0.0 (/Users/ezekielelin/temp_dev/wasmer)` has no binaries Might be misinterpreting this though, apologies if I am |
@ezfe Hm, yes, that's entirely possible. I don't have access to an ARM machine myself, and I have a large number of packages to look at, so my method of identifying stale lock files might be a bit crude... That said, CI (#68089) didn't report a failure for wasmer on ARM when we dropped the If you've got an ARM machine you can use, and don't mind looking into what's going on, I'd greatly appreciate it. |
@carlocab Yup I have an ARM MacBook Air - I do see it's failing with the error I listed (same as when I run brew install with the modified formula). If there's something I can do to help debug this please let me know what to run. I'm not super familiar with Rust so I don't know how to assess that error beyond its face value. |
Thanks, @ezfe. Try reporting the error message you saw over at wasmerio/wasmer#1986; they'll have a better idea of what's going on with your build. |
So we've learned that the install command needs to change the |
@ezfe The @chenrui333 I think if we change the build command to lib/cli it should build. |
Update: I was able to build it succesfully locally on my M1 machine by running:
|
I pushed a commit that I think does the same thing. Will change it if it turns out to not be equivalent. |
@carlocab This works:
So I'd assume the formula should work now too. We'll see. |
Test failed, but I guess that's progress:
|
Yep, I tried generating a
I was thinking, maybe we are only building the CLI, and the Wasmer engine needs to be built separately as of 1.0.0.. The documentation for Wasmer says that to build wasmer from source you need to run I tried compiling with that on my machine, and nope, same error.
Edit: Interesting, so the same failure is happening on all versions of macOS - 10.15 and 10.14 builds as well, which are on Intel. I wanted to check one more thing to see if my generated pub fn main() {}
#[no_mangle]
pub extern fn sum(a: i32, b: i32) -> i32 {
a + b
} and compiled it using
Same error. |
@carlocab I was able to get it to build and run on my M1 local machine with this:
🎉🎉🎉 Looks like as of Wasmer 1.0, you have to specify which compiler it should use. The default compiler, which is compatible with arm64 as well as being the one provided in their CI releases, is Edit: should Homebrew build rust binaries with the |
@richiksc Sorry, I haven't really had the chance to look at this properly. Can you open a new PR with the changes you propose? Ping me when you do so I can add the flag to force the ARM runner to attempt a build. |
Created with
brew bump-formula-pr
.