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

Rocksdb: Cosmos SDK 0.46 & 0.47 doesn't build #15421

Closed
robert-zaremba opened this issue Mar 16, 2023 · 3 comments
Closed

Rocksdb: Cosmos SDK 0.46 & 0.47 doesn't build #15421

robert-zaremba opened this issue Mar 16, 2023 · 3 comments
Labels
dependencies Pull requests that update a dependency file T:Bug

Comments

@robert-zaremba
Copy link
Collaborator

robert-zaremba commented Mar 16, 2023

Version

go: 1.19
Rocksdb 7.9
Cosmos SDK v0.46 and v0.47

Proposal

  • update the build process
  • update documentation and explain what to do to link Rocksdb

Steps to Reproduce

BUILD_TAGS=rocksdb make build
--> Building...
go build -mod=readonly -tags "netgo ledger rocksdb" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=umee -X github.com/cosmos/cosmos-sdk/version.AppName=umeed -X github.com/cosmos/cosmos-sdk/version.Version=main-079f7d6a81624eb7486c7474967927ab6c283a56 -X github.com/cosmos/cosmos-sdk/version.Commit=079f7d6a81624eb7486c7474967927ab6c283a56 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,rocksdb" -X github.com/tendermint/tendermint/version.TMCoreSemVer=v0.34.27' -o /home/robert/projects/cosmos/umee/umee/build/ ./...
# github.com/cosmos/gorocksdb
../../../../go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/options.go:759:2: could not determine kind of name for C.rocksdb_options_set_hard_rate_limit
../../../../go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/options.go:498:2: could not determine kind of name for C.rocksdb_options_set_max_mem_compaction_level
../../../../go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/options.go:871:2: could not determine kind of name for C.rocksdb_options_set_purge_redundant_kvs_while_flush
../../../../go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/options.go:767:2: could not determine kind of name for C.rocksdb_options_set_rate_limit_delay_max_milliseconds
../../../../go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/options.go:910:2: could not determine kind of name for C.rocksdb_options_set_skip_log_error_on_recovery
../../../../go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/options.go:750:2: could not determine kind of name for C.rocksdb_options_set_soft_rate_limit
../../../../go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/options.go:793:2: could not determine kind of name for C.rocksdb_options_set_table_cache_remove_scan_count_limit
# github.com/tecbot/gorocksdb
../../../../go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/options.go:759:2: could not determine kind of name for C.rocksdb_options_set_hard_rate_limit
../../../../go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/options.go:498:2: could not determine kind of name for C.rocksdb_options_set_max_mem_compaction_level
../../../../go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/options.go:871:2: could not determine kind of name for C.rocksdb_options_set_purge_redundant_kvs_while_flush
../../../../go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/options.go:767:2: could not determine kind of name for C.rocksdb_options_set_rate_limit_delay_max_milliseconds
../../../../go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/options.go:910:2: could not determine kind of name for C.rocksdb_options_set_skip_log_error_on_recovery
../../../../go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/options.go:750:2: could not determine kind of name for C.rocksdb_options_set_soft_rate_limit
../../../../go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/options.go:793:2: could not determine kind of name for C.rocksdb_options_set_table_cache_remove_scan_count_limit
@robert-zaremba robert-zaremba added T:Bug dependencies Pull requests that update a dependency file labels Mar 16, 2023
@facundomedica
Copy link
Member

Some of those flags are deprecated, for some reason we are importing an outdated wrapper for what I understand. Maybe @yihuang can help us on this one?

@yihuang
Copy link
Collaborator

yihuang commented Mar 17, 2023

gorocksdb can't built with recent rocksdb releases, we were using rocksdb 6.8.x with gorocksdb.
Now we use grocksdb binding together with recent rocksdb v7.9.2

cometbft-db PR: cometbft/cometbft-db#42
tm-db branch we are using: https://github.com/crypto-org-chain/tm-db/tree/release/v0.6.x

@tac0turtle
Copy link
Member

we were able to get this to work. with older versions of the sdk it requires some massaging but it is better in the latest release. Closing this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file T:Bug
Projects
None yet
Development

No branches or pull requests

4 participants