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

FIX: Error building linux releases #4360

Open
RaulBernal opened this issue Sep 16, 2024 · 0 comments
Open

FIX: Error building linux releases #4360

RaulBernal opened this issue Sep 16, 2024 · 0 comments
Labels
type:bug Something isn't working

Comments

@RaulBernal
Copy link
Contributor

Building a linux:amd64 or linux:arm64 releases I get this error:

Error while running command go build -o /var/folders/mj/q70cn61527993k8jyp54h0qr0000gn/T/2824382528/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 -X github.com/cosmos/cosmos-sdk/version.Commit=7ddd08a48759a2837a5d1b05247d172c7a6ca38e -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
/Users/raul/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)                                                                                                                                               
/Users/raul/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   

If I replace the arch by my own computer it success:
image

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:

  1. Scaffold a demo chain
  2. Add wasm module
  3. Run: ignite chain build --release -t amd:arm64 from an Apple M1 computer

Environment Details:

  • **OS:**M1 Darwin Kernel Version 23.4.0
  • Ignite Version: v28.5.1
  • Go Version: go version go1.23.1 darwin/arm64

Notes:

@RaulBernal RaulBernal added the type:bug Something isn't working label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Status: To Discuss
Development

No branches or pull requests

1 participant