<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">AFAIK, gcc 4.8 is not part of the
      repositories of Ubuntu 12.04... So, it would need to add extra
      packages to build lldb ... :/<br>
      <br>
      <br>
      On 24/11/2013 18:04, Todd Fiala wrote:<br>
    </div>
    <blockquote
cite="mid:CAFab17L9DF95XAusxHXeB_3r3MitKeE0M_B0NFzASJ=KBB9QZA@mail.gmail.com"
      type="cite">
      <div dir="ltr">FWIW I have the build process we're using over here
        on Ubuntu 12.04 building with gcc 4.8.2 since I hit build errors
        on that path as well.  I tried several other paths that each
        failed for different reasons before settling on that one.</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Sun, Nov 24, 2013 at 7:22 AM, Colin
          Riley <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:colin@codeplay.com" target="_blank">colin@codeplay.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div>
                <div
                  style="FONT-SIZE:11pt;FONT-FAMILY:Calibri,sans-serif">We
                  noticed this too, but assumed it was just progress on
                  the uptake of cpp11 features. We would rather not need
                  to upgrade to 4.8 either, but understand if this is
                  just the path that is being taken.<br>
                  <br>
                  Colin</div>
              </div>
              <div dir="ltr">
                <hr>
                <span
                  style="FONT-SIZE:11pt;FONT-FAMILY:Calibri,sans-serif;FONT-WEIGHT:bold">From:
                </span><span
                  style="FONT-SIZE:11pt;FONT-FAMILY:Calibri,sans-serif"><a
                    moz-do-not-send="true"
                    href="mailto:sylvestre@debian.org" target="_blank">Sylvestre
                    Ledru</a></span><br>
                <span
                  style="FONT-SIZE:11pt;FONT-FAMILY:Calibri,sans-serif;FONT-WEIGHT:bold">Sent:
                </span><span
                  style="FONT-SIZE:11pt;FONT-FAMILY:Calibri,sans-serif">24/11/2013
                  11:17</span><br>
                <span
                  style="FONT-SIZE:11pt;FONT-FAMILY:Calibri,sans-serif;FONT-WEIGHT:bold">To:
                </span><span
                  style="FONT-SIZE:11pt;FONT-FAMILY:Calibri,sans-serif"><a
                    moz-do-not-send="true"
                    href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a></span><br>
                <span
                  style="FONT-SIZE:11pt;FONT-FAMILY:Calibri,sans-serif;FONT-WEIGHT:bold">Subject:
                </span><span
                  style="FONT-SIZE:11pt;FONT-FAMILY:Calibri,sans-serif">[lldb-dev]
                  lldb 3.4 rc1 is failing with gcc 4.6</span><br>
                <br>
              </div>
              <div>
                <div class="h5">Hello,<br>
                  <br>
                  I am working on the port of lldb on the various Debian
                  architectures<br>
                  [1]. On some of them (sparc, s390x, powerpc, ia64,
                  ...),<br>
                  the version of gcc used is 4.6 and lldb fails to build
                  because of this<br>
                  declaration.<br>
                      Mutex *m_mutex = nullptr;<br>
                  in include/lldb/Utility/Iterable.h<br>
                  <br>
                  It fails with:<br>
                  <br>
                  /«BUILDDIR»/llvm-toolchain-3.4-3.4~+rc1/tools/lldb/source/../include/lldb/Utility/Iterable.h:197:22:
                  sorry, unimplemented: non-static data member
                  initializers<br>
                  /«BUILDDIR»/llvm-toolchain-3.4-3.4~+rc1/tools/lldb/source/../include/lldb/Utility/Iterable.h:197:22:
                  error: 'constexpr' needed for in-class initialization
                  of static data member 'm_mutex' of non-integral type<br>
                  /«BUILDDIR»/llvm-toolchain-3.4-3.4~+rc1/tools/lldb/source/../include/lldb/Utility/Iterable.h:
                  In constructor
                  'lldb_private::LockingAdaptedIterable<C, E,
                  A>::LockingAdaptedIterable(C&,
                  lldb_private::Mutex&)':<br>
                  /«BUILDDIR»/llvm-toolchain-3.4-3.4~+rc1/tools/lldb/source/../include/lldb/Utility/Iterable.h:201:9:
                  error: class
                  'lldb_private::LockingAdaptedIterable<C, E, A>'
                  does not have any field named 'm_mutex'<br>
                  /«BUILDDIR»/llvm-toolchain-3.4-3.4~+rc1/tools/lldb/source/../include/lldb/Utility/Iterable.h:203:9:
                  error: 'm_mutex' was not declared in this scope<br>
                  /«BUILDDIR»/llvm-toolchain-3.4-3.4~+rc1/tools/lldb/source/../include/lldb/Utility/Iterable.h:
                  In constructor
                  'lldb_private::LockingAdaptedIterable<C, E,
                  A>::LockingAdaptedIterable(lldb_private::LockingAdaptedIterable<C,
                  E, A>&&)':<br>
                  /«BUILDDIR»/llvm-toolchain-3.4-3.4~+rc1/tools/lldb/source/../include/lldb/Utility/Iterable.h:208:9:
                  error: class
                  'lldb_private::LockingAdaptedIterable<C, E, A>'
                  does not have any field named 'm_mutex'<br>
                  /«BUILDDIR»/llvm-toolchain-3.4-3.4~+rc1/tools/lldb/source/../include/lldb/Utility/Iterable.h:
                  In destructor
                  'lldb_private::LockingAdaptedIterable<C, E,
                  A>::~LockingAdaptedIterable()':<br>
                  /«BUILDDIR»/llvm-toolchain-3.4-3.4~+rc1/tools/lldb/source/../include/lldb/Utility/Iterable.h:215:13:
                  error: 'm_mutex' was not declared in this scope<br>
                  <br>
                  <br>
                  Is there a workaround to tackle this limitation ? I
                  could switch to gcc<br>
                  4.8 but it would break the backport of lldb on <a
                    moz-do-not-send="true" href="http://llvm.org/apt/"
                    target="_blank">http://llvm.org/apt/</a><br>
                  (especially on old Ubuntu without gcc 4.8)<br>
                  <br>
                  Thanks,<br>
                  Sylvestre<br>
                  <br>
                  <br>
                  <br>
                  [1] <a moz-do-not-send="true"
                    href="https://buildd.debian.org/status/package.php?p=llvm-toolchain-3.4"
                    target="_blank">https://buildd.debian.org/status/package.php?p=llvm-toolchain-3.4</a><br>
                  _______________________________________________<br>
                  lldb-dev mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev"
                    target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            lldb-dev mailing list<br>
            <a moz-do-not-send="true" href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
            <a moz-do-not-send="true"
              href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev"
              target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>