[lldb-dev] Fail to compile LLDB 3.4
Greg Clayton
gclayton at apple.com
Mon Jan 13 10:51:29 PST 2014
It looks like a C++11 issue with the compiler you are compiling with. LLDB requires C++11 in order to build. You can try a newer GCC (4.8) or top of tree clang.
Greg
On Jan 13, 2014, at 6:27 AM, Jun Koi <junkoi2004 at gmail.com> wrote:
> Any help, please??
>
> Thanks.
>
>
> On Sat, Jan 11, 2014 at 3:44 PM, Jun Koi <junkoi2004 at gmail.com> wrote:
> hi,
>
> i am trying to compile lldb 3.4 with clang 3.4, but got some errors as below.
> any idea how to fix this??
>
> many thanks,
> Jun
>
> $ clang -v
> clang version 3.4 (tags/RELEASE_34/final)
> Target: i386-pc-linux-gnu
> Thread model: posix
> Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.6
> Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.6.3
> Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6
> Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6.3
> Selected GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.6
>
>
> $ configure --prefix=/usr --enable-cxx11
> $ make ENABLE_OPTIMIZED=1 DEBUG_SYMBOLS=0
> ....
> ....
> In file included from Driver.cpp:20:
> In file included from /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/thread:38:
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono|535 col 6| error: no matching constructor for initialization of 'duration' (aka 'std::chrono::duration<long long, std::ratio<1, 1000000> >')
> : __d(__t.time_since_epoch())
> ^ ~~~~~~~~~~~~~~~~~~~~~~
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/condition_variable|106 col 42| note: in instantiation of function template specialization 'std::chrono::time_point<std::chrono::system_clock, std::chrono::duration<long long, std::ratio<1, 1000000> > >::time_point<std::chrono::duration<long long, std::ratio<1, 1000000000> > >' requested here
> const __clock_t::time_point __s_atime = __s_entry + __delta;
> ^
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono|234 col 12| note: candidate constructor not viable: no known conversion from 'duration<[...], ratio<[...], 1000000000>>' to 'const duration<[...], ratio<[...], 1000000>>' for 1st argument
> constexpr duration(const duration&) = default;
> ^
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono|237 col 19| note: candidate template ignored: disabled by 'enable_if' [with _Rep2 = std::chrono::duration<long long, std::ratio<1, 1000000000> >]
> enable_if<is_convertible<_Rep2, rep>::value
> ^
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono|244 col 19| note: candidate template ignored: disabled by 'enable_if' [with _Rep2 = long long, _Period2 = std::ratio<1, 1000000000>]
> enable_if<treat_as_floating_point<rep>::value
> ^
> /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/chrono|232 col 12| note: candidate constructor not viable: requires 0 arguments, but 1 was provided
> constexpr duration() : __r() { }
> ^
> 1 error generated.
> make[4]: *** [/home/jun/Downloads/llvm-3.4/tools/lldb/tools/driver/Release+Debug+Asserts/Driver.o] Error 1
> make[4]: Leaving directory `/home/jun/Downloads/llvm-3.4/tools/lldb/tools/driver'
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
More information about the lldb-dev
mailing list