Problem building llvm 3.5.0 with gcc 4.9.0

Hi all,

I've just tried building llvm 3.5.0 with GCC 4.9.0 and hit this error:

Error.cpp:28:44: error: declaration of ‘virtual const
char*{anonymous}::_object_error_category::name() const’ has a
different exception specifier
Error.cpp:23:15: error: from previous declaration ‘virtual const
char*{anonymous}::_object_error_category::name() const noexcept

Is this a known issue, and if so, is there a workaround? I've not seen
anyone else report this issue so it does make me wonder if it's
something on my side somehow :slight_smile:

I'm building my own GCC4.9.0 from source and using that; on Redhat
6.5, if that helps at all.

Thanks in advance for any help!


I believe revision 215886 addresses this issue. Hopefully, it will be backported.