wasi-sdk icon indicating copy to clipboard operation
wasi-sdk copied to clipboard

Old Clang version in WASI SDK 13

Open dasebek opened this issue 4 years ago • 9 comments

WASI SDK 12 came with clang version 11.0.0. WASI SDK 13 was released today, and it includes clang version 10.0.0. I downloaded and extracted wasi-sdk-13.0-linux.tar.gz from the releases page. I was expecting to see clang version 13.0.0 instead.

[david@fedora ~]$ /opt/wasi-sdk-12.0/bin/clang --version
clang version 11.0.0 (https://github.com/llvm/llvm-project 176249bd6732a8044d457092ed932768724a6f06)
Target: wasm32-unknown-wasi
Thread model: posix
InstalledDir: /opt/wasi-sdk-12.0/bin

[david@fedora ~]$ /opt/wasi-sdk-13.0/bin/clang --version
clang version 10.0.0 (https://github.com/llvm/llvm-project d32170dbd5b0d54436537b6b75beaf44324e0c28)
Target: wasm32-unknown-wasi
Thread model: posix
InstalledDir: /opt/wasi-sdk-13.0/bin

dasebek avatar Nov 17 '21 23:11 dasebek

Hmm .. that does look wrong.

Note that WASI SDK versioning is independent of llvm/clang versioning so that fact that wasi-sdk-13 is supposed to contain llvm-13.0.0 is just a coincidence. It certainly shouldn't contain 10.0.0 though :(

sbc100 avatar Nov 17 '21 23:11 sbc100

d32170dbd5b0d54436537b6b75beaf44324e0c28 is indeed the revision which is tagged as llvmorg-10.0.0 so this is not just clang being confused about which version it is.

sbc100 avatar Nov 17 '21 23:11 sbc100

I think that submodules under https://github.com/WebAssembly/wasi-sdk/tree/wasi-sdk-13/src point to wrong/old commit numbers.

dasebek avatar Nov 17 '21 23:11 dasebek

It appears I made a mistake with git submodules and accidentally reverted the update to LLVM 13.0. I've now opened #204 to fix this. I'll plan to do a new wasi-sdk release once this is resolved.

sunfishcode avatar Nov 18 '21 00:11 sunfishcode

#205 fixes the git submodules and fixes a Windows build issue. When the build artifacts from the build on main are ready, I'll create a new release.

sunfishcode avatar Nov 18 '21 21:11 sunfishcode

Is a wasi-sdk-14.0-linux.tar.gz file coming? If that's the case I wait, in case it's not, how can I compile your sources? Just make? Any important make flag or env variable to be aware of? The install instructions in README.md are based on directly downloading the linux file.

availablish avatar Nov 19 '21 11:11 availablish

You can download the artifacts straight from the CI build if you'd like to download them now. These are the artifacts that I'll be attaching to the release once I sort out some minor issues around getting git-describe to output the right thing.

For example, on that page, click on dist-ubuntu-latest or dist-ubuntu-xenial to download a zip file containing the Linux wasi-sdk build.

sunfishcode avatar Nov 19 '21 13:11 sunfishcode

Ok, the artifacts are now attached to the wasi-sdk-14 release. Please let me know if there are any further problems!

sunfishcode avatar Nov 19 '21 14:11 sunfishcode

Perfect! Thank you. I'm using the new build without any issue now :)

availablish avatar Nov 19 '21 17:11 availablish