[cfe-dev] Trouble compiling CLANG on on RHEL 3.0

Saravanan Shanmugham (sarvi) sarvi at cisco.com
Mon Jun 17 15:22:57 PDT 2013


I am trying to compile CLANG on RHEL 3.0 (yeah, its that old, but that’s the build environment I need to be able compile CLANG on)
And I get the following error. Do I have any hope of fixing or working around this ?
Has anyone seen this or know what the fix might be?

Everything compiles except for compilter-rt component.

Thx,
Sarvi

--------In file included from /nobackup/sarvi/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:65:
In file included from /usr/include/linux/mroute.h:5:
/usr/include/linux/in.h:25:3: error: redefinition of enumerator 'IPPROTO_IP'
  IPPROTO_IP = 0,               /* Dummy protocol for TCP               */
  ^
/usr/include/netinet/in.h:34:21: note: expanded from macro 'IPPROTO_IP'
#define IPPROTO_IP              IPPROTO_IP
                                ^
/usr/include/netinet/in.h:33:5: note: previous definition is here
    IPPROTO_IP = 0,        /* Dummy protocol for TCP.  */
    ^
In file included from /nobackup/sarvi/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:65:
In file included from /usr/include/linux/mroute.h:5:
/usr/include/linux/in.h:26:3: error: redefinition of enumerator 'IPPROTO_ICMP'
  IPPROTO_ICMP = 1,             /* Internet Control Message Protocol    */
  ^
/usr/include/netinet/in.h:38:23: note: expanded from macro 'IPPROTO_ICMP'
#define IPPROTO_ICMP            IPPROTO_ICMP
                                ^
/usr/include/netinet/in.h:37:5: note: previous definition is here
    IPPROTO_ICMP = 1,      /* Internet Control Message Protocol.  */
    ^

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130617/8a9f3341/attachment.html>


More information about the cfe-dev mailing list