-
Notifications
You must be signed in to change notification settings - Fork 824
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
Tests fail to compile #364
Comments
Currently, we support linking against llvm 7.0. It seems like you're linking against llvm 8.0. Soon, we will automatically download and link against the correct llvm version, but it's not in master yet. |
Is that documented in any location that I missed? |
That's not documented yet, our fault. Also, once we merge #353 it should be much easier to do :) |
Well, I'll leave this bug open at any rate. You decide what to do with it.
Seems like a tracking bug for clang 8 at this point.
…On Wed, 17 Apr 2019 at 23:09, Syrus Akbary ***@***.***> wrote:
That's not documented yet, our fault.
We are working on improving docs so it's easier to replicate the setup
locally.
Also, once we merge #353 <#353> it
should be much easier to do :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#364 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAANADEUCTKFTGJGLPLJ3LPQ6GXPANCNFSM4HGT3OJQ>
.
|
But I get similar error on My windows(msvc) installation, using wasmer@297215f6bc4604eb1c004ac5b9ef9f5b3eba4fd8: PS E:\learning-rust\rust-wasi-tutorial\target\wasm32-unknown-wasi\release> wasmer run main.wasm input.txt out.txt
error opening input: failed to find a preopened file descriptor through which "input.txt" could be opened |
Hello @huangjj27 ; try the latest master and use the |
Hi!
That command will be passing no arguments to the wasm program and trying to
open three directories (`.`, `input.txt`, `out.txt`) which is probably not
what you want.
Try `wasmer run main.wasm --dir=. -- input.txt out.txt`!
The reason is that `--dir` without an `=` reads everything after it as a
preopened directory (until `--`) and also that `wasmer` needs `--` to
separate wasmer arguments from program arguments.
I'll look in to increasing visibility of what wasmer is doing and improving
the error messages here -- thanks for the report!
…On Fri, Apr 26, 2019, 8:16 AM Junjie Huang ***@***.***> wrote:
All right, it compiled at 0.4.0, but Error me with this:
PS E:\learning-rust\rust-wasi-tutorial\target\wasm32-unknown-wasi\release> wasmer run main.wasm --dir . input.txt out.txt
thread 'main' panicked at 'Could not find file: Os { code: 5, kind: PermissionDenied, message: "拒绝访问。" }', src\libcore\result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
when I run wasmer as administrator, it keep warning me with windows
sandbox. Why?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#364 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABMAXUWWROIRPQ4WIYTTAL3PSMMFTANCNFSM4HGT3OJQ>
.
|
I tried:
I think it's about the permission difference between windows and *nix |
@huangjj27 The administrator dialog error you are seeing is expected whenever running a program as administrator on windows. It seems that we have identified a bug with our wasi implementation. The issue stems from how we are pre-opening directories. The rust file system abstraction let us do something we shouldn't be allowed to do on windows: open a directory like a file. We are going to find a solution for this.. |
@huangjj27 this should be fixed by #397 ! Thanks for letting us know! |
@MarkMcCaskey Yes, it is fixed, successfully running it. Thanks! |
I think we can add test stage to CI so that we can found any test problem as soon as possible? |
This issue should now be fixed on |
Make sure users still get typings whenever they import a file from `dist/`
Describe the bug
Running
make test
fails withSteps to reproduce
Expected behavior
Tests should compile and run.
Actual behavior
Tests fail to compile.
Additional context
This is on Arch Linux. I tested gcc 8.2, gcc 8.3, clang 8.0.0 and they all fail.
The text was updated successfully, but these errors were encountered: