[cfe-dev] Trouble compiling CLANG on on RHEL 3.0
Evgeniy Stepanov
eugenis at google.com
Tue Jun 18 02:55:49 PDT 2013
Note that I've just shuffled the includes in that file a bit, it might
have fixed your issue (but unlikely).
On Tue, Jun 18, 2013 at 1:54 PM, Evgeniy Stepanov <eugenis at google.com> wrote:
> I don't have access to RHEL 3.0, but if you can figure out what's
> wrong with the headers there - patches are welcome. It might be as
> easy as reordering some of the include lines, or removing one of the
> two.
>
> On Tue, Jun 18, 2013 at 12:22 PM, Kostya Serebryany <kcc at google.com> wrote:
>> +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
>>>
>>
More information about the cfe-dev
mailing list