[cfe-dev] Trouble compiling CLANG on on RHEL 3.0
Kostya Serebryany
kcc at google.com
Tue Jun 18 01:22:53 PDT 2013
+eugenis
On Tue, Jun 18, 2013 at 2:22 AM, Saravanan Shanmugham (sarvi) <
sarvi at cisco.com> wrote:
>
> 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. */
> ^
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130618/35f4a172/attachment.html>
More information about the cfe-dev
mailing list