[lldb-dev] LLDB compile problem: contradicting exception specifications

Bjoern Kahl diverse.logins at bjoern-kahl.de
Thu Jan 30 09:18:57 PST 2014

 Dear All,

 I am trying to build LLDB on Mac OSX Snow Leopard using command line
 build as per instructions from the web page http://lldb.llvm.org/build.html

 Since XCode does not worked for me, I am trying the autotools & make
 based build.

 After checking out llvm and then clang and lldb into the tools
 directory of the llvm tree, I configured with:

 > myllvm : root of llvm tree
 > myllldb : tools/lldb in llvm tree
 > mybuild : build directory outside the trees

 > cd ${mybuild}
 > ${myllvm}/configure --enable-cxx11 --enable-optimized
CC=/opt/local/bin/gcc CXX=/opt/local/bin/g++

 and build with

 > make DEBUG_SYMBOLS=0 CC=/opt/local/bin/gcc CXX=/opt/local/bin/g++

 The used compiler is MacPorts' gcc-4.7 / g++-4.7

 LLVM compiles fine, Clang required me manually create
 "${mybuild}/include/clang/Config" and then symlink the
 "${mybuild}/include/llvm/Config/config.h into it.

 Clang compiled fine afterwards.

 Compiling LLDB now fails with:

> llvm[3]: Compiling lldb.cpp for Release+Debug+Asserts build
> In file included from /.../lldb/llvm/tools/lldb/source/../include/lldb/DataFormatters/FormattersContainer.h:29:0,
>                  from /.../lldb/llvm/tools/lldb/source/../include/lldb/DataFormatters/FormatManager.h:23,
>                  from /.../lldb/llvm/tools/lldb/source/../include/lldb/Core/Debugger.h:27,
>                  from /.../lldb/llvm/tools/lldb/source/lldb.cpp:15:
> /.../lldb/llvm/tools/lldb/source/../include/lldb/DataFormatters/TypeFormat.h:232:17: error: looser throw specifier for 'virtual lldb_private::TypeFormatImpl_Format::~TypeFormatImpl_Format()'
> /.../lldb/llvm/tools/lldb/source/../include/lldb/DataFormatters/TypeFormat.h:138:17: error:   overriding 'virtual lldb_private::TypeFormatImpl::~TypeFormatImpl() noexcept (true)'
> /.../lldb/llvm/tools/lldb/source/../include/lldb/DataFormatters/TypeFormat.h:275:9: error: looser throw specifier for 'virtual lldb_private::TypeFormatImpl_EnumType::~TypeFormatImpl_EnumType()'
> /.../lldb/llvm/tools/lldb/source/../include/lldb/DataFormatters/TypeFormat.h:138:17: error:   overriding 'virtual lldb_private::TypeFormatImpl::~TypeFormatImpl() noexcept (true)'

 The checkout is from Jan 28th, revision 200341.

 How can I fix the problem, i.e. which exception specification is the
 right one?

 Best regards


|     Bjoern Kahl   +++   Siegburg   +++    Germany     |
| "googlelogin at -my-domain-"   +++   www.bjoern-kahl.de  |
| Languages: German, English, Ancient Latin (a bit :-)) |

More information about the lldb-dev mailing list