[lldb-dev] Building lldb on Mac command line

Michael Sartain mikesart at valvesoftware.com
Sat Jun 15 00:32:56 PDT 2013


I'm trying to build lldb on my Mac with cmake, but I'm running into this
error about 79% of the way through.

/Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/Utility/SharingPtr.h:201:10:
error: no member named 'unique_ptr' in namespace 'std'
    std::unique_ptr<Y> hold(p);

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.

If anyone has any suggestions on what I've done wrong here, I'd really
appreciate it. Thanks.
 -Mike

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

I did a "cmake -DCMAKE_BUILD_TYPE=Debug ../llvm" followed by "make
CXXFLAGS=-std=c++0x".

Various version info:

new-host:include mikesart$ /usr/bin/c++ --version
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix

new-host:include mikesart$ uname -a
Darwin new-host.ftrdhcpuser.net 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

new-host:include mikesart$ /usr/bin/c++ -Wp,-v -x c++ - -fsyntax-only
clang -cc1 version 4.2 based upon LLVM 3.2svn default target
x86_64-apple-darwin12.3.0
ignoring nonexistent directory
"/usr/include/c++/4.2.1/i686-apple-darwin10/x86_64"
ignoring nonexistent directory "/usr/include/c++/4.0.0"
ignoring nonexistent directory "/usr/include/c++/4.0.0/i686-apple-darwin8/"
ignoring nonexistent directory "/usr/include/c++/4.0.0/backward"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/4.2.1
 /usr/include/c++/4.2.1/backward
 /usr/local/include
 /usr/bin/../lib/clang/4.2/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.

Output of launching /usr/bin/c++ with "-v":

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
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
 "/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
clang -cc1 version 4.2 based upon LLVM 3.2svn default target
x86_64-apple-darwin12.3.0
ignoring nonexistent directory
"/Users/mikesart/data/src/llvm/build/tools/lldb/include"
ignoring nonexistent directory
"/usr/include/c++/4.2.1/i686-apple-darwin10/x86_64"
ignoring nonexistent directory "/usr/include/c++/4.0.0"
ignoring nonexistent directory "/usr/include/c++/4.0.0/i686-apple-darwin8/"
ignoring nonexistent directory "/usr/include/c++/4.0.0/backward"
#include "..." search starts here:
#include <...> search starts here:
 /Users/mikesart/data/src/llvm/build/tools/lldb/source/Utility
 /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility
 /Users/mikesart/data/src/llvm/llvm/tools/lldb/include
 /Users/mikesart/data/src/llvm/build/include
 /Users/mikesart/data/src/llvm/llvm/include
 /usr/include/python2.7
 /Users/mikesart/data/src/llvm/llvm/tools/lldb/../clang/include
 /Users/mikesart/data/src/llvm/build/tools/lldb/../clang/include
 /Users/mikesart/data/src/llvm/llvm/tools/lldb/source/.
 /System/Library/PrivateFrameworks (framework directory)
 /usr/include/c++/4.2.1
 /usr/include/c++/4.2.1/backward
 /usr/local/include
 /usr/bin/../lib/clang/4.2/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
In file included from
/Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility/ARM_DWARF_Registers.cpp:10:
In file included from
/Users/mikesart/data/src/llvm/llvm/tools/lldb/source/Utility/ARM_DWARF_Registers.h:13:
In file included from
/Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/lldb-private.h:15:
In file included from
/Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/lldb-public.h:13:
In file included from
/Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/lldb-defines.h:13:
In file included from
/Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/lldb-types.h:14:
In file included from
/Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/lldb-forward.h:15:
/Users/mikesart/data/src/llvm/llvm/tools/lldb/include/lldb/Utility/SharingPtr.h:201:10:
error: no member named 'unique_ptr' in namespace 'std'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130615/9aa6de0c/attachment.html>


More information about the lldb-dev mailing list