Skip to content
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

Experimental Support for Android (x86_64 and AArch64) #1292

Merged
merged 8 commits into from
Mar 23, 2020

Conversation

igrep
Copy link
Contributor

@igrep igrep commented Mar 12, 2020

Description

Related: #1113

Current Status

Review

  • Add a short description of the the change to the CHANGELOG.md file

Note

I'm happy given any hint to test of Android specific code (esp. in libc I added in rust-lang/libc#1622).

@igrep
Copy link
Contributor Author

igrep commented Mar 12, 2020

  • I confirmed the tests of wasmer-runtime-core pass on Android x86_64.
    - The other tests including ones on AArch64 seems too hard so far... 😓

I've also pushed the test scripts in another branch.
Can I add them to the CI pipelines?

@syrusakbary
Copy link
Member

Awesome!

Let's add this change into the CHANGELOG.md, so once libc publishes the new version we can merge it :)

@syrusakbary
Copy link
Member

Can I add them to the CI pipelines?

We can merge the android tests in a separate PR. @igrep do you have any insight in how long take the tests to run with Android?

@igrep
Copy link
Contributor Author

igrep commented Mar 12, 2020

do you have any insight in how long take the tests to run with Android?

Here's the result of time of the test script on my laptop after cargo clean and adding --no-cache option to the docker command in the script:

> time ci/run-docker.sh x86_64-linux-android --manifest-path=lib/runtime-core-tests/Cargo.toml &> wasmer-test-result.txt

real    11m49.587s
user    0m0.340s
sys     0m0.355s

The test itself is fast enough: Most of the time is building the docker image.

Copy link
Contributor

@MarkMcCaskey MarkMcCaskey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm excited about this -- thanks!!

lib/singlepass-backend/src/lib.rs Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
@igrep igrep force-pushed the android branch 2 times, most recently from 67c9805 to 61f8278 Compare March 18, 2020 02:27
igrep added a commit to igrep/wasmer that referenced this pull request Mar 18, 2020
@igrep igrep marked this pull request as ready for review March 18, 2020 02:31
Cargo.toml Outdated Show resolved Hide resolved
@syrusakbary
Copy link
Member

I'll merge the PR and do extra work in a PR apart

@syrusakbary
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Mar 18, 2020
1292: Experimental Support for Android (x86_64 and AArch64) r=syrusakbary a=igrep

# Description

Related: #1113

# Current Status

- ~~This pull request is a draft until the next version of libc crate (which should contain rust-lang/libc#1622
    - Now released! 🎉
- I confirmed the tests of wasmer-runtime-core pass on Android x86\_64.
    - The other tests including ones on AArch64 seems too hard so far... 😓 

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file

# Note

I'm happy given any hint to test of Android specific code (esp. in libc I added in rust-lang/libc#1622).


Co-authored-by: Yuji Yamamoto <yuji-yamamoto@iij.ad.jp>
Co-authored-by: YAMAMOTO Yuji <yuji-yamamoto@iij.ad.jp>
@bors
Copy link
Contributor

bors bot commented Mar 18, 2020

Build failed

@igrep
Copy link
Contributor Author

igrep commented Mar 19, 2020

I hasten to tell an issue before merging: I found a stack overflow error when running a simple WASI executable ("Hello, world" in Rust) on my Android phone (aarch64), not on an emulator (x86_64)

igrep added a commit to igrep/wasmer that referenced this pull request Mar 19, 2020
@igrep
Copy link
Contributor Author

igrep commented Mar 19, 2020

One more note: the first error reported by #1292 (comment) should have been fixed.

@syrusakbary
Copy link
Member

bors try

@syrusakbary
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Mar 19, 2020
1292: Experimental Support for Android (x86_64 and AArch64) r=syrusakbary a=igrep

# Description

Related: #1113

# Current Status

- ~~This pull request is a draft until the next version of libc crate (which should contain rust-lang/libc#1622
    - Now released! 🎉
- I confirmed the tests of wasmer-runtime-core pass on Android x86\_64.
    - The other tests including ones on AArch64 seems too hard so far... 😓 

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file

# Note

I'm happy given any hint to test of Android specific code (esp. in libc I added in rust-lang/libc#1622).


Co-authored-by: Yuji Yamamoto <yuji-yamamoto@iij.ad.jp>
Co-authored-by: YAMAMOTO Yuji <yuji-yamamoto@iij.ad.jp>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
@bors
Copy link
Contributor

bors bot commented Mar 19, 2020

Build failed

  • wasmerio.wasmer

bors bot added a commit that referenced this pull request Mar 20, 2020
@bors
Copy link
Contributor

bors bot commented Mar 20, 2020

try

Build failed

I'll send a PR after rust-lang/libc#1622 is merged and released
The new version of libc contains changes necessary to build
wasmer-runtime-core for Android.

See rust-lang/libc#1622 for details.
Currently, at the time of 2020/03/11, testing on AArch64 is not supported in the upstream repository
@igrep
Copy link
Contributor Author

igrep commented Mar 23, 2020

bors try

@bors
Copy link
Contributor

bors bot commented Mar 23, 2020

🔒 Permission denied

Existing reviewers: click here to make igrep a reviewer

@MarkMcCaskey
Copy link
Contributor

bors try

@syrusakbary
Copy link
Member

Somehow test didn't run ?
Let's try again:

bors try

bors bot added a commit that referenced this pull request Mar 23, 2020
@wasmerio wasmerio deleted a comment from bors bot Mar 23, 2020
@bors
Copy link
Contributor

bors bot commented Mar 23, 2020

try

Build succeeded

@syrusakbary
Copy link
Member

syrusakbary commented Mar 23, 2020

We should be good to merge once we solve the merge conflict @igrep!

@syrusakbary
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 23, 2020

Build succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 enhancement New feature!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants