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

make does not work (gorocksdb) #281

Closed
luminus7 opened this issue May 17, 2023 · 4 comments
Closed

make does not work (gorocksdb) #281

luminus7 opened this issue May 17, 2023 · 4 comments

Comments

@luminus7
Copy link

luminus7 commented May 17, 2023

Hi, I'm new to this community, also in go lang too.

I'm having trouble while making go-ycsb.

I cannot find any issue or related community which can solve this problem. So decided to leave the issue report.

I'm trying to build go-ycsb from the source and following the documentation(README.md).

$ go version
go version go1.19.5 linux/amd64

Below is the full log of making go-ycsb.

$ make
CGO_CXXFLAGS=" -std=c++11" go build -tags "rocksdb" -o bin/go-ycsb cmd/go-ycsb/*
# 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
make: *** [Makefile:39: build] Error 2

Thank you :)

@dbsid
Copy link
Collaborator

dbsid commented May 30, 2023

It works on my centos 7 server. What's the os version?

[root@IDC go-ycsb]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@IDC go-ycsb]# go version
go version go1.19.5 linux/amd64

@luminus7
Copy link
Author

Hi :)
Here are some information about my setup. Thank you!

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

$ uname -a
Linux server_name 6.1.9 #67 SMP PREEMPT_DYNAMIC Wed May 10 21:50:40 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

$ go version
go version go1.19.5 linux/amd64

@pingxiang-chen
Copy link

pingxiang-chen commented Jan 17, 2024

Hi @luminus7

What is your Rocksdb version? I encountered a similar problem to you. I changed to Rocksdb 6.8.1. It can work.

Reference Link

@luminus7
Copy link
Author

luminus7 commented Jan 18, 2024

Some system configurations have changed, and currently, $make works well, YCSB test works well.

  • Ubuntu 20.04.6 LTS.
  • Linux kernel version 5.5.8.
  • RocksDB version 7.6.0.

I guess the go-ycsb version which has used was v1.0.1, on May 30, 2023, and now Jan 19, 2024, is the same.

Now I've re-installed my RocksDB so I cannot find which is the exact version that I've tried but, I'm pretty sure that I've used RocksDB version 7.6.0 before.

I don't know the exact reason why, maybe the reference that you have left was the solution.

By the way, thank you for reminding me this 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