[compiler-rt] r177382 - Support CMake build of profile runtime library on Linux

Alexey Samsonov samsonov at google.com
Tue Mar 19 06:36:04 PDT 2013


On Tue, Mar 19, 2013 at 5:08 PM, Jay Foad <jay.foad at gmail.com> wrote:

> Hi Alexey,
>
> On 19 March 2013 09:17, Alexey Samsonov <samsonov at google.com> wrote:
> > Author: samsonov
> > Date: Tue Mar 19 04:17:35 2013
> > New Revision: 177382
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=177382&view=rev
> > Log:
> > Support CMake build of profile runtime library on Linux
>
> I now get:
>
> $ make
> [...]
> [ 69%] Building C object
>
> projects/compiler-rt/lib/profile/CMakeFiles/clang_rt.profile-i386.dir/GCDAProfiling.c.o
> In file included from
>
> /home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/lib/profile/GCDAProfiling.c:23:0:
>
> /home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:35:56:
> error: redefinition of parameter ‘restrict’
>
> /home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:35:33:
> note: previous definition of ‘restrict’ was here
>
> /home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:36:50:
> error: conflicting types for ‘restrict’
>
> /home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:36:27:
> note: previous definition of ‘restrict’ was here
>
> /home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:37:68:
> error: conflicting types for ‘restrict’
>
> /home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:37:35:
> note: previous definition of ‘restrict’ was here
>
> /home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:38:61:
> error: conflicting types for ‘restrict’
>
> /home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/SDKs/linux/usr/include/stdio.h:38:28:
> note: previous definition of ‘restrict’ was here
> In file included from
>
> /home/jay/svn/llvm-project/llvm/trunk/projects/compiler-rt/lib/profile/GCDAProfiling.c:33:0:
> /usr/lib/gcc/x86_64-linux-gnu/4.7/include/stdint.h:3:26: fatal error:
> stdint.h: No such file or directory
> compilation terminated.
> make[2]: ***
> [projects/compiler-rt/lib/profile/CMakeFiles/clang_rt.profile-i386.dir/GCDAProfiling.c.o]
> Error 1
> make[1]: ***
> [projects/compiler-rt/lib/profile/CMakeFiles/clang_rt.profile-i386.dir/all]
> Error 2
> make: *** [all] Error 2
>
> I'm building llvm + clang + compiler-rt with cmake. My system compiler
> is gcc 4.7.2-2ubuntu1. Any idea what's wrong?
>
> Thanks,
> Jay.
>

Hi Jay!
I think r177396 should fix this. Sorry for the breakage!

-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130319/234c9e98/attachment.html>


More information about the llvm-commits mailing list