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

Using wasi-sdk-20 pre-release on Ubuntu 20.04 #303

Closed
eloparco opened this issue Mar 10, 2023 · 6 comments
Closed

Using wasi-sdk-20 pre-release on Ubuntu 20.04 #303

eloparco opened this issue Mar 10, 2023 · 6 comments

Comments

@eloparco
Copy link

Hello,
In a GitHub action job on Ubuntu 20.04, I'm trying to use the wasi-sdk-20 pre-release, but I'm getting the following eror:

/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)

Is there any planned fix to support older versions of glibc?
Thanks

@abrown
Copy link
Collaborator

abrown commented Mar 13, 2023

@yamt had mentioned this in a comment previously, but I personally was not too interested in maintaining compatibility with a bunch of old glibc versions ("how far to go back?" "would this cause friction with future integration?" etc.). IIUC, this boils down to using Ubuntu's 20.04 image during compilation instead of 22.04; I don't understand what restrictions are preventing other projects from also using 22.04? Is this request of wasi-sdk just a symptom of another issue somewhere else? That being said, I'm actually not opposed to supporting some older versions of glibc, though; I would gladly review PRs along these lines if we figure out a limit to the versions supported and it meshes with the work I did to script the release process in #295.

@yamt
Copy link
Contributor

yamt commented Mar 15, 2023

@yamt had mentioned this in a comment previously, but I personally was not too interested in maintaining compatibility with a bunch of old glibc versions ("how far to go back?" "would this cause friction with future integration?" etc.). IIUC, this boils down to using Ubuntu's 20.04 image during compilation instead of 22.04; I don't understand what restrictions are preventing other projects from also using 22.04? Is this request of wasi-sdk just a symptom of another issue somewhere else? That being said, I'm actually not opposed to supporting some older versions of glibc, though; I would gladly review PRs along these lines if we figure out a limit to the versions supported and it meshes with the work I did to script the release process in #295.

as far as i know, no one is asking "compatibility with a bunch of old glibc versions".
just a compatibility with commonly used distributions like ubuntu 20.04.
it's normal for people not want to upgrade the OS. (after all, it's the whole point of LTS versions i guess.)

yamt added a commit to yamt/wasi-sdk that referenced this issue Mar 15, 2023
Exclude dist-ubuntu-latest to prefer dist-ubuntu-bionic, which is
compatible with wider distributions.
cf.
WebAssembly#273 (comment)
WebAssembly#303
abrown pushed a commit that referenced this issue Mar 17, 2023
Exclude dist-ubuntu-latest to prefer dist-ubuntu-bionic, which is
compatible with wider distributions.
cf.
#273 (comment)
#303
@abrown
Copy link
Collaborator

abrown commented Mar 17, 2023

Ok, now that #307 is merged should we close this? I will use the older versions in the wasi-sdk-20 release but if anyone wants it earlier then I could replace the artifacts in the wasi-sdk-20+threads pre-release with the older version.

@yamt
Copy link
Contributor

yamt commented Mar 18, 2023

Ok, now that #307 is merged should we close this? I will use the older versions in the wasi-sdk-20 release but if anyone wants it earlier then I could replace the artifacts in the wasi-sdk-20+threads pre-release with the older version.

i want it "soon".

i have no idea when wasi-sdk-20 will be.

@abrown
Copy link
Collaborator

abrown commented Mar 30, 2023

@eloparco, can you try out the wasi-sdk-20 release? It's binaries should be created from a tree that includes #307.

@eloparco
Copy link
Author

eloparco commented Apr 2, 2023

Thanks! I tried it and it seems to work: bytecodealliance/wasm-micro-runtime#2095

@eloparco eloparco closed this as completed Apr 2, 2023
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

No branches or pull requests

3 participants