[cfe-dev] recent change broke -fcatch-undefined-behavior

Richard Smith richard at metafoo.co.uk
Tue Nov 20 15:24:15 PST 2012


On Tue, Nov 20, 2012 at 2:55 PM, Sean McBride <sean at rogue-research.com> wrote:
> On Fri, 16 Nov 2012 11:32:26 -0500, Sean McBride said:
>
>>>landed these patches in r168167,r168168
>>
>>I've just tried r168171, and now I can't even build clang:
>>
>>/Users/sean/llvm/llvm/projects/compiler-rt/lib/ubsan/ubsan_value.h:27:9:
>>error: unknown type name '__int128'; did you mean '__int128_t'?
>>typedef __int128 s128;
>>        ^~~~~~~~
>>        __int128_t
>>note: '__int128_t' declared here
>>/Users/sean/llvm/llvm/projects/compiler-rt/lib/ubsan/ubsan_value.h:
>>28:26: error: expected ';' after top level declarator
>>typedef unsigned __int128 u128;
>>                         ^
>>                         ;
>
> So nobody else sees this?  Even now (r168392), I still can't even build clang anymore...

It looks like you're building compiler-rt with an old version of
clang. You should be able to work around this by first building a new
clang (remove compiler-rt from your checkout so the build succeeds),
then building compiler-rt with that. Eventually the build system
should do this for you, but that's not been implemented yet.



More information about the cfe-dev mailing list