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

Cannot build cosmprund with rocksdb #18

Closed
Staking7pc opened this issue Apr 5, 2023 · 3 comments
Closed

Cannot build cosmprund with rocksdb #18

Staking7pc opened this issue Apr 5, 2023 · 3 comments
Assignees

Comments

@Staking7pc
Copy link

Hi I am trying to build cosmprund with rocksdb as database .
I have built a binary for a chain and synching with rocksdb as database with rockssdb version v v6.29.5 as discussed here cosmos/cosmos-sdk#15422 with @yihuang

When I try to build cosmprund with rocksdb I get the below errors.
/root/go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/db.go:616:3: not enough arguments in call to (_Cfunc_rocksdb_approximate_sizes) have (*_Ctype_struct_rocksdb_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, *_Ctype_ulong) want (*_Ctype_struct_rocksdb_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, *_Ctype_ulong, **_Ctype_char) /root/go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/db.go:658:3: not enough arguments in call to (_Cfunc_rocksdb_approximate_sizes_cf) have (*_Ctype_struct_rocksdb_t, *_Ctype_struct_rocksdb_column_family_handle_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, *_Ctype_ulong) want (*_Ctype_struct_rocksdb_t, *_Ctype_struct_rocksdb_column_family_handle_t, _Ctype_int, **_Ctype_char, *_Ctype_ulong, **_Ctype_char, *_Ctype_ulong, *_Ctype_ulong, **_Ctype_char) /root/go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/filter_policy.go:49:67: cannot use _Ctype_int(bitsPerKey) (value of type _Ctype_int) as type _Ctype_double in argument to (_Cfunc_rocksdb_filterpolicy_create_bloom) /root/go/pkg/mod/github.com/tecbot/gorocksdb@v0.0.0-20191217155057-f0fad39f321c/filter_policy.go:55:72: cannot use _Ctype_int(bitsPerKey) (value of type _Ctype_int) as type _Ctype_double in argument to (_Cfunc_rocksdb_filterpolicy_create_bloom_full) make: *** [makefile:17: install] Error 2

How can I build cosmprund for rocksdb backend support ?

@yihuang
Copy link

yihuang commented Apr 5, 2023

I think you just need to bump github.com/tendermint/tm-db to 0.6.7, which will switch from tecbot/gorocksdb to cosmos/gorocksdb, which should build with rocksdb v6.29.5.

@tac0turtle
Copy link
Contributor

the only issue is i think this repo is mainly for goleveldb, rocksdb doesnt expose a forcecompact api. I can look into it

@tac0turtle tac0turtle self-assigned this Apr 5, 2023
@Staking7pc
Copy link
Author

I was able to build with the version that @yihuang mentioned .
The main objective was to try to see if the IO reduces but rocksdb doesn't seem to help.
Closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants