Skip to content

cannot make on ubuntu 22.04 #9

@ErfanMN

Description

@ErfanMN

Hi, I am trying to install it on ubuntu 22.04 but I've got some error!

DEBUG_LEVEL=0 make -C src/rocksdb-4.13 static_lib
make[1]: Entering directory '/home/erfan/rocksdb-server/src/rocksdb-4.13'
GEN util/build_version.cc
CC db/auto_roll_logger.o
In file included from ./util/statistics.h:17,
from ./util/stop_watch.h:8,
from ./util/perf_step_timer.h:9,
from ./util/iostats_context_imp.h:8,
from ./util/posix_logger.h:27,
from ./port/util_logger.h:18,
from ./db/auto_roll_logger.h:15,
from db/auto_roll_logger.cc:6:
./util/thread_local.h:205:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
205 | #if ROCKSDB_SUPPORT_THREAD_LOCAL
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./util/thread_local.h:205:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
./util/thread_local.h:205:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
./util/thread_local.h:66:16: error: ‘function’ in namespace ‘std’ does not name a template type
66 | typedef std::function<void(void*, void*)> FoldFunc;
| ^~~~~~~~
./util/thread_local.h:18:1: note: ‘std::function’ is defined in header ‘’; did you forget to ‘#include ’?
17 | #include "util/autovector.h"
+++ |+#include
18 | #include "port/port.h"
./util/thread_local.h:71:13: error: ‘FoldFunc’ has not been declared
71 | void Fold(FoldFunc func, void* res);
| ^~~~~~~~
./util/thread_local.h:142:28: error: ‘FoldFunc’ has not been declared
142 | void Fold(uint32_t id, FoldFunc func, void* res);
| ^~~~~~~~
make[1]: *** [Makefile:1471: db/auto_roll_logger.o] Error 1
make[1]: Leaving directory '/home/erfan/rocksdb-server/src/rocksdb-4.13'
make: *** [Makefile:44: src/rocksdb-4.13/librocksdb.a] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions