<div dir="ltr"><div><div><div><div>hi,<br><br></div>i am trying to compile lldb 3.4 with clang 3.4, but got some errors as below.<br></div>any idea how to fix this??<br><br></div>many thanks,<br></div>Jun<br><br>$ clang -v<br>

clang version 3.4 (tags/RELEASE_34/final)<br>Target: i386-pc-linux-gnu<br>Thread model: posix<br>Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.6<br>Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.6.3<br>

Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6<br>Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6.3<br>Selected GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.6<br><br><br>$ configure --prefix=/usr --enable-cxx11 <br>

$ make ENABLE_OPTIMIZED=1 DEBUG_SYMBOLS=0<br>....<br>....<br>In file included from Driver.cpp:20:<br>In file included from /usr/bin/../lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/thread:38:<br>/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> >')          <br>

           : __d(__t.time_since_epoch())<br>             ^   ~~~~~~~~~~~~~~~~~~~~~~<br>/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<br>

         const __clock_t::time_point __s_atime = __s_entry + __delta;<br>                                                 ^<br>/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<br>

         constexpr duration(const duration&) = default;<br>                   ^<br>/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> >]<br>

                enable_if<is_convertible<_Rep2, rep>::value<br>                          ^<br>/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>]<br>

                enable_if<treat_as_floating_point<rep>::value<br>                          ^<br>/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<br>

         constexpr duration() : __r() { }<br>                   ^<br> 1 error generated.<br> make[4]: *** [/home/jun/Downloads/llvm-3.4/tools/lldb/tools/driver/Release+Debug+Asserts/Driver.o] Error 1<br> make[4]: Leaving directory `/home/jun/Downloads/llvm-3.4/tools/lldb/tools/driver'<br>

<br></div>