I use command line for compiling mysql with rocksdb, but after run make command line. It's show an error.
cmake . -DCMAKE_BUILD_TYPE=Debug -DWITH_SSL=system \
-DWITH_ZLIB=bundled -DMYSQL_MAINTAINER_MODE=1 \
-DENABLE_DTRACE=0
That's below an error from build source code steps.
[ 16%] Building CXX object storage/innobase/CMakeFiles/innobase_embedded.dir/handler/handler0alter.cc.o
/home/rchatsiri/workspacecpp/mysql-5.6/storage/innobase/handler/handler0alter.cc: In function ‘bool innobase_update_foreign_try(ha_innobase_inplace_ctx*, trx_t*, const char*, const char*)’:
/home/rchatsiri/workspacecpp/mysql-5.6/storage/innobase/handler/handler0alter.cc:4722:18: error: nonnull argument ‘ctx’ compared to NULL [-Werror=nonnull-compare]
DBUG_ASSERT(ctx);
^
/home/rchatsiri/workspacecpp/mysql-5.6/storage/innobase/handler/handler0alter.cc: In function ‘bool innobase_rename_columns_try(Alter_inplace_info*, ha_innobase_inplace_ctx*, const TABLE*, trx_t*, const char*)’:
/home/rchatsiri/workspacecpp/mysql-5.6/storage/innobase/handler/handler0alter.cc:4545:18: error: nonnull argument ‘ctx’ compared to NULL [-Werror=nonnull-compare]
DBUG_ASSERT(ctx);
^
cc1plus: all warnings being treated as errors
storage/innobase/CMakeFiles/innobase_embedded.dir/build.make:634: recipe for target 'storage/innobase/CMakeFiles/innobase_embedded.dir/handler/handler0alter.cc.o' failed
make[2]: *** [storage/innobase/CMakeFiles/innobase_embedded.dir/handler/handler0alter.cc.o] Error 1
CMakeFiles/Makefile2:940: recipe for target 'storage/innobase/CMakeFiles/innobase_embedded.dir/all' failed
make[1]: *** [storage/innobase/CMakeFiles/innobase_embedded.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
In normal steps to run command line build such as cmake and make command line. I can compiled source code success.
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_SSL=system \
-DWITH_ZLIB=bundled -DMYSQL_MAINTAINER_MODE=0 -DENABLED_LOCAL_INFILE=1 \
-DENABLE_DTRACE=0 -DCMAKE_CXX_FLAGS="-march=native"