hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9922) hadoop windows native build will fail in 32 bit machine
Date Wed, 25 Feb 2015 00:46:06 GMT

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

Chris Nauroth commented on HADOOP-9922:
---------------------------------------

[~kiranmr], thank you for sharing a patch.  This looks good.

When I built for 32-bit, there were 5 additional compilation warnings:

{code}
service.c(187): warning C4018: '<' : signed/unsigned mismatch [C:\hdc\hadoop-common-project\hadoop-common\src\main\winutils\winutils.vcxproj]
service.c(380): warning C4018: '<' : signed/unsigned mismatch [C:\hdc\hadoop-common-project\hadoop-common\src\main\winutils\winutils.vcxproj]
service.c(430): warning C4018: '<' : signed/unsigned mismatch [C:\hdc\hadoop-common-project\hadoop-common\src\main\winutils\winutils.vcxproj]
task.c(160): warning C4018: '<' : signed/unsigned mismatch [C:\hdc\hadoop-common-project\hadoop-common\src\main\winutils\winutils.vcxproj]
task.c(195): warning C4018: '<' : signed/unsigned mismatch [C:\hdc\hadoop-common-project\hadoop-common\src\main\winutils\winutils.vcxproj]
{code}

It looks like we have some code that was trying to compare an {{int}} to a {{size_t}}, and
the difference in data type size on 32-bit triggers these warnings.  I suspect you can make
this work on both 32-bit and 64-bit by switching the declaration of the relevant variables
from {{int}} to {{size_t}}.

I think this patch will be ready to go once that is addressed.

> hadoop windows native build will fail in 32 bit machine
> -------------------------------------------------------
>
>                 Key: HADOOP-9922
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9922
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build, native
>    Affects Versions: 3.0.0, 2.1.1-beta
>            Reporter: Vinayakumar B
>            Assignee: Kiran Kumar M R
>         Attachments: HADOOP-9922-002.patch, HADOOP-9922-003.patch, HADOOP-9922.patch
>
>
> Building Hadoop in windows 32 bit machine fails as native project is not having Win32
configuration



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message