-
Notifications
You must be signed in to change notification settings - Fork 608
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
libwasmvm.so is missing for non-Docker setup #1284
Comments
Thank you for this issue. It seems that our builder image was not updated with the cosm wasm related dependencies. I will look into it |
Does this have anything to do with cross-compiling? If so, enabling CGO and shared libs in automated builds that cross compile is not possible AFAIK (e.g. this is why Ledger doesn't work on cross-compiled builds). |
My understanding is that cosmwasm statically links the wasmvm binary on supported systems, but on any unsupported system it wouldn't, and requires it to be dynamically linked. |
That's correct. However, our build scripts were broken and didn't statically link the binary on the supported system ( I updated the |
@p0mvn I've tested the new binary of |
What is the issue?
libwasmvm.so
is missing when executingosmosisd
binary downloaded from the releases page.This is not a Docker based, but Full Node setup
$ osmosisd init moniker-1 --home=/home/cosmos/.osmosisd --chain-id=osmosis-1 ... osmosisd: error while loading shared libraries: libwasmvm.so: cannot open shared object file: No such file or directory
System
$ uanme -a Linux #23~20.04.2-Ubuntu SMP Thu Mar 31 11:36:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux $ go version go version go1.18.1 linux/amd64
osmosisd
is https://github.com/osmosis-labs/osmosis/releases/download/v7.2.0/osmosisd-7.2.0-linux-amd64Last known working version for both downloaded binary as well as built from source without any issues is v6.4.0
Workaround
The only workaround I've found is to build from sources, but make extra steps similar to those in Docker file
wget https://github.com/CosmWasm/wasmvm/releases/download/v1.0.0-beta7/libwasmvm_muslc.a -O /lib/libwasmvm_muslc.a git clone https://github.com/osmosis-labs/osmosis cd osmosis BUILD_TAGS=muslc make build cp ./build/osmosisd /usr/local/bin
NOTE: Only version
v1.0.0-beta7
of CosmWasm/wasmvm is working, other (newer) has breaking interface changesExpected result
The
osmosisd
downloaded from the releases page works without any additional requirements or at lease this process is documented.The text was updated successfully, but these errors were encountered: