[lldb-dev] lldb 3.4 rc1 is failing with gcc 4.6

Sean Callanan scallanan at apple.com
Mon Nov 25 05:46:04 PST 2013


Out of curiosity, are Clang and libc++ not options on these platforms?  I don't have much recent experience outside Mac OS X but building with Clang and libc++ would ensure that you guys have as similar an environment to the one we use as possible...

Sean

Sent from my iPad

> On Nov 25, 2013, at 6:36 PM, Sylvestre Ledru <sylvestre at debian.org> wrote:
> 
> 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 ... :/
> 
> 
>> On 24/11/2013 18:04, Todd Fiala wrote:
>> 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.
>> 
>> 
>>> On Sun, Nov 24, 2013 at 7:22 AM, Colin Riley <colin at codeplay.com> wrote:
>>> 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.
>>> 
>>> Colin
>>> From: Sylvestre Ledru
>>> Sent: 24/11/2013 11:17
>>> To: lldb-dev at cs.uiuc.edu
>>> Subject: [lldb-dev] lldb 3.4 rc1 is failing with gcc 4.6
>>> 
>>> Hello,
>>> 
>>> I am working on the port of lldb on the various Debian architectures
>>> [1]. On some of them (sparc, s390x, powerpc, ia64, ...),
>>> the version of gcc used is 4.6 and lldb fails to build because of this
>>> declaration.
>>>     Mutex *m_mutex = nullptr;
>>> in include/lldb/Utility/Iterable.h
>>> 
>>> It fails with:
>>> 
>>> /«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
>>> /«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
>>> /«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&)':
>>> /«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'
>>> /«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
>>> /«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>&&)':
>>> /«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'
>>> /«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()':
>>> /«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
>>> 
>>> 
>>> Is there a workaround to tackle this limitation ? I could switch to gcc
>>> 4.8 but it would break the backport of lldb on http://llvm.org/apt/
>>> (especially on old Ubuntu without gcc 4.8)
>>> 
>>> Thanks,
>>> Sylvestre
>>> 
>>> 
>>> 
>>> [1] https://buildd.debian.org/status/package.php?p=llvm-toolchain-3.4
>>> _______________________________________________
>>> lldb-dev mailing list
>>> lldb-dev at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>>> 
>>> _______________________________________________
>>> lldb-dev mailing list
>>> lldb-dev at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
> 
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131125/e9780c1c/attachment.html>


More information about the lldb-dev mailing list