<div dir="ltr"><div><div style>I'm trying to build lldb on my Mac with cmake, but I'm running into this error about 79% of the way through.</div><div><br></div><div>/Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/Utility/SharingPtr.h:201:10: error: no member named 'unique_ptr' in namespace 'std'</div>
<div> std::unique_ptr<Y> hold(p);</div></div><div><br></div><div style>The compile line below is where it's error'ing out on. If I explicitly add "-I/usr/lib/c++/v1", it works. That directory appears to have the only "memory" header file which has unique_ptr in it.</div>
<div style><br></div><div style>If anyone has any suggestions on what I've done wrong here, I'd really appreciate it. Thanks.</div><div style> -Mike</div><div><br></div><div><div>new-host:Utility mikesart$ /usr/bin/c++ -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -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++0x -std=c++11 -fno-rtti -fPIC -g -I/Users/mikesart/data/src/llvm/build/tools/lldb/source/Utility -I/Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility -I/Users/mikesart/data/src/llvm/llvm/tools/lldb/include -I/Users/mikesart/data/src/llvm/build/tools/lldb/include -I/Users/mikesart/data/src/llvm/build/include -I/Users/mikesart/data/src/llvm/llvm/include -I/usr/include/python2.7 -I/Users/mikesart/data/src/llvm/llvm/tools/lldb/../clang/include -I/Users/mikesart/data/src/llvm/build/tools/lldb/../clang/include -I/Users/mikesart/data/src/llvm/llvm/tools/lldb/source/. -fno-exceptions -F/System/Library/PrivateFrameworks -o CMakeFiles/lldbUtility.dir/ARM_DWARF_Registers.cpp.o -c /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility/ARM_DWARF_Registers.cpp</div>
</div><div><br></div><div style>I did a "cmake -DCMAKE_BUILD_TYPE=Debug ../llvm" followed by "make CXXFLAGS=-std=c++0x".</div><div style><br></div><div style>Various version info:</div><div><br></div>
<div>
<div>new-host:include mikesart$ /usr/bin/c++ --version</div><div>Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)</div><div>Target: x86_64-apple-darwin12.3.0</div><div>Thread model: posix</div></div><div><br>
</div><div><div>new-host:include mikesart$ uname -a</div><div>Darwin <a href="http://new-host.ftrdhcpuser.net">new-host.ftrdhcpuser.net</a> 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64</div>
</div><div><br></div><div><div>new-host:include mikesart$ /usr/bin/c++ -Wp,-v -x c++ - -fsyntax-only</div><div>clang -cc1 version 4.2 based upon LLVM 3.2svn default target x86_64-apple-darwin12.3.0</div><div>ignoring nonexistent directory "/usr/include/c++/4.2.1/i686-apple-darwin10/x86_64"</div>
<div>ignoring nonexistent directory "/usr/include/c++/4.0.0"</div><div>ignoring nonexistent directory "/usr/include/c++/4.0.0/i686-apple-darwin8/"</div><div>ignoring nonexistent directory "/usr/include/c++/4.0.0/backward"</div>
<div>#include "..." search starts here:</div><div>#include <...> search starts here:</div><div> /usr/include/c++/4.2.1</div><div> /usr/include/c++/4.2.1/backward</div><div> /usr/local/include</div><div> /usr/bin/../lib/clang/4.2/include</div>
<div> /usr/include</div><div> /System/Library/Frameworks (framework directory)</div><div> /Library/Frameworks (framework directory)</div><div>End of search list.</div></div><div><br></div><div style>Output of launching /usr/bin/c++ with "-v":</div>
<div><br></div><div><div>new-host:Utility mikesart$ /usr/bin/c++ -v -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -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++11 -fno-rtti -fPIC -g -I/Users/mikesart/data/src/llvm/build/tools/lldb/source/Utility -I/Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility -I/Users/mikesart/data/src/llvm/llvm/tools/lldb/include -I/Users/mikesart/data/src/llvm/build/tools/lldb/include -I/Users/mikesart/data/src/llvm/build/include -I/Users/mikesart/data/src/llvm/llvm/include -I/usr/include/python2.7 -I/Users/mikesart/data/src/llvm/llvm/tools/lldb/../clang/include -I/Users/mikesart/data/src/llvm/build/tools/lldb/../clang/include -I/Users/mikesart/data/src/llvm/llvm/tools/lldb/source/. -fno-exceptions -F/System/Library/PrivateFrameworks -o CMakeFiles/lldbUtility.dir/ARM_DWARF_Registers.cpp.o -c /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility/ARM_DWARF_Registers.cpp</div>
<div>Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)</div><div>Target: x86_64-apple-darwin12.3.0</div><div>Thread model: posix</div><div> "/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name ARM_DWARF_Registers.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 136 -v -g -coverage-file /Users/mikesart/data/src/llvm/build/tools/lldb/source/Utility/CMakeFiles/lldbUtility.dir/ARM_DWARF_Registers.cpp.o -resource-dir /usr/bin/../lib/clang/4.2 -D _DEBUG -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I /Users/mikesart/data/src/llvm/build/tools/lldb/source/Utility -I /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility -I /Users/mikesart/data/src/llvm/llvm/tools/lldb/include -I /Users/mikesart/data/src/llvm/build/tools/lldb/include -I /Users/mikesart/data/src/llvm/build/include -I /Users/mikesart/data/src/llvm/llvm/include -I /usr/include/python2.7 -I /Users/mikesart/data/src/llvm/llvm/tools/lldb/../clang/include -I /Users/mikesart/data/src/llvm/build/tools/lldb/../clang/include -I /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/. -F/System/Library/PrivateFrameworks -fmodule-cache-path /var/folders/47/q5s2b1yj5x99nszz64pm0t580000gn/T/clang-module-cache -Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -pedantic -std=c++11 -fconst-strings -fdeprecated-macro -fdebug-compilation-dir /Users/mikesart/data/src/llvm/build/tools/lldb/source/Utility -ferror-limit 19 -fmessage-length 163 -fvisibility-inlines-hidden -stack-protector 1 -mstackrealign -fblocks -fno-rtti -fobjc-runtime=macosx-10.8.0 -fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/lldbUtility.dir/ARM_DWARF_Registers.cpp.o -x c++ /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility/ARM_DWARF_Registers.cpp</div>
<div>clang -cc1 version 4.2 based upon LLVM 3.2svn default target x86_64-apple-darwin12.3.0</div><div>ignoring nonexistent directory "/Users/mikesart/data/src/llvm/build/tools/lldb/include"</div><div>ignoring nonexistent directory "/usr/include/c++/4.2.1/i686-apple-darwin10/x86_64"</div>
<div>ignoring nonexistent directory "/usr/include/c++/4.0.0"</div><div>ignoring nonexistent directory "/usr/include/c++/4.0.0/i686-apple-darwin8/"</div><div>ignoring nonexistent directory "/usr/include/c++/4.0.0/backward"</div>
<div>#include "..." search starts here:</div><div>#include <...> search starts here:</div><div> /Users/mikesart/data/src/llvm/build/tools/lldb/source/Utility</div><div> /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility</div>
<div> /Users/mikesart/data/src/llvm/llvm/tools/lldb/include</div><div> /Users/mikesart/data/src/llvm/build/include</div><div> /Users/mikesart/data/src/llvm/llvm/include</div><div> /usr/include/python2.7</div><div> /Users/mikesart/data/src/llvm/llvm/tools/lldb/../clang/include</div>
<div> /Users/mikesart/data/src/llvm/build/tools/lldb/../clang/include</div><div> /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/.</div><div> /System/Library/PrivateFrameworks (framework directory)</div><div> /usr/include/c++/4.2.1</div>
<div> /usr/include/c++/4.2.1/backward</div><div> /usr/local/include</div><div> /usr/bin/../lib/clang/4.2/include</div><div> /usr/include</div><div> /System/Library/Frameworks (framework directory)</div><div> /Library/Frameworks (framework directory)</div>
<div>End of search list.</div><div>In file included from /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility/ARM_DWARF_Registers.cpp:10:</div><div>In file included from /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility/ARM_DWARF_Registers.h:13:</div>
<div>In file included from /Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/lldb-private.h:15:</div><div>In file included from /Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/lldb-public.h:13:</div><div>
In file included from /Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/lldb-defines.h:13:</div><div>In file included from /Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/lldb-types.h:14:</div><div>In file included from /Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/lldb-forward.h:15:</div>
<div>/Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/Utility/SharingPtr.h:201:10: error: no member named 'unique_ptr' in namespace 'std'</div></div><div><br></div></div>