You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2017/09/16 01:52:01 UTC

[jira] [Comment Edited] (HADOOP-14873) force cmake to exit if it can't detect a C99 compiler

    [ https://issues.apache.org/jira/browse/HADOOP-14873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16168763#comment-16168763 ] 

Allen Wittenauer edited comment on HADOOP-14873 at 9/16/17 1:51 AM:
--------------------------------------------------------------------

So, two things:

a) this will make cmake exit early if it can't detect a C99 compiler
b) cmake 3.1.0 doesn't know that gcc 4.4 supports C99.  This was fixed in a later version of cmake.

Testing this patch with cmake 3.3.0 + centos 6.6 + gcc 4.4 and container-executor compiles again.  I don't think 3.2 works if I read the commit log + release date correctly, but I didn't test it.  I'll let someone else do that.  

I think it's important to note that we're setting the MINIMUM, not the MAXIMUM here. We're dealing with a particular combination on an infinite compiler + cmake version matrix.

Also, thiscode change should probably go to HadoopCommon.cmake but this was a quick one to test with.  I don't know how C99 compliant the rest of the native code might be.


was (Author: aw):
So, two things:

a) this will make cmake exit early if it can't detect a C99 compiler
b) cmake 3.1.0 doesn't know that gcc 4.4 supports C99.  This was fixed in a later version of the cmake.

> force cmake to exit if it can't detect a C99 compiler
> -----------------------------------------------------
>
>                 Key: HADOOP-14873
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14873
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 3.0.0-beta1
>            Reporter: Allen Wittenauer
>            Assignee: Allen Wittenauer
>            Priority: Critical
>         Attachments: HADOOP-14873.00.patch
>
>
> C99 mode isn't getting invoked for containter-executor on CentOS 6.6 + gcc 4.4.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org