<p dir="ltr">Hi Arne,</p>
<p dir="ltr">I think you're going to need GCC 4.8.2 (that's what I use).  There may be other dependencies, Ubuntu 14.04 is known to work with a minimum of effort.</p>
<p dir="ltr">Vince<br>
</p>
<div class="gmail_quote">On Nov 21, 2014 1:03 AM, "Arne Schmitz" <<a href="mailto:arne.schmitz@aixigo.de">arne.schmitz@aixigo.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everybody,<br>
<br>
I am still trying to build lldb on Debian Stable. I configured cmake like this:<br>
<br>
cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_C_COMPILER=/export/<u></u>source/clang/bin/clang -DCMAKE_CXX_COMPILER=/export/<u></u>source/clang/bin/clang++ -DCMAKE_INSTALL_PREFIX=/<u></u>export/source/clang ..<br>
<br>
However, I think that the build tries to use my c++ stdlib provided by the system gcc 4.7, and that this is the cause of the error:<br>
<br>
[ 91%] Building CXX object tools/lldb/source/Plugins/<u></u>Process/Linux/CMakeFiles/<u></u>lldbPluginProcessLinux.dir/<u></u>ThreadStateCoordinator.cpp.o<br>
In file included from /export/source/git/llvm/tools/<u></u>lldb/source/Plugins/Process/<u></u>Linux/ThreadStateCoordinator.<u></u>cpp:17:<br>
In file included from /export/source/git/llvm/tools/<u></u>lldb/source/Plugins/Process/<u></u>Linux/ThreadStateCoordinator.<u></u>h:13:<br>
In file included from /usr/lib/gcc/x86_64-linux-gnu/<u></u>4.7/../../../../include/c++/4.<u></u>7/condition_variable:38:<br>
/usr/lib/gcc/x86_64-linux-gnu/<u></u>4.7/../../../../include/c++/4.<u></u>7/chrono:540:6: error: no matching constructor for initialization of 'duration' (aka<br>
      'std::chrono::duration<long, std::ratio<1, 1000000> >')<br>
          : __d(__t.time_since_epoch())<br>
            ^   ~~~~~~~~~~~~~~~~~~~~~~<br>
/usr/lib/gcc/x86_64-linux-gnu/<u></u>4.7/../../../../include/c++/4.<u></u>7/condition_variable:111:42: note: in instantiation of function template specialization<br>
      'std::chrono::time_point<std::<u></u>chrono::system_clock, std::chrono::duration<long, std::ratio<1, 1000000> ><br>
      >::time_point<std::chrono::<u></u>duration<long, std::ratio<1, 1000000000> > >' requested here<br>
        const __clock_t::time_point __s_atime = __s_entry + __delta;<br>
                                                ^<br>
/usr/lib/gcc/x86_64-linux-gnu/<u></u>4.7/../../../../include/c++/4.<u></u>7/chrono:234:12: note: candidate constructor not viable: no known conversion from<br>
      'duration<[...], ratio<[...], 1000000000>>' to 'const duration<[...], ratio<[...], 1000000>>' for 1st argument<br>
        constexpr duration(const duration&) = default;<br>
                  ^<br>
/usr/lib/gcc/x86_64-linux-gnu/<u></u>4.7/../../../../include/c++/4.<u></u>7/chrono:237:19: note: candidate template ignored: disabled by 'enable_if' [with _Rep2 =<br>
      std::chrono::duration<long, std::ratio<1, 1000000000> >]<br>
               enable_if<is_convertible<_<u></u>Rep2, rep>::value<br>
                         ^<br>
/usr/lib/gcc/x86_64-linux-gnu/<u></u>4.7/../../../../include/c++/4.<u></u>7/chrono:244:19: note: candidate template ignored: disabled by 'enable_if' [with _Rep2 =<br>
      long, _Period2 = std::ratio<1, 1000000000>]<br>
enable_if<treat_as_floating_<u></u>point<rep>::value<br>
                         ^<br>
/usr/lib/gcc/x86_64-linux-gnu/<u></u>4.7/../../../../include/c++/4.<u></u>7/chrono:232:12: note: candidate constructor not viable: requires 0 arguments, but 1 was<br>
      provided<br>
        constexpr duration() : __r() { }<br>
                  ^<br>
1 error generated.<br>
make[2]: *** [tools/lldb/source/Plugins/<u></u>Process/Linux/CMakeFiles/<u></u>lldbPluginProcessLinux.dir/<u></u>ThreadStateCoordinator.cpp.o] Error 1<br>
make[1]: *** [tools/lldb/source/Plugins/<u></u>Process/Linux/CMakeFiles/<u></u>lldbPluginProcessLinux.dir/<u></u>all] Error 2<br>
make: *** [all] Error 2<br>
<br>
I also compiled and installed libcxx, so maybe I should switch to that? How do I do that?<br>
<br>
Best regards,<br>
<br>
Arne<br>
<br>
-- <br>
aixigo AG - einfach. besser. beraten.<br>
Karl-Friedrich-Straße 68, 52072 Aachen, Germany<br>
fon: <a href="tel:%2B49%20%280%29241%20559709-66" value="+4924155970966" target="_blank">+49 (0)241 559709-66</a>, fax: <a href="tel:%2B49%20%280%29241%20559709-99" value="+4924155970999" target="_blank">+49 (0)241 559709-99</a><br>
eMail: <a href="mailto:arne.schmitz@aixigo.de" target="_blank">arne.schmitz@aixigo.de</a>, web: <a href="http://www.aixigo.de" target="_blank">http://www.aixigo.de</a><br>
<br>
Amtsgericht Aachen - HRB 8057<br>
Vorstand: Erich Borsch, Christian Friedrich, Tobias Haustein<br>
Vors. des Aufsichtsrates: Prof. Dr. Rüdiger von Nitzsch<br>
<br>
______________________________<u></u>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/lldb-dev</a><br>
</blockquote></div>