[cfe-dev] clang hangs when compiling simple program

JP jpbonn-keyword-cfedev.957c48 at corniceresearch.com
Thu Oct 7 16:14:30 PDT 2010


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.



More information about the cfe-dev mailing list