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 from fresh checkout #1929

Open
frohal opened this issue Oct 14, 2023 · 2 comments
Open

Cannot build from fresh checkout #1929

frohal opened this issue Oct 14, 2023 · 2 comments

Comments

@frohal
Copy link

frohal commented Oct 14, 2023

running with go version :
go version go1.21.3 linux/amd64
Doing a clean checkout of source-code .
First time it downloads a ton of deps, but ends with :
`go@M6800:~/hornet$ scripts/build_hornet_rocksdb.sh

github.com/iotaledger/hive.go/kvstore/rocksdb

../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb_instance.go:14:15: undefined: grocksdb.DB
../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb_instance.go:15:15: undefined: grocksdb.ReadOptions
../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb_instance.go:16:15: undefined: grocksdb.WriteOptions
../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb_instance.go:17:15: undefined: grocksdb.FlushOptions
../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb_instance.go:29:19: undefined: grocksdb.NewDefaultOptions
../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb_instance.go:31:31: undefined: grocksdb.NoCompression
../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb_instance.go:33:32: undefined: grocksdb.ZSTDCompression
../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb.go:58:50: undefined: grocksdb.Iterator
../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb.go:216:25: undefined: grocksdb.NewWriteBatch
../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb.go:311:25: undefined: grocksdb.NewWriteBatch
../go/pkg/mod/github.com/iotaledger/hive.go/kvstore@v0.0.0-20230629181801-64c530ff9d15/rocksdb/rocksdb_instance.go:33:32: too many errors
`

second time it only displays those errors and exits.

Is there any dependencies I have to build before running the hornet-build ? I get the same on the tags V2.0.0, V2.0.1 and on develop-branch.

If I run simply 'build_hornet.sh' it build but fails on startup : " PANIC App application panic: For RocksDB support please compile with '-tags rocksdb'
"

@tuvshusolid
Copy link

do you solve this problem?

@muXxer
Copy link
Collaborator

muXxer commented May 11, 2024

Sorry I didn't see your issue report.
You need to use the other script to include the pre compiled rocksDB dependency.
build_hornet_rocksdb.sh
And please update your Go version.

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