Skip to content

Use wasi-sdk 20 pre-release for tests with threads#2021

Merged
wenyongh merged 2 commits into
bytecodealliance:mainfrom
eloparco:eloparco/wasi-sdk-20-pre-release
Mar 17, 2023
Merged

Use wasi-sdk 20 pre-release for tests with threads#2021
wenyongh merged 2 commits into
bytecodealliance:mainfrom
eloparco:eloparco/wasi-sdk-20-pre-release

Conversation

@eloparco
Copy link
Copy Markdown
Contributor

wasi-sdk-20 pre-release can be used to avoid building wasi-libc to enable threads.
It's not possible to use wasi-sdk-20 pre-release on Ubuntu 20.04 because of incompatibility with the glibc version:

/opt/wasi-sdk/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /opt/wasi-sdk/bin/clang)
/opt/wasi-sdk/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /opt/wasi-sdk/bin/clang)
/opt/wasi-sdk/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /opt/wasi-sdk/bin/clang)

@eloparco
Copy link
Copy Markdown
Contributor Author

I opened an issue for the wasi-sdk problem on Ubuntu 20.04 WebAssembly/wasi-sdk#303

test:
needs: [build_iwasm, build_llvm_libraries_on_ubuntu_2004, build_wamrc]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It may be a risk to upgrade the default test OS to Ubuntu-22.04. Maybe we can keep this PR open, and wait until the wasi-sdk-20.0 for threads works for Ubuntu-20.04?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No strong opinion, let's wait for the decision on the issue I opened. Or, as an alternative, we could run those tests both with 20.04 and 22.04.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What's the risk? In WebAssembly/wasi-sdk#303, I mentioned that I wouldn't mind if someone else (@eloparco?) works on getting wasi-sdk to build on older machines but I wasn't personally too interested. If this workflow is the only reason to do so, I wonder if we could resolve whatever risks are here? I assume this workflow would have to be updated at some point anyways since I wouldn't assume it to pin to 20.04 forever.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I was just worried about the spec cases and wasi-threads cases are not tested on Ubuntu-20.04, and we don't know whether there are errors reported on it. I discussed with @lum1n0us, he also agreed to run these tests on both Ubuntu-20.04 and Ubuntu-22.04, it seems better. So @eloparco, could you help enable that?

@eloparco eloparco force-pushed the eloparco/wasi-sdk-20-pre-release branch 5 times, most recently from 661e246 to 04248f1 Compare March 16, 2023 00:27
@eloparco eloparco force-pushed the eloparco/wasi-sdk-20-pre-release branch from 04248f1 to 83de516 Compare March 17, 2023 00:39
8f5275796a82f8ecfd0833a4f3f444fa37ed4546
git checkout FETCH_HEAD
make -j \
make \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Using make -j can speed up the build process, did you find error when building with -j flag?

Copy link
Copy Markdown
Contributor Author

@eloparco eloparco Mar 17, 2023

Choose a reason for hiding this comment

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

I must have removed it by mistake, I put it back. The multi-tier-jit test is failing in the CI, it doesn't look related with this PR.

Copy link
Copy Markdown
Collaborator

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

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

LGTM

@eloparco eloparco force-pushed the eloparco/wasi-sdk-20-pre-release branch from 83de516 to 13842aa Compare March 17, 2023 08:12
@eloparco eloparco force-pushed the eloparco/wasi-sdk-20-pre-release branch from 13842aa to 5c12253 Compare March 17, 2023 08:28
@wenyongh wenyongh merged commit 83659fa into bytecodealliance:main Mar 17, 2023
wenyongh pushed a commit that referenced this pull request Apr 3, 2023
wasi-sdk-20 supports older versions of glibc and allow us to use it in the CI
with Ubuntu 20.04.

Refer to
  https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-20
And #2021 for previous upgrade to wasi-sdk-20 pre-release.
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…2021)

`wasi-sdk-20` pre-release can be used to avoid building `wasi-libc` to enable threads.
It's not possible to use `wasi-sdk-20` pre-release on Ubuntu 20.04 because of
incompatibility with the glibc version:
```bash
/opt/wasi-sdk/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found
(required by /opt/wasi-sdk/bin/clang)
```
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
)

wasi-sdk-20 supports older versions of glibc and allow us to use it in the CI
with Ubuntu 20.04.

Refer to
  https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-20
And bytecodealliance#2021 for previous upgrade to wasi-sdk-20 pre-release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants