hornet icon indicating copy to clipboard operation
hornet copied to clipboard

Cannot build from fresh checkout

Open frohal opened this issue 2 years ago • 2 comments

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/[email protected]/rocksdb/rocksdb_instance.go:14:15: undefined: grocksdb.DB ../go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/rocksdb/rocksdb_instance.go:15:15: undefined: grocksdb.ReadOptions ../go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/rocksdb/rocksdb_instance.go:16:15: undefined: grocksdb.WriteOptions ../go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/rocksdb/rocksdb_instance.go:17:15: undefined: grocksdb.FlushOptions ../go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/rocksdb/rocksdb_instance.go:29:19: undefined: grocksdb.NewDefaultOptions ../go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/rocksdb/rocksdb_instance.go:31:31: undefined: grocksdb.NoCompression ../go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/rocksdb/rocksdb_instance.go:33:32: undefined: grocksdb.ZSTDCompression ../go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/rocksdb/rocksdb.go:58:50: undefined: grocksdb.Iterator ../go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/rocksdb/rocksdb.go:216:25: undefined: grocksdb.NewWriteBatch ../go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/rocksdb/rocksdb.go:311:25: undefined: grocksdb.NewWriteBatch ../go/pkg/mod/github.com/iotaledger/hive.go/[email protected]/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' "

frohal avatar Oct 14 '23 14:10 frohal

do you solve this problem?

madtuvshu avatar May 11 '24 07:05 madtuvshu

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.

muXxer avatar May 11 '24 11:05 muXxer