[LLVMbugs] [Bug 22574] New: Unknown Compilation error while running compiler-rt

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 12 23:01:49 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22574

            Bug ID: 22574
           Summary: Unknown Compilation error while running compiler-rt
           Product: compiler-rt
           Version: 3.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: ravishanayak at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I am trying to install LLVM + CLang v3.5.0 with support of compiler-rt runtime
library in order to overcome from below issues.


> clang -fprofile-instr-generate hello.c

/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

http://clang.llvm.org/get_started.html#build 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=]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150213/5efc7b2a/attachment.html>


More information about the llvm-bugs mailing list