Closed bitdivine closed 1 year ago
@chenyan-dfinity That is an interesting point. dfx used to fail on Ubuntu 20.04 but something changed and now it works. I could look to see how dfx is compiled now; that might offer some hints how to make this executable more portable. Thank you for the pointer.
@chenyan-dfinity I checked how dfx is built. The Ubuntu dfx is built for v20.04: https://github.com/dfinity/sdk/blob/0.14.1/.github/workflows/publish.yml#LL40C13-L40C29
I suppose a reason for doing so is that it is the standard Ubuntu for the IC. Production images use 20.04. So it avoids problems where people need to work with production and use dfx.
On the other hand, it may mean that dfx doesn't work with Ubuntu 22.04. More investigation is needed.
@chenyan-dfinity - It appears that building for Ubuntu 20.04 yields builds that work with Ubuntu 20.04 and 22.04, as if 22.04 is backwards compatible but 20.04 is not forwards compatible.
Motivation
The releases of
ic-wasm
should ideally work across OS versions. In reality there are a few gaps now:Fixing this is a bit hard because ic-wasm is Rust together with some C++ code and getting the two to compile together in a cross platform way is non-trivial.
However we can start by testing, to see what works now and what doesn't.
Changes