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

Update the wasi crate for wasm32-wasi #66750

Merged
merged 1 commit into from
Dec 3, 2019

Conversation

alexcrichton
Copy link
Member

This commit updates the wasi crate used by the standard library which
is used to implement most of the functionality of libstd on the
wasm32-wasi target. This update comes with a brand new crate structure
in the wasi crate which caused quite a few changes for the wasi target
here, but it also comes with a significant change to where the
functionality is coming from.

The WASI specification is organized into "snapshots" and a new snapshot
happened recently, so the WASI APIs themselves have changed since the
previous revision. This had only minor impact on the public facing
surface area of libstd, only changing on u32 to a u64 in an unstable
API. The actual source for all of these types and such, however, is now
coming from the wasi_preview_snapshot1 module instead of the
wasi_unstable module like before. This means that any implementors
generating binaries will need to ensure that their embedding environment
handles the wasi_preview_snapshot1 module.

@rust-highfive
Copy link
Collaborator

r? @Kimundi

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 25, 2019
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-11-25T17:32:31.5965590Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-11-25T17:32:31.6156061Z ##[command]git config gc.auto 0
2019-11-25T17:32:31.6224065Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-11-25T17:32:31.6309130Z ##[command]git config --get-all http.proxy
2019-11-25T17:32:31.6473412Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/66750/merge:refs/remotes/pull/66750/merge
---
2019-11-25T17:35:33.7520118Z 
2019-11-25T17:35:33.7570656Z ####################################################################      94.8%
2019-11-25T17:35:33.7570780Z ######################################################################## 100.0%
2019-11-25T17:35:34.1821946Z extracting /checkout/obj/build/cache/2019-11-06/cargo-beta-x86_64-unknown-linux-gnu.tar.gz
2019-11-25T17:35:34.2588157Z     Updating git repository `https://github.com/bytecodealliance/wasi`
---
2019-11-25T17:38:34.6915938Z tidy check
2019-11-25T17:38:36.1058729Z * 589 error codes
2019-11-25T17:38:36.1059565Z * highest error code: E0745
2019-11-25T17:38:36.4987584Z * 273 features
2019-11-25T17:38:37.2369622Z invalid source: "git+https://github.com/bytecodealliance/wasi#686e1345862e4efd2630b779f5b992d418658cf2"
2019-11-25T17:38:37.5184687Z some tidy checks failed
2019-11-25T17:38:37.5184840Z Found 486 error codes
2019-11-25T17:38:37.5184895Z Found 0 error codes with no tests
2019-11-25T17:38:37.5184978Z Done!
2019-11-25T17:38:37.5184978Z Done!
2019-11-25T17:38:37.5185012Z 
2019-11-25T17:38:37.5185042Z 
2019-11-25T17:38:37.5185977Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor"
2019-11-25T17:38:37.5186124Z 
2019-11-25T17:38:37.5186153Z 
2019-11-25T17:38:37.5216130Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
2019-11-25T17:38:37.5216328Z Build completed unsuccessfully in 0:01:33
2019-11-25T17:38:37.5216328Z Build completed unsuccessfully in 0:01:33
2019-11-25T17:38:37.5242678Z == clock drift check ==
2019-11-25T17:38:37.5254015Z   local time: Mon Nov 25 17:38:37 UTC 2019
2019-11-25T17:38:38.0656139Z   network time: Mon, 25 Nov 2019 17:38:38 GMT
2019-11-25T17:38:38.0658769Z == end clock drift check ==
2019-11-25T17:38:39.3999177Z 
2019-11-25T17:38:39.4122723Z ##[error]Bash exited with code '1'.
2019-11-25T17:38:39.4152571Z ##[section]Starting: Checkout
2019-11-25T17:38:39.4154345Z ==============================================================================
2019-11-25T17:38:39.4154404Z Task         : Get sources
2019-11-25T17:38:39.4154475Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

