[cfe-dev] Unable to build clang in MacOS 10.5.3

Filipe Cabecinhas filcab at gmail.com
Sat May 31 15:07:28 PDT 2008


Hi,

I'm trying to build clang on MacOS 10.5.3 (XCode 3.0, i686-apple- 
darwin9-gcc-4.0.1) but I get the following error:
/usr/include/c++/4.0.0/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.0.0/debug/formatter.h:214: error: cannot use typeid  
with -fno-rtti
/usr/include/c++/4.0.0/debug/formatter.h:220: error: cannot use typeid  
with -fno-rtti

I commented all the CXX.flags = -fno-rtti and it built. I'm now  
testing it but I'm checking with you to see if it's a known bug (in  
llvm's IRC channel no-one knew about the bug, only suggested  
commenting the -fno-rtti).

Thanks for the help,

   - Filipe Cabecinhas






More information about the cfe-dev mailing list