[Lldb-commits] [PATCH] [lldb] Build lldb-mi with cmake on Linux only
Chilledheart
rwindz0 at gmail.com
Mon May 26 06:12:28 PDT 2014
In fact, lldb-mi prevent lldb being built with cmake(Ninja) under osx 10.9.
Below is part of building log:
[1/9] Linking CXX executable bin/llvm-config
[2/9] cd /Users/chilledheart/tmp/tools/lldb/scripts && echo -n
-n
[3/9] Building CXX object tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MIUtilFileStd.cpp.o
[4/9] Building CXX object tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MICmnMIValueConst.cpp.o
[5/9] Building CXX object tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MICmnMIValueResult.cpp.o
[6/9] Building CXX object tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MICmnStreamStdin.cpp.o
[7/9] Building CXX object tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MICmnThreadMgrStd.cpp.o
FAILED: /usr/bin/clang++ -std=c++1y -stdlib=libc++ -DNDEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++1y -fcolor-diagnostics -std=c++11 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-deprecated-register -fno-rtti -Itools/lldb/tools/lldb-mi -I/Users/chilledheart/llvm/tools/lldb/tools/lldb-mi -I/Users/chilledheart/llvm/tools/lldb/include -Itools/lldb/include -Iinclude -I/Users/chilledheart/llvm/include -I/System/Library/Frameworks/Python.framework/Headers -I/Users/chilledheart/llvm/tools/lldb/../clang/include -Itools/lldb/../clang/include -MMD -MT tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MIUtilFileStd.cpp.o -MF "tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MIUtilFileStd.cpp.o.d" -o tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MIUtilFileStd.cpp.o -c /Users/chilledheart/llvm/tools/lldb/tools/lldb-mi/MIUtilFileStd.cpp
/Users/chilledheart/llvm/tools/lldb/tools/lldb-mi/MIUtilFileStd.cpp:104:77: error: use of undeclared identifier 'errno'
SetErrorDescriptionn( MIRSRC( IDS_UTIL_FILE_ERR_OPENING_FILE ), strerror( errno ), vFileNamePath.c_str() );
^
1 error generated.
FAILED: /usr/bin/clang++ -std=c++1y -stdlib=libc++ -DNDEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -std=c++1y -fcolor-diagnostics -std=c++11 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-deprecated-register -fno-rtti -Itools/lldb/tools/lldb-mi -I/Users/chilledheart/llvm/tools/lldb/tools/lldb-mi -I/Users/chilledheart/llvm/tools/lldb/include -Itools/lldb/include -Iinclude -I/Users/chilledheart/llvm/include -I/System/Library/Frameworks/Python.framework/Headers -I/Users/chilledheart/llvm/tools/lldb/../clang/include -Itools/lldb/../clang/include -MMD -MT tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MICmnStreamStdin.cpp.o -MF "tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MICmnStreamStdin.cpp.o.d" -o tools/lldb/tools/lldb-mi/CMakeFiles/lldb-mi.dir/MICmnStreamStdin.cpp.o -c /Users/chilledheart/llvm/tools/lldb/tools/lldb-mi/MICmnStreamStdin.cpp
/Users/chilledheart/llvm/tools/lldb/tools/lldb-mi/MICmnStreamStdin.cpp:26:10: fatal error: 'stropts.h' file not found
#include <stropts.h>
^
1 error generated.
ninja: build stopped: subcommand failed.
http://reviews.llvm.org/D3910
More information about the lldb-commits
mailing list