tokudb icon indicating copy to clipboard operation
tokudb copied to clipboard

compile error: unrecognized command line option ‘-Wmisleading-indentation’

Open opsnull opened this issue 7 years ago • 3 comments

HI, I was compiling tokudb on CentOS 7.4 system, but found following error:

[root@centos-512mb-nyc3-01 xelabs]# tail CMakeFiles/CMakeError.log /usr/bin/cmake -E cmake_progress_report /root/tokudb/xelabs/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec1959340251.dir/src.cxx.o /usr/bin/c++ -DHAVE_READLINE_HISTORY_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter -DHAVE_MISLEADING_INDENTATION -Wmisleading-indentation -I/usr/include/readline -o CMakeFiles/cmTryCompileExec1959340251.dir/src.cxx.o -c /root/tokudb/xelabs/CMakeFiles/CMakeTmp/src.cxx gmake[1]: 离开目录“/root/tokudb/xelabs/CMakeFiles/CMakeTmp” c++: 错误:unrecognized command line option ‘-Wmisleading-indentation’ gmake[1]: *** [CMakeFiles/cmTryCompileExec1959340251.dir/src.cxx.o] 错误 1 gmake: *** [cmTryCompileExec1959340251/fast] 错误 2

Source file was: int main(void) { return 0; }

My GCC version:

[root@centos-512mb-nyc3-01 xelabs]# uname -a Linux centos-512mb-nyc3-01 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux [root@centos-512mb-nyc3-01 xelabs]# gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16) Copyright © 2015 Free Software Foundation, Inc. 本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保; 包括没有适销性和某一专用目的下的适用性担保。

opsnull avatar Jan 30 '18 15:01 opsnull

Hello,

What's your command of the compiling? There is a guide here: https://github.com/XeLabs/tokudb/wiki/How-to-build We can use the lazy way by:

cd xelabs
bash build.sh

BohuTANG avatar Feb 02 '18 03:02 BohuTANG

I just using command bash build.sh

opsnull avatar Feb 03 '18 04:02 opsnull

What's the version of your cmake?

BohuTANG avatar Feb 03 '18 04:02 BohuTANG