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

installed latest rocksdb #118

Closed
kolinfluence opened this issue Jul 4, 2023 · 1 comment
Closed

installed latest rocksdb #118

kolinfluence opened this issue Jul 4, 2023 · 1 comment

Comments

@kolinfluence
Copy link

kolinfluence commented Jul 4, 2023

CGO_ENABLED=1 CGO_CFLAGS="-I/usr/local/include" CGO_LDFLAGS="-L/usr/local/lib -lrocksdb -lz -lsnappy -llz4 -lzstd -lbz2" go build rocskdbmain.go

# command-line-arguments
/usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /usr/local/lib/librocksdb.a(fs_posix.o): in function `rocksdb::CreateIOUring()':
/usr/local/src/rocksdb/./env/io_posix.h:272: undefined reference to `io_uring_queue_init'
/usr/bin/ld: /usr/local/lib/librocksdb.a(fs_posix.o): in function `rocksdb::(anonymous namespace)::PosixFileSystem::Poll(std::vector<void*, std::allocator<void*> >&, unsigned long)':
/usr/include/liburing.h:745: undefined reference to `__io_uring_get_cqe'
/usr/bin/ld: /usr/local/lib/librocksdb.a(fs_posix.o): in function `rocksdb::(anonymous namespace)::PosixFileSystem::AbortIO(std::vector<void*, std::allocator<void*> >&)':
/usr/local/src/rocksdb/env/fs_posix.cc:1109: undefined reference to `io_uring_get_sqe'
/usr/bin/ld: /usr/local/src/rocksdb/env/fs_posix.cc:1118: undefined reference to `io_uring_submit'
/usr/bin/ld: /usr/local/lib/librocksdb.a(fs_posix.o): in function `rocksdb::(anonymous namespace)::PosixFileSystem::AbortIO(std::vector<void*, std::allocator<void*> >&)':
/usr/include/liburing.h:745: undefined reference to `__io_uring_get_cqe'
/usr/bin/ld: /usr/local/lib/librocksdb.a(io_posix.o): in function `rocksdb::PosixRandomAccessFile::ReadAsync(rocksdb::FSReadRequest&, rocksdb::IOOptions const&, std::function<void (rocksdb::FSReadRequest const&, void*)>, void*, void**, std::function<void (void*)>*, rocksdb::IODebugContext*)':
/usr/local/src/rocksdb/env/io_posix.cc:901: undefined reference to `io_uring_get_sqe'
/usr/bin/ld: /usr/local/src/rocksdb/env/io_posix.cc:910: undefined reference to `io_uring_submit'
/usr/bin/ld: /usr/local/lib/librocksdb.a(io_posix.o): in function `rocksdb::CreateIOUring()':
/usr/local/src/rocksdb/./env/io_posix.h:272: undefined reference to `io_uring_queue_init'
/usr/bin/ld: /usr/local/lib/librocksdb.a(io_posix.o): in function `rocksdb::PosixRandomAccessFile::MultiRead(rocksdb::FSReadRequest*, unsigned long, rocksdb::IOOptions const&, rocksdb::IODebugContext*)':
/usr/local/src/rocksdb/env/io_posix.cc:674: undefined reference to `io_uring_get_sqe'
/usr/bin/ld: /usr/local/src/rocksdb/env/io_posix.cc:684: undefined reference to `io_uring_submit_and_wait'
/usr/bin/ld: /usr/local/lib/librocksdb.a(io_posix.o): in function `rocksdb::PosixRandomAccessFile::MultiRead(rocksdb::FSReadRequest*, unsigned long, rocksdb::IOOptions const&, rocksdb::IODebugContext*)':
/usr/include/liburing.h:745: undefined reference to `__io_uring_get_cqe'
/usr/bin/ld: /usr/local/lib/librocksdb.a(io_posix.o): in function `rocksdb::CreateIOUring()':
/usr/local/src/rocksdb/./env/io_posix.h:272: undefined reference to `io_uring_queue_init'
/usr/bin/ld: /usr/local/lib/librocksdb.a(io_posix.o): in function `rocksdb::PosixRandomAccessFile::MultiRead(rocksdb::FSReadRequest*, unsigned long, rocksdb::IOOptions const&, rocksdb::IODebugContext*)':
/usr/include/liburing.h:745: undefined reference to `__io_uring_get_cqe'
collect2: error: ld returned 1 exit status

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

Linux host 5.15.0-73-generic #80-Ubuntu SMP

@kolinfluence
Copy link
Author

my kernel needs upgrade.

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

1 participant