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

Ted Woodward ted.woodward at codeaurora.org
Mon Nov 25 13:48:49 PST 2013


I pulled llvm/clang/lldb from sources today and tried compiling lldb using clang on Ubuntu 12.04. It failed with include file issues:

…
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/atomic:38:
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/bits/c++0x_warning.h:32:2: error: 
      This file requires compiler and library support for the upcoming ISO C++
      standard, C++0x. This support is currently experimental, and must be
      enabled with the -std=c++0x or -std=gnu++0x compiler options.
#error This file requires compiler and library support for the upcoming \

…

/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/atomic:68:5: error: 
      unknown type name 'constexpr'
    constexpr atomic_bool(bool __i) : _M_base(__i) { }

atomic is in /usr/include/c++/4.6, and is included from llvm/tools/lldb/include/lldb/Utility/SharingPtr.h .

Ted



From: lldb-dev-bounces at cs.uiuc.edu [mailto:lldb-dev-bounces at cs.uiuc.edu] On Behalf Of Sylvestre Ledru
Sent: Monday, November 25, 2013 7:57 AM
To: lldb-dev at cs.uiuc.edu
Subject: Re: [lldb-dev] lldb 3.4 rc1 is failing with gcc 4.6

On 25/11/2013 14:46, Sean Callanan wrote:
Out of curiosity, are Clang and libc++ not options on these platforms?
clang could be an option but we prefer to bootstrap with the recommended compiler (which is still gcc under Debian).
About libc++, it has not been tested enough under Debian for now.


 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...
Well, I think that diversity is good and having the same base code compiled with different compiler and versions improve the quality of the software (even if here, it is a drawback :)

Sylvestre





More information about the lldb-dev mailing list