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

Omit the vendor component in the WASI triple #60585

Merged
merged 1 commit into from
May 10, 2019

Conversation

sunfishcode
Copy link
Member

This renames wasm32-unknown-wasi to wasm32-wasi, omitting the vendor
component. This follows aarch64-linux-android, x86_64-fuchsia, and others in
omitting the vendor field, which has the advantage of aligning with the
multiarch tuple, and of being
less noisy.

r? @alexcrichton

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 6, 2019
@alexcrichton
Copy link
Member

To confirm, this is the same naming scheme the clang is moving towards, right? I think it makes sense to ensure that we're consistent across the board there!

@sunfishcode
Copy link
Member Author

Clang and LLVM themselves accept either form -- the logic to do this is target-independent. But otherwise yeah, we're generally moving to "wasm32-wasi" in documentation, build scripts, and tests.

@alexcrichton
Copy link
Member

@bors: r+

Ok sounds good to me! I think it makes sense to follow the same conventions across the board wherever possible.

@bors
Copy link
Contributor

bors commented May 8, 2019

📌 Commit 58624ed has been approved by alexcrichton

@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 May 8, 2019
Centril added a commit to Centril/rust that referenced this pull request May 8, 2019
…hton

Omit the vendor component in the WASI triple

This renames wasm32-unknown-wasi to wasm32-wasi, omitting the vendor
component. This follows aarch64-linux-android, x86_64-fuchsia, and others in
omitting the vendor field, which has the advantage of aligning with the
[multiarch tuple](https://wiki.debian.org/Multiarch/Tuples), and of being
less noisy.

r? @alexcrichton
Centril added a commit to Centril/rust that referenced this pull request May 8, 2019
…hton

Omit the vendor component in the WASI triple

This renames wasm32-unknown-wasi to wasm32-wasi, omitting the vendor
component. This follows aarch64-linux-android, x86_64-fuchsia, and others in
omitting the vendor field, which has the advantage of aligning with the
[multiarch tuple](https://wiki.debian.org/Multiarch/Tuples), and of being
less noisy.

r? @alexcrichton
@pietroalbini
Copy link
Member

@bors r-

We can't update the dist-various-2 image since it's on an EOL Ubuntu release (17.10). Can you try to bump it to 18.04?

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 8, 2019
@pietroalbini
Copy link
Member

Thanks!

@bors r=alexcrichton rollup=never

@bors
Copy link
Contributor

bors commented May 9, 2019

📌 Commit 84e3d8e479551c8d73a9753954ea1856265c1bf3 has been approved by alexcrichton

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 9, 2019
@bors
Copy link
Contributor

bors commented May 9, 2019

⌛ Testing commit 84e3d8e479551c8d73a9753954ea1856265c1bf3 with merge 63ff0da517271bb0dd1e027b322e3364ae2b8573...

@rust-highfive
Copy link
Collaborator

Your PR failed on Travis (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.
[00:01:05]   readline-common tex-common ucf
[00:01:05] Suggested packages:
[00:01:05]   autoconf-archive gnu-standards autoconf-doc gettext binutils-doc bison-doc
[00:01:05]   cmake-doc ninja-build cpp-doc gcc-7-locales debian-keyring build-essential
[00:01:05]   flex-doc g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg gawk-doc
[00:01:05]   libitm1-dbg libatomic1-dbg libasan4-dbg liblsan0-dbg libtsan0-dbg
[00:01:05]   libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg gdb-doc
[00:01:05]   gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
[00:01:05]   git-gui gitk gitweb git-cvs git-mediawiki git-svn lrzip glibc-doc gnupg
---
[00:01:28] Setting up libmpc3:amd64 (1.1.0-1) ...
[00:01:28] Setting up libc-dev-bin (2.27-3ubuntu1) ...
[00:01:28] Setting up bison (2:3.0.4.dfsg-1build1) ...
[00:01:28] update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode
[00:01:28] update-alternatives: warning: skip creation of /usr/share/man/man1/yacc.1.gz because associated file /usr/share/man/man1/bison.yacc.1.gz (of link group yacc) doesn't exist
[00:01:28] Setting up libkeyutils1:amd64 (1.5.9-9.2ubuntu2) ...
[00:01:28] Setting up libpython2.7-minimal:amd64 (2.7.15~rc1-1ubuntu0.1) ...
[00:01:28] Setting up ca-certificates (20180409) ...
[00:01:29] debconf: unable to initialize frontend: Dialog
---
[00:01:31] Setting up dpkg-dev (1.19.0.5ubuntu2.1) ...
[00:01:31] Setting up libldap-2.4-2:amd64 (2.4.45+dfsg-1ubuntu1.2) ...
[00:01:31] Setting up automake (1:1.15.1-3ubuntu2) ...
[00:01:31] update-alternatives: using /usr/bin/automake-1.15 to provide /usr/bin/automake (automake) in auto mode
[00:01:31] update-alternatives: warning: skip creation of /usr/share/man/man1/automake.1.gz because associated file /usr/share/man/man1/automake-1.15.1.gz (of link group automake) doesn't exist
[00:01:31] update-alternatives: warning: skip creation of /usr/share/man/man1/aclocal.1.gz because associated file /usr/share/man/man1/aclocal-1.15.1.gz (of link group automake) doesn't exist
[00:01:31] update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
[00:01:31] update-alternatives: warning: skip creation of /usr/share/man/man1/c++.1.gz because associated file /usr/share/man/man1/g++.1.gz (of link group c++) doesn't exist
[00:01:31] Setting up gdb (8.1-0ubuntu3) ...
[00:01:31] Setting up libxml-sax-perl (0.99+dfsg-2ubuntu1) ...
---
[00:01:40]  ---> ed72928b9c16
[00:01:40] Step 4/39 : RUN apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends   build-essential   gcc-multilib   libedit-dev   libgmp-dev   libisl-dev   libmpc-dev   libmpfr-dev   ninja-build   nodejs   python2.7-dev   software-properties-common   unzip
[00:01:40]  ---> Running in bf997ee48ce9
[00:01:41] Reading package lists...
[00:01:41] E: You must put some 'source' URIs in your sources.list
[00:01:41] The command '/bin/sh -c apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends   build-essential   gcc-multilib   libedit-dev   libgmp-dev   libisl-dev   libmpc-dev   libmpfr-dev   ninja-build   nodejs   python2.7-dev   software-properties-common   unzip' returned a non-zero code: 100
[00:01:43] Sending build context to Docker daemon  520.7kB
[00:01:43] Step 1/39 : FROM ubuntu:18.04
[00:01:43]  ---> d131e0fa2585
[00:01:43] Step 2/39 : COPY scripts/cross-apt-packages.sh /scripts/
---
[00:01:43]  ---> ed72928b9c16
[00:01:43] Step 4/39 : RUN apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends   build-essential   gcc-multilib   libedit-dev   libgmp-dev   libisl-dev   libmpc-dev   libmpfr-dev   ninja-build   nodejs   python2.7-dev   software-properties-common   unzip
[00:01:43]  ---> Running in 9fadf41f1ab8
[00:01:44] Reading package lists...
[00:01:44] E: You must put some 'source' URIs in your sources.list
[00:01:44] The command '/bin/sh -c apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends   build-essential   gcc-multilib   libedit-dev   libgmp-dev   libisl-dev   libmpc-dev   libmpfr-dev   ninja-build   nodejs   python2.7-dev   software-properties-common   unzip' returned a non-zero code: 100
[00:01:46] Sending build context to Docker daemon  520.7kB
[00:01:46] Step 1/39 : FROM ubuntu:18.04
[00:01:46]  ---> d131e0fa2585
[00:01:46] Step 2/39 : COPY scripts/cross-apt-packages.sh /scripts/
---
[00:01:46]  ---> ed72928b9c16
[00:01:46] Step 4/39 : RUN apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends   build-essential   gcc-multilib   libedit-dev   libgmp-dev   libisl-dev   libmpc-dev   libmpfr-dev   ninja-build   nodejs   python2.7-dev   software-properties-common   unzip
[00:01:47]  ---> Running in 5e8b452a134a
[00:01:48] Reading package lists...
[00:01:48] E: You must put some 'source' URIs in your sources.list
[00:01:48] The command '/bin/sh -c apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends   build-essential   gcc-multilib   libedit-dev   libgmp-dev   libisl-dev   libmpc-dev   libmpfr-dev   ninja-build   nodejs   python2.7-dev   software-properties-common   unzip' returned a non-zero code: 100
[00:01:51] Sending build context to Docker daemon  520.7kB
[00:01:51] Step 1/39 : FROM ubuntu:18.04
[00:01:51]  ---> d131e0fa2585
[00:01:51] Step 2/39 : COPY scripts/cross-apt-packages.sh /scripts/
---
[00:01:51]  ---> ed72928b9c16
[00:01:51] Step 4/39 : RUN apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends   build-essential   gcc-multilib   libedit-dev   libgmp-dev   libisl-dev   libmpc-dev   libmpfr-dev   ninja-build   nodejs   python2.7-dev   software-properties-common   unzip
[00:01:51]  ---> Running in 736088e22b09
[00:01:53] Reading package lists...
[00:01:53] E: You must put some 'source' URIs in your sources.list
[00:01:53] The command '/bin/sh -c apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends   build-essential   gcc-multilib   libedit-dev   libgmp-dev   libisl-dev   libmpc-dev   libmpfr-dev   ninja-build   nodejs   python2.7-dev   software-properties-common   unzip' returned a non-zero code: 100
[00:01:57] Sending build context to Docker daemon  520.7kB
[00:01:57] Step 1/39 : FROM ubuntu:18.04
[00:01:57]  ---> d131e0fa2585
[00:01:57] Step 2/39 : COPY scripts/cross-apt-packages.sh /scripts/
---
[00:01:57]  ---> ed72928b9c16
[00:01:57] Step 4/39 : RUN apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends   build-essential   gcc-multilib   libedit-dev   libgmp-dev   libisl-dev   libmpc-dev   libmpfr-dev   ninja-build   nodejs   python2.7-dev   software-properties-common   unzip
[00:01:57]  ---> Running in f0aa0b69667b
[00:01:59] Reading package lists...
[00:01:59] E: You must put some 'source' URIs in your sources.list
[00:01:59] The command '/bin/sh -c apt-get build-dep -y clang llvm && apt-get install -y --no-install-recommends   build-essential   gcc-multilib   libedit-dev   libgmp-dev   libisl-dev   libmpc-dev   libmpfr-dev   ninja-build   nodejs   python2.7-dev   software-properties-common   unzip' returned a non-zero code: 100
travis_time:end:066d3200:start=1557391174303231325,finish=1557391293981885728,duration=119678654403
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 1.
travis_time:start:19819cc0
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
---
travis_time:end:0f4bead0:start=1557391294711557553,finish=1557391294717371365,duration=5813812
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:1bc2204e
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb --batch -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:0010fbc0
travis_time:start:0010fbc0
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:13cbb6c4
$ dmesg | grep -i kill

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)

@bors
Copy link
Contributor

bors commented May 9, 2019

💔 Test failed - checks-travis

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 9, 2019
@pietroalbini
Copy link
Member

I'm working on a PR to properly upgrade that image to Ubuntu 18.04.

@pietroalbini
Copy link
Member

Blocked on #60665.

Also, can you remove the Ubuntu version bump commit? It's already included in the PR I linked.

@pietroalbini pietroalbini added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 9, 2019
This renames wasm32-unknown-wasi to wasm32-wasi, omitting the vendor
component. This follows aarch64-linux-android, x86_64-fuchsia, and others in
omitting the vendor field, which has the advantage of aligning with the
[multiarch tuple](https://wiki.debian.org/Multiarch/Tuples), and of being
less noisy.
@sunfishcode
Copy link
Member Author

Ok, I removed the Ubuntu version bump commit.

@pietroalbini
Copy link
Member

Not blocked anymore 🎉

@bors r=alexcrichton rollup=never

@bors
Copy link
Contributor

bors commented May 10, 2019

📌 Commit 1fe3ce1 has been approved by alexcrichton

@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-blocked Status: Blocked on something else such as an RFC or other implementation work. labels May 10, 2019
@bors
Copy link
Contributor

bors commented May 10, 2019

⌛ Testing commit 1fe3ce1 with merge c441b8a...

bors added a commit that referenced this pull request May 10, 2019
Omit the vendor component in the WASI triple

This renames wasm32-unknown-wasi to wasm32-wasi, omitting the vendor
component. This follows aarch64-linux-android, x86_64-fuchsia, and others in
omitting the vendor field, which has the advantage of aligning with the
[multiarch tuple](https://wiki.debian.org/Multiarch/Tuples), and of being
less noisy.

r? @alexcrichton
@bors
Copy link
Contributor

bors commented May 10, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: alexcrichton
Pushing c441b8a to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 10, 2019
@bors bors merged commit 1fe3ce1 into rust-lang:master May 10, 2019
@sunfishcode sunfishcode deleted the wasm32-wasi branch May 11, 2019 12:31
sunfishcode added a commit to sunfishcode/getrandom that referenced this pull request May 15, 2019
 - WASI is now categorized as an OS rather than an environment.
   (rust-lang/rust#60117)
 - The WASI triple is renamed from wasm32-unknown-wasi to wasm32-wasi.
   (rust-lang/rust#60585)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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