Re: [cfe-users] Standard headers cannot be found when compiling with Clang

2016-01-15 Thread Matthew Brush via cfe-users
On 2016-01-15 8:36 PM, Qiuping Yi via cfe-users wrote: I use ubuntu, I don't think Clang ever could find proper includes here. See the bugs like: https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1242300 It works fine, it just doesn't know where to find the correct stdlib headers

Re: [cfe-users] Standard headers cannot be found when compiling with Clang

2016-01-15 Thread Qiuping Yi via cfe-users
I use ubuntu, $ uname -a Linux novice 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux and this is the output of 'clang -v -c' $ clang -v -c test.c clang version 3.6.0 (tags/RELEASE_360/final) Target: x86_64-unknown-linux-gnu Thread model: pos

[cfe-users] Emit LLVM IR from OpenCL

2016-01-15 Thread Zheng Wang via cfe-users
Hi, Could anybody give me an example of emitting LLVM IR from OpenCL code? I tried this for the backprop benchmark from the rodinia benchmark suite: clang -x cl backprop_kernel.cl -emit-llvm -S -o backprop_kernel.ll and the the following warning: backprop_kernel.cl:24:13: warning: implicit de

Re: [cfe-users] Standard headers cannot be found when compiling with Clang

2016-01-15 Thread Hans Wennborg via cfe-users
On Fri, Jan 15, 2016 at 7:06 AM, Qiuping Yi via cfe-users wrote: > Hello All, > > I am a beginner of clang. I installed clang 3.6 with llvm 3.6, but I found > my clang cannot work as expected. > For the next simple program test.c: > > #include > int main() {return 0;} > > $ clang -c test.c > > I

[cfe-users] Standard headers cannot be found when compiling with Clang

2016-01-15 Thread Qiuping Yi via cfe-users
Hello All, I am a beginner of clang. I installed clang 3.6 with llvm 3.6, but I found my clang cannot work as expected. For the next simple program test.c: #include int main() {return 0;} $ clang -c test.c I got the next information: fatal error: 'stdio.h' file not found #include