[cfe-dev] clang hangs when compiling simple program

John McCall rjmccall at apple.com
Thu Oct 7 16:55:49 PDT 2010


On Oct 7, 2010, at 4:14 PM, JP wrote:

> On 10/7/10 3:27 PM, John Myers wrote:
>> john at ubuntu:~/src$ /usr/local/src/llvm/Release/bin/clang -cc1 -nostdinc
>> -triple=arm- -emit-llvm-bc z.c -o z.bc
>> z.c:6:41: warning: comparison of unsigned expression < 0 is always false
>>     if ((unsigned int) (0x40000000 + j) < 0L)
>>         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
>> z.c:7:9: warning: implicitly declaring C library function 'abort' with
>> type 'void (void)'
>>         abort ();
>>         ^
>> z.c:7:9: note: please include the header <stdlib.h> or explicitly
>> provide a declaration for 'abort'
>> 2 warnings generated.
>> john at ubuntu:~/src$ /usr/local/src/llvm/Release/bin/clang --version
>> clang version 2.9 (trunk 115637)
>> Target: x86_64-unknown-linux-gnu
>> Thread model: posix
> 
> Thanks
> 
> I guess I should have mentioned I'm using Debug + Asserts configuration 
> on OSX.
> 
> $ clang --version
> clang version 2.9 (trunk 115977)
> Target: x86_64-apple-darwin10
> Thread model: posix
> 
> The last version I know worked for me was about 115329.  I'll have to 
> try a full reconfigure and rebuild.

It is very likely that this was introduced by me in r115725 and
fixed by Argyrios in r115985, so please let us know if it's still failing with ToT.

John.



More information about the cfe-dev mailing list