<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 19, 2013 at 5:08 PM, Jay Foad <span dir="ltr"><<a href="mailto:jay.foad@gmail.com" target="_blank">jay.foad@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alexey,<br>
<div class="im"><br>
On 19 March 2013 09:17, Alexey Samsonov <<a href="mailto:samsonov@google.com">samsonov@google.com</a>> wrote:<br>
> Author: samsonov<br>
> Date: Tue Mar 19 04:17:35 2013<br>
> New Revision: 177382<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=177382&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=177382&view=rev</a><br>
> Log:<br>
> Support CMake build of profile runtime library on Linux<br>
<br>
</div>I now get:<br>
<br>
$ make<br>
[...]<br>
[ 69%] Building C object<br>
projects/compiler-rt/lib/profile/CMakeFiles/clang_rt.profile-i386.dir/GCDAProfiling.c.o<br>
In file included from<br>
/home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/lib/profile/GCDAProfiling.c:23:0:<br>
/home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:35:56:<br>
error: redefinition of parameter ‘restrict’<br>
/home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:35:33:<br>
note: previous definition of ‘restrict’ was here<br>
/home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:36:50:<br>
error: conflicting types for ‘restrict’<br>
/home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:36:27:<br>
note: previous definition of ‘restrict’ was here<br>
/home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:37:68:<br>
error: conflicting types for ‘restrict’<br>
/home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:37:35:<br>
note: previous definition of ‘restrict’ was here<br>
/home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:38:61:<br>
error: conflicting types for ‘restrict’<br>
/home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:38:28:<br>
note: previous definition of ‘restrict’ was here<br>
In file included from<br>
/home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/lib/profile/GCDAProfiling.c:33:0:<br>
/usr/lib/gcc/x86_64-linux-gnu/4.7/include/stdint.h:3:26: fatal error:<br>
stdint.h: No such file or directory<br>
compilation terminated.<br>
make[2]: *** [projects/compiler-rt/lib/profile/CMakeFiles/clang_rt.profile-i386.dir/GCDAProfiling.c.o]<br>
Error 1<br>
make[1]: *** [projects/compiler-rt/lib/profile/CMakeFiles/clang_rt.profile-i386.dir/all]<br>
Error 2<br>
make: *** [all] Error 2<br>
<br>
I'm building llvm + clang + compiler-rt with cmake. My system compiler<br>
is gcc 4.7.2-2ubuntu1. Any idea what's wrong?<br>
<br>
Thanks,<br>
Jay.<br>
</blockquote></div><br>Hi Jay!</div><div class="gmail_extra" style>I think r177396 should fix this. Sorry for the breakage!</div><div class="gmail_extra"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div>
</div></div>