This commit updates the `wasi` crate used by the standard library which
is used to implement most of the functionality of libstd on the
`wasm32-wasi` target. This update comes with a brand new crate structure
in the `wasi` crate which caused quite a few changes for the wasi target
here, but it also comes with a significant change to where the
functionality is coming from.

The WASI specification is organized into "snapshots" and a new snapshot
happened recently, so the WASI APIs themselves have changed since the
previous revision. This had only minor impact on the public facing
surface area of libstd, only changing on `u32` to a `u64` in an unstable
API. The actual source for all of these types and such, however, is now
coming from the `wasi_preview_snapshot1` module instead of the
`wasi_unstable` module like before. This means that any implementors
generating binaries will need to ensure that their embedding environment
handles the `wasi_preview_snapshot1` module.
@alexcrichton
Copy link
Member Author

r? @sfackler

@rust-highfive rust-highfive assigned sfackler and unassigned Kimundi Dec 3, 2019
@sfackler
Copy link
Member

sfackler commented Dec 3, 2019

@bors r+

@bors
Copy link
Contributor

bors commented Dec 3, 2019

📌 Commit f3fb1c5 has been approved by sfackler

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 3, 2019
Centril added a commit to Centril/rust that referenced this pull request Dec 3, 2019
Update the `wasi` crate for `wasm32-wasi`

This commit updates the `wasi` crate used by the standard library which
is used to implement most of the functionality of libstd on the
`wasm32-wasi` target. This update comes with a brand new crate structure
in the `wasi` crate which caused quite a few changes for the wasi target
here, but it also comes with a significant change to where the
functionality is coming from.

The WASI specification is organized into "snapshots" and a new snapshot
happened recently, so the WASI APIs themselves have changed since the
previous revision. This had only minor impact on the public facing
surface area of libstd, only changing on `u32` to a `u64` in an unstable
API. The actual source for all of these types and such, however, is now
coming from the `wasi_preview_snapshot1` module instead of the
`wasi_unstable` module like before. This means that any implementors
generating binaries will need to ensure that their embedding environment
handles the `wasi_preview_snapshot1` module.
Centril added a commit to Centril/rust that referenced this pull request Dec 3, 2019
Update the `wasi` crate for `wasm32-wasi`

This commit updates the `wasi` crate used by the standard library which
is used to implement most of the functionality of libstd on the
`wasm32-wasi` target. This update comes with a brand new crate structure
in the `wasi` crate which caused quite a few changes for the wasi target
here, but it also comes with a significant change to where the
functionality is coming from.

The WASI specification is organized into "snapshots" and a new snapshot
happened recently, so the WASI APIs themselves have changed since the
previous revision. This had only minor impact on the public facing
surface area of libstd, only changing on `u32` to a `u64` in an unstable
API. The actual source for all of these types and such, however, is now
coming from the `wasi_preview_snapshot1` module instead of the
`wasi_unstable` module like before. This means that any implementors
generating binaries will need to ensure that their embedding environment
handles the `wasi_preview_snapshot1` module.
bors added a commit that referenced this pull request Dec 3, 2019
Rollup of 7 pull requests

Successful merges:

 - #66750 (Update the `wasi` crate for `wasm32-wasi`)
 - #66878 (Move Sessions into (new) librustc_session)
 - #66903 (parse_enum_item -> parse_enum_variant)
 - #66951 (miri: add throw_machine_stop macro)
 - #66957 (Change Linker for x86_64-fortanix-unknown-sgx target to rust-lld)
 - #66960 ([const-prop] Fix ICE calculating enum discriminant)
 - #66973 (Update the minimum external LLVM to 7)

Failed merges:

r? @ghost
@bors bors merged commit f3fb1c5 into rust-lang:master Dec 3, 2019
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 5, 2019
Fixes an error introduced in rust-lang#66750 where wasi executables always think
they have zero arguments because one of the vectors returned here
accidentally thought it was length 0.
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Dec 6, 2019
Fix fetching arguments on the wasm32-wasi target

Fixes an error introduced in rust-lang#66750 where wasi executables always think
they have zero arguments because one of the vectors returned here
accidentally thought it was length 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants