-
Notifications
You must be signed in to change notification settings - Fork 547
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
FIX: Error building linux
releases
#4360
Comments
This is the output from a Linux/AMD64 arch running Ignite v28.3.0 CLI version: v28.3.0
Ignite CLI build date: 2024-03-20T15:31:07Z
Ignite CLI source hash: 159abdca88605ed82cb4aabd52618db91069b7af
Ignite CLI config version: v1
Cosmos SDK version: v0.50.5
Your OS: linux
Your arch: amd64
Your Node.js version: v18.17.1
Your go version: go version go1.23.1 linux/amd64
Your uname -a: Linux daemon 5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
ignite chain build --release -t linux:amd64 -t darwin:arm64
Cosmos SDK's version is: v0.50.10
✘ Error while running command go build -o /tmp/341455175/bcnad -mod readonly -tags -ldflags -X github.com/cosmos/cosmos-sdk/version.Name=Bcna -X github.com/cosmos/cosmos-sdk/version.AppName=bcnad -X github.com/cosmos/cosmos-sdk/version.Version=4.0.0-rc3-547d65c0 -X github.com/cosmos/cosmos-sdk/version.Commit=547d65c08feb679caecd70f148fdfdf234afa96d -X github.com/cosmos/cosmos-sdk/version.BuildTags= -X github.com/BitCannaGlobal/bcna/cmd/bcnad/cmd.ChainID=bcna .: # github.com/CosmWasm/wasmd/x/wasm/keeper
/home/linux/go/pkg/mod/github.com/!cosm!wasm/wasmd@v0.53.0/x/wasm/keeper/test_common.go:386:3: cannot use runtime.NewKVStoreService(keys[types.StoreKey]) (value of type "cosmossdk.io/core/store".KVStoreService) as "cosmossdk.io/store/types".StoreKey value in argument to NewKeeper: "cosmossdk.io/core/store".KVStoreService does not implement "cosmossdk.io/store/types".StoreKey (missing method Name)
/home/linux/go/pkg/mod/github.com/!cosm!wasm/wasmd@v0.53.0/x/wasm/keeper/test_common.go:400:3: cannot use availableCapabilities (variable of type []string) as string value in argument to NewKeeper
: exit status 1 |
For more context, if I only build a release for the same arch, in this sample for Linux/AMD64 the action works. So the problem is related with the cross compilation IMO.
ignite chain build --release -t linux:amd64
Cosmos SDK's version is: v0.50.10
🗃 Release created: /home/linux/SDK/bcnad_v47/bcna/release |
💡 As a new feature for include in the future, the |
I bet that the release binaries are cross compiled. |
Could you try without wasm? |
Tested, it works
And it produces 3 files:
The issue may be related with WasmVM libs for each arch? |
Yes, you should contact them about that, as it isn't due to ignite (which just does a go build) |
Hi @julienrbrt For the history, I've solved using Dockerfile + updated Makefile + GitHub Actions here: https://github.com/BitCannaGlobal/bcna/pull/444/files |
Building a
linux:amd64
orlinux:arm64
releases I get this error:If I replace the arch by my own computer it success:
The error we're facing is due to a type conflict between two dependencies of the Cosmos SDK, specifically between cosmossdk.io/core/store and cosmossdk.io/store/types. It seems that there are changes in the KVStoreService API that are not compatible with the code we're using.
Context:
This happened me when I scaffold a v0.50 chain with last version of Ignite, add WASM module (I didn't try without it) and try to build the linux/amd64 release.
I'm running a darwin/arm64 computer (M1)
Describe the Bug:
Ignite build command doesn't produce a linux release from a darwin/arm64 arch.
Steps to Reproduce:
ignite chain build --release -t amd:arm64
from an Apple M1 computerEnvironment Details:
Notes:
The text was updated successfully, but these errors were encountered: