<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Unknown Compilation error while running compiler-rt"
href="http://llvm.org/bugs/show_bug.cgi?id=22574">22574</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unknown Compilation error while running compiler-rt
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>3.5
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ravishanayak@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I am trying to install LLVM + CLang v3.5.0 with support of compiler-rt runtime
library in order to overcome from below issues.
<span class="quote">> clang -fprofile-instr-generate hello.c</span >
/usr/bin/ld:
/llvm/clang/3.5.0/bin/../lib/clang/3.5.0/lib/linux/libclang_rt.profile-x86_64.a:
No such file: No such file or directory
I am following instructions from below link
<a href="http://clang.llvm.org/get_started.html#build">http://clang.llvm.org/get_started.html#build</a> and using gcc v4.7.3,
so while compilation of LLVM+CLANG+Compiler-rt I am running into below error.
Kindly suggest for this ERROR......
n file included from
/llvm/llvm-3.5.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:56:
In file included from /usr/include/linux/cdrom.h:14:
In file included from /usr/include/asm/byteorder.h:7:
/usr/include/asm-i386/byteorder.h:24:19: error: unknown type name '__u64'
static __inline__ __u64 ___arch__swab64(__u64 val)
^
/usr/include/asm-i386/byteorder.h:24:41: error: unknown type name '__u64'
static __inline__ __u64 ___arch__swab64(__u64 val)
^
/usr/include/asm-i386/byteorder.h:28:3: error: unknown type name '__u64'
In file included from
/llvm/llvm-3.5.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:56:
In file included from /usr/include/linux/cdrom.h:14:
In file included from /usr/include/asm/byteorder.h:7:
In file included from /usr/include/asm-i386/byteorder.h:53:
In file included from /usr/include/linux/byteorder/little_endian.h:12:
/usr/include/linux/byteorder/swab.h:71:19: error: unknown type name '__u64'
static __inline__ __u64 ___swab64(__u64 x)
^
/usr/include/linux/byteorder/swab.h:71:35: error: unknown type name '__u64'
static __inline__ __u64 ___swab64(__u64 x)
^
/usr/include/linux/byteorder/swab.h:74:9: error: use of undeclared identifier
'__u64'
(x & (__u64)0x000000000000ff00ULL)<<40 |
^
/usr/include/linux/byteorder/swab.h:75:9: error: use of undeclared identifier
'__u64'
(x & (__u64)0x0000000000ff0000ULL)<<24 |
^
/usr/include/linux/byteorder/swab.h:76:9: error: use of undeclared identifier
'__u64'
(x & (__u64)0x00000000ff000000ULL)<< 8 |
^
/usr/include/linux/byteorder/swab.h:77:9: error: use of undeclared identifier
'__u64'
(x & (__u64)0x000000ff00000000ULL)>> 8 |
^
/usr/include/linux/byteorder/swab.h:78:9: error: use of undeclared identifier
'__u64'
(x & (__u64)0x0000ff0000000000ULL)>>24 |
^
/usr/include/linux/byteorder/swab.h:79:9: error: use of undeclared identifier
'__u64'
(x & (__u64)0x00ff000000000000ULL)>>40;
^
/usr/include/linux/byteorder/swab.h:187:19: error: unknown type name '__u64'
static __inline__ __u64 __fswab64(__u64 x)
^
/usr/include/linux/byteorder/swab.h:187:35: error: unknown type name '__u64'
static __inline__ __u64 __fswab64(__u64 x)
^
/usr/include/linux/byteorder/swab.h:197:19: error: unknown type name '__u64'
static __inline__ __u64 __swab64p(const __u64 *x)
^
/usr/include/linux/byteorder/swab.h:197:41: error: unknown type name '__u64'
static __inline__ __u64 __swab64p(const __u64 *x)
^
/usr/include/linux/byteorder/swab.h:201:34: error: unknown type name '__u64'
static __inline__ void __swab64s(__u64 *addr)
^
In file included from
/llvm/llvm-3.5.0.src/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:56:
In file included from /usr/include/linux/cdrom.h:14:
In file included from /usr/include/asm/byteorder.h:7:
In file included from /usr/include/asm-i386/byteorder.h:53:
/usr/include/linux/byteorder/little_endian.h:43:19: error: unknown type name
'__le64'
static __inline__ __le64 __cpu_to_le64p(const __u64 *p)
^
/usr/include/linux/byteorder/little_endian.h:43:47: error: unknown type name
'__u64'
static __inline__ __le64 __cpu_to_le64p(const __u64 *p)
^
/usr/include/linux/byteorder/little_endian.h:45:11: error: use of undeclared
identifier '__le64'
return (__le64)*p;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>