I get the error below when trying to build clang with expensive checks. Works fine w/o these. Is this a known problem? This is on Ubuntu Hardy using this compiler: regehr at john-home:~$ g++ --version g++ (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4) Thanks, John Regehr make[4]: Entering directory `/home/regehr/z/tmp/llvm-r80385/tools/clang/lib/Basic' llvm[4]: Compiling Builtins.cpp for Release+Checks build llvm[2]: Linking Release+Checks executable llvm-db (without symbols) In file included from /usr/include/c++/4.2/debug/debug.h:141, from /usr/include/c++/4.2/bits/stl_algobase.h:78, from /usr/include/c++/4.2/algorithm:65, from /home/regehr/z/tmp/llvm-r80385/include/llvm/ADT/StringRef.h:13, from /home/regehr/z/tmp/llvm-r80385/include/llvm/ADT/StringMap.h:17, from /home/regehr/z/tmp/llvm-r80385/tools/clang/lib/Basic/../../include/clang/Basic/IdentifierTable.h:20, from Builtins.cpp:15: /usr/include/c++/4.2/debug/formatter.h: In constructor ‘__gnu_debug::_Error_formatter::_Parameter::_Parameter(const __gnu_debug::_Safe_iterator<_Iterator, _Sequence>&, const char*, __gnu_debug::_Error_formatter::_Is_iterator)’: /usr/include/c++/4.2/debug/formatter.h:218: error: cannot use typeid with -fno-rtti
Hi John,> I get the error below when trying to build clang with expensive checks. > Works fine w/o these. Is this a known problem?this is a bug in libstdc++, and has been fixed here: http://gcc.gnu.org/viewcvs?view=revision&revision=147599 If you can't pick up the fix, try compiling clang without the -fno-rtti option. Ciao, Duncan.
Hmmm, this used to work, at least it didn't on Aug 07 on x86_64: http://google1.osuosl.org:8011/builders/clang-x86_64-linux-check - Daniel On Fri, Aug 28, 2009 at 1:21 PM, Duncan Sands<baldrick at free.fr> wrote:> Hi John, > >> I get the error below when trying to build clang with expensive checks. >> Works fine w/o these. Is this a known problem? > > this is a bug in libstdc++, and has been fixed here: > http://gcc.gnu.org/viewcvs?view=revision&revision=147599 > If you can't pick up the fix, try compiling clang without the > -fno-rtti option. > > Ciao, > > Duncan. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Reasonably Related Threads
- [LLVMdev] Debug+Checks Failures
- [LLVMdev] can't build w/expensive checks
- [LLVMdev] Sefault in llvm-mc when emitting an object file
- [LLVMdev] [cfe-dev] [RFC] Extending and improving Clang's undefined behavior checking
- [LLVMdev] can't build w/expensive checks