[
https://issues.apache.org/jira/browse/HADOOP-10530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14236937#comment-14236937
]
Steve Loughran commented on HADOOP-10530:
-----------------------------------------
Status
# if you comment out the jenkins script that sets up JAVA_HOME and adds it to
the path, java home is set to JDK7 and the patch rules take.
# but make is failing with "zconf.h" not in the INCLUDE.
{code}
[exec] [ 17%] Building C object
CMakeFiles/hadoop.dir/main/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c.o
[exec] /usr/bin/cc -Dhadoop_EXPORTS -m32 -g -Wall -O2 -D_REENTRANT
-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC
-I/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/target/native/javah
-I/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/src/main/native/src
-I/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/src
-I/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/src/src
-I/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/target/native
-I/home/jenkins/tools/java/latest1.7/include
-I/home/jenkins/tools/java/latest1.7/include/linux
-I/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/util
-o
CMakeFiles/hadoop.dir/main/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c.o
-c
/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c
[exec] In file included from
/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/org_apache_hadoop_io_compress_zlib.h:27:0,
[exec] from
/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c:28:
[exec] /usr/include/zlib.h:34:19: fatal error: zconf.h: No such file or
directory
[exec] #include "zconf.h"
[exec] ^
[exec] compilation terminated.
[exec] make[2]: ***
[CMakeFiles/hadoop.dir/main/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c.o]
Error 1
[exec] make[1]: *** [CMakeFiles/hadoop.dir/all] Error 2
[exec] make: *** [all] Error 2
[exec] make[2]: Leaving directory
`/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/target/native'
[exec] make[1]: Leaving directory
`/home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/hadoop-common-project/hadoop-common/target/native'
[INFO] ------------------------------------------------------------------------
{code}
This is clearly utterly impossible and can't happen —but it is. Perhaps the
JAVA_HOME/include dir is different in a way that causes problems.
> Make hadoop trunk build on Java7+ only
> --------------------------------------
>
> Key: HADOOP-10530
> URL: https://issues.apache.org/jira/browse/HADOOP-10530
> Project: Hadoop Common
> Issue Type: Improvement
> Components: build
> Affects Versions: 3.0.0, 2.6.0
> Environment: Java 1.7+
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Blocker
> Attachments: HADOOP-10530-001.patch, HADOOP-10530-002.patch,
> HADOOP-10530-003.patch, HADOOP-10530-004.patch, HADOOP-10530-debug.000.patch,
> Screen Shot 2014-09-20 at 18.09.05.png
>
>
> As discussed on hadoop-common, hadoop 3 is envisaged to be Java7+ *only*
> -this JIRA covers switching the build for this
> # maven enforcer plugin to set Java version = {{[1.7)}}
> # compiler to set language to java 1.7
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)